Carbon 1.9 is out and is backwards compatible with 1.0 through 1.8. It supports PowerShell 2 and 3.
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).
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).
- Fixed an exception that gets thrown when setting a private key’s permissions and the only certificate key is AT_SIGNATURE (issue #132).
Services
- Install-Service stops Windows service even when no settings/configuration has changed (fixes issue #131).
- 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). Thanks to Travis Mathison for the fix.