Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble with DWORD:ffffffff being converted to '-1' #14

Open
NoDowt opened this issue May 8, 2024 · 0 comments
Open

Trouble with DWORD:ffffffff being converted to '-1' #14

NoDowt opened this issue May 8, 2024 · 0 comments

Comments

@NoDowt
Copy link

NoDowt commented May 8, 2024

When using the below for the registry info.

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\AES 128/128]
"Enabled"=dword:ffffffff

We end up get getting the following powershell
# Reg2CI (c) 2022 by Roger Zander try { if(-NOT (Test-Path -LiteralPath "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\AES 128/128")){ return $false }; if((Get-ItemPropertyValue -LiteralPath 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\AES 128/128' -Name 'Enabled' -ea SilentlyContinue) -eq -1) { } else { return $false }; } catch { return $false } return $true

The hex 0xFFFFFFFF dword value is being converted to '-1' decimal, rather than '4294967295' as shown in regedit, or when doing a get-ItemPropertyValue on the same key already set as 0xFFFFFFFF.

Interestingly, the ConfigMgr GUI does the same thing when trying to setup a CI via browsing the registry & also when it is evaluating the registry item if you set the value to 4294967295 (we see it remediating from '-1' to 4294967295 every time it is evaluated).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant