Carbon 2.3.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-String
can now encrypt with a key, password, or passphrase (i.e. it can now encrypt with symmetric encryption).Unprotect-String
can now decrypt with a key, password, or passphrase (i.e. it can now decrypt using symmetric encryption).Set-HostsEntry
now supports IPv6 addresses (fixes issue).Grant-Permission
now supports creatingDeny
access rules. Use the newType
parameter. Fixes issue #152.Set-EnvironmentVariable
:- Added
-Force
switch to make all variable modifications immediately visible in the current PowerShell process’senv:
drive. Restarts are no longer required. - You can now set an environment variable for other users. Use the
Credential
parameter to specify the user’s credentials. Fixes issue #151.
- Added
Remove-EnvironmentVariable
:- Added
-Force
switch to make all variable removals immediately visible in the current PowerShell process’senv:
drive. Restarts are no longer required. - You can now remove variables from multiple targets/scopes at once.
- You can now remove an environment variable for other users. Use the
Credential
parameter to specify the user’s credentials.
- Added
Invoke-PowerShell
:- It now runs PowerShell commands. Pass a string of PowerShell code with the
Command
parameter. - It now runs encoded PowerShell commands. Pass the string of PowerShell code with the
Command
parameter and use the-Encode
switch. - It now runs scripts and commands as another user. Use the
Credential
parameter to pass the user’s credentials along with theFilePath
andCommand
parameters to run scripts and commands, respectively.
- It now runs PowerShell commands. Pass a string of PowerShell code with the
Bug Fixes
- Fixed:
Set-RegistryKeyValue
fails when-String
parameter’s value is$null
or empty (fixes issue #211). - Fixed: Can’t import Carbon in a 32-bit PowerShell 4 session on a 64-bit operating system (fixes issue #199).
- Fixed: Documentation for the
Install-ScheduledTask
function’sHighestAvailableRunLevel
is lying (fixes issue #205). - Fixed:
Carbon_FirewallRule
fails whenProfile
property set to multiple values (fixes issue #209). - Fixed:
Install-IisAppPool
can’t set .NET framework version toNo Managed Code
(fixes issue #210). - Fixed:
Get-SslCertificateBinding
fails if the operating system’s culture is noten-US
(fixes issue #171). - Fixed:
Install-ScheduledTask
fails when creating a task that runs during a specific week of the month on Sundays. (You’re going to love this: the underlying int value for[DayOfWeek]::Sunday
is0
, so when testing if aDayOfWeek
typed variable set toSunday
has a value, it returns$false
. This madeInstall-ScheduledTask
add the/D
parameter without a value.