Carbon 2.2.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
- Aded a
LiteralPathparameter toTest-PathIsJunctionfor testing paths that contain wildcard characters (e.g.[,], etc.). Remove-Junctionnow supports removing multiple junctions with wildcards.- Added a
LiteralPathparameter toRemove-Junctionfor deleting junctions whose paths contain wildcard characters (e.g.[,], etc.). - Added a
LiteralPathparameter toUninstall-Junctionfor deleting junctions whose paths contain wildcard characters (e.g.[,], etc.). - Created
Remove-DotNetAppSettingfunction for removing app settings from .NET framework machine.config files. - Created
Read-Filefunction for reading text files and retrying if the read fails. Good for reading files that get intermittently locked, like the Windows hosts file. - Created
Write-Filefunction for writing text files and retrying if the write fails. Good for writing files that get intermittently locked, like the Windows hosts file. - Made the following functions obsolete:
Get-WindowsFeatureInstall-MsmqInstall-WindowsFeatureResolve-WindowsFeatureNameUninstall-WindowsFeature
Bug Fixes
- Fixed:
Add-GroupMember, over PowerShell remoting, fails to add a member to groups that have non-local users/groups (fixes issue #187: Add-GroupMember fails when using PowerShell Remoting) - Fixed:
Remove-GroupMember, over PowerShell remoting, fails to remove a member from groups that have non-local users/groups. - Fixed:
Test-PathIsJunctionreturns multiple results if thePathparameter contains wildcards and matches multiple items. - Fixed:
Install-Junctioncan’t install a junction whose path contains wildcard characters (fixes issue #190). - Fixed:
New-Junctionwrites wrong error when creating an existing junction whose path contains wildcard characters. - Fixed:
Install-Servicedoesn’t update/change an existing service’s account when using theCredentialparameter (fixes issue #185). - Fixed:
Uninstall-FileSharefails if a share’s physical path doesn’t exist. - Fixed (hopefully):
Get-FileSharePermissionwrites an error if a share’s security information is corrupted (fixes issue #188). I was unable to reproduce the error, and the error was reported anonyously, so I did my best. - Fixed:
Get-PowerShellModuleInstallPathreturns multiple paths if the standard PowerShell module path is listed twice in thePSModulePathenvironment variable. - Fixed: Chocolatey package fails if the standard PowerShell module path is listed twice in the
PSModulePathenvironment (fixes issue #192). - Fixed:
Get-PowerShellModuleInstallPathdoesn’t return the module install path if it doesn’t exist. Sometimes it doesn’t yet. - Fixed:
Carbon_ScheduledTaskandCarbon_IniFileDSC resources'Get-TargetResourcefunctions don’t return correct resource properties and causesGet-DscConfigurationto fail (fixes issue #193). - Fixed:
Carbon_FirewallRuleDSC resource always re-installs a firewall rule ifProfileproperty contains multiple values (i.e. it doesn’t properly parse netsh output). - Fixed:
about_Carbon_Installationhelp topic had a typo. - Fixed:
Set-HostsEntryfails to stop when the hosts file is in use and can’t be read.