New
#1040
Damn, stumped again. Can't get Powershell Get-Acl to work with this key. Doesn't seem to like the space in Windows NT, even when I surround the entire key in double quotes. What the heck am I doing wrong this time? This is from a Admin Powershell Window.
PS C:\Users\ztruk\PowerShellScripts> Get-Acl -Path "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\EditionVersion" | Format-List
Get-Acl : Cannot find path 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\EditionVersion' because it does not exist.
At line:1 char:1
+ Get-Acl -Path "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\Curre ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (:) [Get-Acl], ItemNotFoundException
+ FullyQualifiedErrorId : GetAcl_PathNotFound_Exception,Microsoft.PowerShell.Commands.GetAclCommand
The path is correct:
C:\Users\ztruk>reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\EditionVersion"
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\EditionVersion
EditionBuildBranch REG_SZ vb_release
EditionBuildLab REG_SZ 19041.vb_release.191206-1406
EditionBuildLabEx REG_SZ 19041.1.amd64fre.vb_release.191206-1406
EditionBuildNumber REG_DWORD 0x4a62
EditionBuildQfe REG_DWORD 0x276