Carbon

1.9.0

Automates setup and configuration of users, groups, services, privileges, permissions (file system, registry, and private keys), IIS, certificates, security, junctions, hosts files, INI files, performance counters, scheduled tasks, .NET and more.

There is a newer prerelease version of this module available.
See the version list below for details.

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name Carbon -RequiredVersion 1.9.0

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name Carbon -Version 1.9.0

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2011 - 2013 Aaron Jensen. All rights reserved.

Package Details

Author(s)

  • Aaron Jensen

Tags

groups identity principal iis powershell trusted-host security firewall service dsc dsc-resources computer environment networking ini text file-system ntfs registry certificates acl privileges users scheduled-tasks zip compression sid xml internet-explorer com active-directory shares smb ip msi installers msmq path hosts-file performance-counters programs windows-features junctions credential cryptography encryption rsa directory ssl .net windows operating-system os

Dependencies

This module has no dependencies.

Release Notes

# 1.9.0 (8 November 2014)

This is the last minor release for version 1.0. Future 1.0-compatible releases will *only* contain bug fixes, no new features. It takes too much time to maintain two versions, and I'd rather spend my time getting 2.0 out the door.  Carbon 2.0 will require PowerShell 4.0, so start planning.

## Enhancements

### Certificates

* Added `KeyStorageFlags` parameter to `Get-Certificate` when loading a certificate from a file for better control when storing the certificate.

### Hosts File

* `Set-HostsEntry` now handles writing to an in-use/locked hosts file, retrying up to 10 times before writing an error, waiting a random amount of time (from 0 to 1000 milliseconds) between each retry attempt.

### IIS

* `Get-IisMimeMap`, `Remove-IisMimeMap`, and `Set-IisMimeMap` now support managing MIME types for websites, virtual directories, and applications.

### Scheduled Tasks

* Created `Get-ScheduledTask` function for getting the scheduled tasks on the local computer using `schtasks.exe`.
* Created `Install-ScheduledTask` function for installing a scheduled task using `schtasks.exe`.
* Created `Test-ScheduledTask` function for testing if a scheduled tasks on the local computer exists using `schtasks.exe`.
* Created `Uninstall-ScheduledTask` function for deleting a scheduled task using `schtasks.exe`.

### Services

* `Install-Service` now supports setting a command to run when a service fails.

## Bug Fixes

### General

* `Import-Carbon` fails when `-WhatIf` switch is used.
* Importing Carbon no longer writes an error if the `PATH` environment variable contains a path to a non-existent drive (issue [#134](https://bitbucket.org/splatteredbits/carbon/issue/134/import-carbon-fails-with-path-environment)).

### INI

* `Set-IniEntry` fails when adding the first section-less setting to a file.

### Internet Explorer

* `Enable-IEActivationPermission` no longer returns the `hkcr:` drive.

### Security

* Fixed an error that occurs when setting permissions on a private key fails: the error message is created using an invalid format string (issue [#133](https://bitbucket.org/splatteredbits/carbon/issue/133/set-cryptokeysecurity-invalid-parameters)).
* Fixed an exception that gets thrown when setting a private key's permissions and the only certificate key is AT_SIGNATURE (issue [#132](https://bitbucket.org/splatteredbits/carbon/issue/132/set-cryptokeysecurity-throws-exception)).

### Services

* `Install-Service` stops Windows service even when no settings/configuration has changed (fixes issue [#131](https://bitbucket.org/splatteredbits/carbon/issue/131/install-service-always-restarts-service)).
* `Install-Service` didn't clear services depended on during a re-install.
* `Install-Service` wasn't restarting a manual service if it was running when configuration began.
* `Uninstall-Service` hard codes the path to the Windows directory (fixes issue [#143](https://bitbucket.org/splatteredbits/carbon/issue/143/uninstall-service-script-has-hard-coded)). Thanks to [Travis Mathison](https://bitbucket.org/tdmathison) for the fix.

FileList

Version History

Version Downloads Last updated
2.16.0-rc1 367 3/19/2024
2.15.1 11,267,824 8/18/2023
2.15.0 37,710 8/17/2023
2.14.1 1,428,766 7/5/2023
2.14.1-rc1 18 7/3/2023
2.14.0 75,154 7/3/2023
2.14.0-rc1 107 5/10/2023
2.13.0 4,695,415 2/16/2023
2.13.0-rc2 97 1/20/2023
2.13.0-rc1 8 1/20/2023
2.12.0 6,366,660 8/10/2022
2.11.3 1,366,602 6/30/2022
2.11.2 3,080,965 3/28/2022
2.11.1 943,649 2/28/2022
2.11.1-alpha732 574 2/28/2022
2.11.0 3,800,073 11/3/2021
2.11.0-rc710 610 10/19/2021
2.11.0-rc707 570 10/19/2021
2.10.2 7,141,084 3/17/2021
2.10.1 26,460 3/16/2021
2.10.1-rc660 613 3/8/2021
2.10.0 22,968 3/15/2021
2.10.0-rc651 729 2/3/2021
2.9.4 3,002,890 12/8/2020
2.9.3 607,196 11/18/2020
2.9.3-rc623 631 10/9/2020
2.9.2 14,020,821 1/17/2020
2.9.1 1,546,634 11/1/2019
2.9.0 995,230 9/19/2019
2.9.0-rc587 589 9/16/2019
2.8.1 4,228,550 3/26/2019
2.8.0 31,752 3/25/2019
2.7.0 3,922,478 12/11/2018
2.6.0 5,441,463 7/8/2018
2.5.4 206,551 6/2/2018
2.5.3 1,343 6/1/2018
2.5.2 239 6/1/2018
2.5.1 253 6/1/2018
2.5.0 828,543 6/18/2017
2.4.1 242,993 2/21/2017
2.4.0 124,363 11/9/2016
2.3.0 39,277 9/29/2016
2.2.0 22,408 5/12/2016
2.1.1 1,224 2/25/2016
2.1.0 560 2/9/2016
2.0.1 1,072 10/20/2015
2.0.0 2,294 10/11/2015
1.9.0 (current version) 1,467 5/7/2015
Show less