> pshdo

Carbon 2.2.0 Released

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 LiteralPath parameter to Test-PathIsJunction for testing paths that contain wildcard characters (e.g. [, ], etc.).
  • Remove-Junction now supports removing multiple junctions with wildcards.
  • Added a LiteralPath parameter to Remove-Junction for deleting junctions whose paths contain wildcard characters (e.g. [, ], etc.).
  • Added a LiteralPath parameter to Uninstall-Junction for deleting junctions whose paths contain wildcard characters (e.g. [, ], etc.).
  • Created Remove-DotNetAppSetting function for removing app settings from .NET framework machine.config files.
  • Created Read-File function 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-File function 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-WindowsFeature
    • Install-Msmq
    • Install-WindowsFeature
    • Resolve-WindowsFeatureName
    • Uninstall-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-PathIsJunction returns multiple results if the Path parameter contains wildcards and matches multiple items.
  • Fixed: Install-Junction can’t install a junction whose path contains wildcard characters (fixes issue #190).
  • Fixed: New-Junction writes wrong error when creating an existing junction whose path contains wildcard characters.
  • Fixed: Install-Service doesn’t update/change an existing service’s account when using the Credential parameter (fixes issue #185).
  • Fixed: Uninstall-FileShare fails if a share’s physical path doesn’t exist.
  • Fixed (hopefully): Get-FileSharePermission writes 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-PowerShellModuleInstallPath returns multiple paths if the standard PowerShell module path is listed twice in the PSModulePath environment variable.
  • Fixed: Chocolatey package fails if the standard PowerShell module path is listed twice in thePSModulePath environment (fixes issue #192).
  • Fixed: Get-PowerShellModuleInstallPath doesn’t return the module install path if it doesn’t exist. Sometimes it doesn’t yet.
  • Fixed: Carbon_ScheduledTask and Carbon_IniFile DSC resources' Get-TargetResource functions don’t return correct resource properties and causes Get-DscConfiguration to fail (fixes issue #193).
  • Fixed: Carbon_FirewallRule DSC resource always re-installs a firewall rule if Profile property contains multiple values (i.e. it doesn’t properly parse netsh output).
  • Fixed: about_Carbon_Installation help topic had a typo.
  • Fixed: Set-HostsEntry fails to stop when the hosts file is in use and can’t be read.