juicy-potato
juicy-potato copied to clipboard
GetCLSID.ps1 fails on Windows Server 2012 R2 Standard
C:\Users\ben\Documents>powershell ./GetCLSID.ps1
powershell ./GetCLSID.ps1
Name Used (GB) Free (GB) Provider Root
---- --------- --------- -------- ----
HKCR Registry HKEY_CLASSES_ROOT
Select : The property cannot be processed because the property "AppID" already
exists.
At C:\Users\ben\Documents\utils\Join-Object.ps1:471 char:103
+ ... htProperties | Select $AllProps
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (@{AppID={8B4B43...-7F9F7DF414
EA}}:PSObject) [Select-Object], PSArgumentException
+ FullyQualifiedErrorId : AlreadyExistingUserSpecifiedPropertyNoExpand,Mic
rosoft.PowerShell.Commands.SelectObjectCommand
It worked fine when testing on Windows 10, and I am not good enough with Powershell to debug the issue.
Same result running on Windows 8.1 Enterprise.