Carbon 2.4.0 is out. You can download Carbon as a .ZIP archive, NuGet package, Chocolatey package, or from the PowerShell Gallery. It may take a week or two for the package to show up at chocolatey.org.
Enhancements
Protect-Stringcan now encrypt aSecureString. TheStringparameter’s type was changed to[object]. When you pass in aSecureString, it is converted to an array of bytes, encrypted, and the array of bytes are cleared from memory.- Renamed
Protect-AcltoDisable-AclInheritanceto make it clearer what the function does. Created aProtect-Aclalias in place to preserve backwards-compatability. Disable-AclInheritanceonly disables inheritance if it is currently enabled.- Created
Enable-AclInheritanceto re-enable access rule inheritance on file system and registry ACLs. This function is paired withDisable-AclInheritance.
Bug Fixes
- Fixed:
Get-ProgramInstallInfofails when a program’sVersionregistry key value can’t be converted into aVersionobject. - Fixed:
Test-Servicefailed to detect if a device driver service is installed. - Fixed:
Install-Servicefails if a service depends on a device driver. (Note: in our testing, we can’t get a device driver set as a dependency. If you know what the secret sauce is to get this to work with sc.exe (or another means), please let us know.) - Fixed:
Disable-AclInheritance(neProtect-Acl) fails when piped a registry key. - Fixed:
Get-PathProviderfails when passed a fully-qualified registry key PowerShell path, e.g.Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\Software.