Skip to content

Releases: webmd-health-services/Carbon

2.16.0

Choose a tag to compare

@whsdevops whsdevops released this 19 Aug 21:35
74785c9

Fixed

  • Remove-CEnvironmentVariable fails to remove environment variables in PowerShell 7.
  • Carbon_EnvironmentVariable DSC resource fails to remove environment variables in PowerShell 7.
  • Objects returned by Get-CHttpUrlAcl missing built-in extended type properties (e.g. Access, AccessToString,
    etc.) in PowerShell 7.

Deprecated

  • Get-CPermission (and its Get-CPermissions alias), Grant-CPermission (and its Grant-CPermissions alias),
    Revoke-CPermission, and Test-CPermission functions. The functions moved to provider-specific to the following
    provider-specific modules:
    • Carbon.Cryptography
      • Get-CPrivateKeyPermission
      • Grant-CPrivateKeyPermission
      • Revoke-CPrivateKeyPermission
      • Test-CPrivateKeyPermission
    • Carbon.FileSystem
      • Get-CNtfsPermission
      • Grant-CNtfsPermission
      • Revoke-CNtfsPermission
      • Test-CNtfsPermission
    • Carbon.Registry
      • Get-CRegistryPermission
      • Grant-CRegistryPermission
      • Revoke-CRegistryPermission
      • Test-CRegistryPermission
  • ConvertTo-CContainerInheritanceFlags, ConvertTo-InheritanceFlag, and ConvertTo-PropagationFlag. If you switch to
    the new provider-specific functions above, you won't need to use these functions anymore.
  • ConvertTo-CSecurityIdentifier, Resolve-CIdentity, Resolve-CIdentityName, and Test-CIdentity. They moved to the
    Carbon.Accounts module.
  • Get-CScheduledTask, Install-CScheduledTask, Test-CScheduledTask, and Uninstall-CScheduledTask functions. They
    moved to new Carbon.ScheduledTasks module.
  • Get-CPrivilege, Grant-CPrivilege, Revoke-CPrivilege, and Test-CPrivilege functions. They moved to the
    Carbon.Security module.
  • Function Get-CPathProvider. Migrated to Carbon.Core module.
  • Get-CFileShare, Get-CFileSharePermission, Install-CFileShare (and its Install-SmbShare alias),
    Test-CFileShare, and Uninstall-CFileShare. The Install-CFileShare, Test-CFileShare, and Uninstall-CFileShare
    functions moved to new Carbon.SmbShare module as Install-CSmbShare, Test-CSmbShare, and Uninstall-CSmbShare,
    respectively, where they were also updated to support PowerShell 7. Replace usages of Get-CFileShare with
    Get-SmbShare, Get-CFileSharePermission with Get-SmbShareAccess from PowerShell's built-in SmbShare module.
  • Install-CDirectory, New-CTempDirectory (and its New-TempDir alias), and Uninstall-CDirectory. The functions
    (not the alias) moved to the Carbon.FileSystem module, where they were also updated to support PowerShell 7.
  • All DSC resources and DSC-related functions, which have migrated to new Carbon.DSC module.
    • Carbon_EnvironmentVariable
    • Carbon_FirewallRule
    • Carbon_Group
    • Carbon_IniFile
    • Carbon_Permission
    • Carbon_Privilege
    • Carbon_ScheduledTask
    • Carbon_Service
    • Clear-CDscLocalResourceCache
    • Clear-CMofAuthoringMetadata
    • Copy-CDscResource
    • Get-CDscError
    • Get-CDscWinEven
    • Initialize-CLcm
    • Start-CDscPullConfiguration
    • Test-CDscTargetResource
    • Write-CDscError
  • Remove-CEnvironmentVariable, moved to Carbon.Environment module.
  • Set-CEnvironmentVariable, moved to Carbon.Environment module.
  • The following extended type properties on [ServiceProcess.ServiceController] objects (returned by Get-Service).
    Switch to Get-CServiceConfiguration in the Carbon.Windows.Service PowerShell module.
    • DelayedAutoStart
    • Description
    • ErrorControl
    • FailureProgram
    • FirstFailure
    • LoadOrderGroup
    • Path
    • RebootDelay
    • RebootDelayMinutes
    • RebootMessage
    • ResetPeriod
    • ResetPeriodDays
    • RestartDelay
    • RestartDelayMinutes
    • RunCommandDelay
    • RunCommandDelayMinutes
    • SecondFailure
    • StartMode
    • StartType
    • TagID
    • ThirdFailure
    • UserName
  • The following Windows service functions. They've moved to the Carbon.Windows.Service PowerShell module where they
    also now support PowerShell (pwsh.exe).
    • Assert-CService
    • Get-CServiceAcl
    • Get-CServiceConfiguration
    • Get-CServicePermission
    • Get-CServiceSecurityDescriptor
    • Grant-CServiceControlPermission
    • Grant-CServicePermission
    • Install-CService
    • Restart-CRemoteService
    • Revoke-CServicePermission
    • Set-CServiceAcl
    • Test-CService
    • Uninstall-CService
  • Assert-CAdminPrivilege. It moved to the Carbon.Accounts PowerShell module as Assert-CRunAsElevated where it
    now supports PowerShell (pwsh) and Linux/macOS.
  • Test-CAdminPrivilege. It moved to the Carbon.Accounts PowerShell module as Test-CAdminPrivilege where it
    now supports PowerShell (pwsh) and Linux/macOS.
  • Local group management functions. They moved to the Carbon.Accounts PowerShell module where they now support
    PowerShell (pwsh.exe).
    • Add-CGroupMember (as Install-CLocalGroupMember)
    • Get-CGroup (as Get-CLocalGroup)
    • Install-CGroup (as Install-CLocalGroup)
    • Remove-CGroupMember (as Uninstall-CLocalGroupMember)
    • Test-CGroup (as Test-CLocalGroup)
    • Test-CGroupMember (as Test-CLocalGroupMember)
    • Uninstall-CGroup (as Uninstall-CLocalGroupMember)

2.15.1

Choose a tag to compare

@whsdevops whsdevops released this 18 Aug 18:53
5badde7

Fixed: warnings written about registry functions moving to new module that users can't do anything to remove (from internal usages).

2.15.0+1069

Choose a tag to compare

@whsdevops whsdevops released this 16 Aug 20:54
775a63f

Deprecated

Moved the following functions to a new Carbon.Registry module. They will be removed from Carbon in a future major
version.

  • Get-CRegistryKeyValue
  • Install-CRegistryKey
  • Remove-CRegistryKeyValue
  • Set-CRegistryKeyValue
  • Test-CRegistryKeyValue

2.14.1+1066

Choose a tag to compare

@whsdevops whsdevops released this 18 Jul 17:38
2d95e90
Merge pull request #136 from webmd-health-services/bugfix/parameter-n…

2.14.0+1061

Choose a tag to compare

@whsdevops whsdevops released this 28 Jun 00:15
3fa2708
Merge pull request #135 from webmd-health-services/bugfix/creates-rc-…

2.13.0

Choose a tag to compare

@whsdevops whsdevops released this 16 Feb 15:23

Additions

  • Invoke-CCimMethod function for calling a method on an object that could be a WMI or CIM object.
  • Uninstall-CFileShare function now accepts piped-in share objects (or any object with a Name property, really).
  • Write-CCimError function for writing an error message based on the result object returned from a method call.

Changes

  • Install-CFileShare now writes a more friendly message on PowerShell (Core) instead of "[Microsoft.Management.Infrastructure.CimInstance] does not contain a method named 'Delete'". We're unable to get Install-CFileShare to work under PowerShell (Core).
  • Install-CFileShare function now writes changes its making to the information stream.

Deprecated

These functions moved to the Carbon.Windows.HttpServer module. Update usages to use the Carbon.Windows.HttpServer
module instead of Carbon.

  • Get-CSslCertificateBinding
  • Remove-CSslCertificateBinding
  • Set-CSslCertificateBinding
  • Test-CSslCertificateBinding

The Resolve-CFullPath function moved to the Carbon.Core module. Update usages to use the Carbon.Core module
instead of Carbon.

All IIS functions moved to the Carbon.IIS module. Updates usages to use the Carbon.IIS module instead of Carbon.

  • Add-CIisDefaultDocument
  • Add-CIisServerManagerMember
  • Disable-CIisSecurityAuthentication
  • Enable-CIisDirectoryBrowsing
  • Enable-CIisSecurityAuthentication
  • Enable-CIisSsl
  • Get-CIisApplication
  • Get-CIisAppPool
  • Get-CIisConfigurationSection
  • Get-CIisHttpHeader
  • Get-CIisHttpRedirect
  • Get-CIisMimeMap
  • Get-CIisSecurityAuthentication
  • Get-CIisVersion
  • Get-CIisWebsite
  • Install-CIisApplication
  • Install-CIisAppPool
  • Install-CIisVirtualDirectory
  • Install-CIisWebsite
  • Join-CIisVirtualPath
  • Lock-CIisConfigurationSection
  • Remove-CIisMimeMap
  • Set-CIisHttpHeader
  • Set-CIisHttpRedirect
  • Set-CIisMimeMap
  • Set-CIisWebsiteID
  • Set-CIisWebsiteSslCertificate
  • Set-CIisWindowsAuthentication
  • Test-CIisAppPool
  • Test-CIisConfigurationSection
  • Test-CIisSecurityAuthentication
  • Test-CIisWebsite
  • Uninstall-CIisAppPool
  • Uninstall-CIisWebsite
  • Unlock-CIisConfigurationSection
  • Write-CIisVerbose

Fixes

  • Carbon no longer generates backwards-compatible shims for new functions.
  • Install-CFileShare wasn't preserving the file share's SACL, group, or owner on its security descriptor.

2.12.0+947

Choose a tag to compare

@whsdevops whsdevops released this 10 Aug 16:55
8b24247
Merge pull request #126 from webmd-health-services/develop

Merging develop into master

2.11.3

Choose a tag to compare

@whsdevops whsdevops released this 30 Jun 17:41
95a3348

Fixed: Carbon doesn't load Microsoft.Web.Administration assembly on PowerShell 7+.

2.11.2

Choose a tag to compare

@whsdevops whsdevops released this 28 Mar 22:57
43337a4

Fixed: Carbon.Firewall.Rule type missing the LocalIP and RemoteIP properties (which are aliases for the LocalIpAddress and RemoteIPAddress properties, respectively).

2.11.1

Choose a tag to compare

@whsdevops whsdevops released this 28 Feb 23:00
62c337a
  • Fixed: Carbon fails to import multiple times in the same session.
  • Fixed: Carbon fails when used as a nested module and Carbon is loaded globally or by nested in another module.
  • Fixed: Importing Carbon fails under PowerShell 4.