ComputerManagementDsc

7.0.0.0

The ComputerManagementDsc module is originally part of the Windows PowerShell Desired State Configuration (DSC) Resource Kit. This version has been modified for use in Azure. This module contains the xComputer and xDisk resources. These DSC Resources allow you to perform computer management tasks, like joining a domain or initializing disks.

All of the resources in
The ComputerManagementDsc module is originally part of the Windows PowerShell Desired State Configuration (DSC) Resource Kit. This version has been modified for use in Azure. This module contains the xComputer and xDisk resources. These DSC Resources allow you to perform computer management tasks, like joining a domain or initializing disks.

All of the resources in the DSC Resource Kit are provided AS IS, and are not supported through any Microsoft standard support program or service.
Show more

Minimum PowerShell version

4.0

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 ComputerManagementDsc -RequiredVersion 7.0.0.0

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

Install-PSResource -Name ComputerManagementDsc -Version 7.0.0.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) Microsoft Corporation. All rights reserved.

Package Details

Author(s)

  • Microsoft Corporation

Tags

DesiredStateConfiguration DSC DSCResourceKit DSCResource

DSCResources

Computer OfflineDomainJoin PendingReboot PowerPlan PowerShellExecutionPolicy RemoteDesktopAdmin ScheduledTask SmbShare TimeZone VirtualMemory WindowsEventLog

Dependencies

This module has no dependencies.

Release Notes

- ScheduledTask:
 - Better compatibility with Group LogonType
   when passing BuiltIn groups through ExecuteAsCredential
   - Primary use case is "BUILTIN\Users"
   - Use the ExecuteAsCredential property to pass the username
     The PSCredential needs a non-null that is ignored
 - Delay property not handled properly on AtLogon and AtStartup trigger - Fixes
   [Issue 230](https://github.com/PowerShell/ComputerManagementDsc/issues/230)
 - Changed `Get-ScheduledTask` calls to `ScheduledTasks\Get-ScheduledTask` to
   avoid name clash with `Carbon` module. Fixes [Issue 248](https://github.com/PowerShell/ComputerManagementDsc/issues/248)
 - Cast `MultipleInstances` value returned by `Get-TargetResource` to `string` -
   fixes [Issue 255](https://github.com/PowerShell/ComputerManagementDsc/issues/255)
- PendingReboot:
 - Migrated xPendingReboot from [xPendingReboot](https://github.com/PowerShell/xPendingReboot)
   and renamed to PendingReboot.
 - Converted to meet HQRM guidelines - Fixes [Issue 12](https://github.com/PowerShell/xPendingReboot/issues/12).
 - Changed `SkipCcmClientSDK` parameter to default to `$true` - Fixes [Issue 13](https://github.com/PowerShell/xPendingReboot/issues/13).
 - Fixed `Test-TargetResource` so that if ConfigMgr requires a reboot then
   the pending reboot will be set - Fixes [Issue 26](https://github.com/PowerShell/xPendingReboot/issues/26).
 - Refactored `Test-TargetResource` to reduce code duplication and move to a
   data driven design.
 - Refactored `Get-TargetResource` by adding a new function `Get-PendingRebootState`
   so that `Test-TargetResource` no longer needed to use `Get-TargetResource`. This
   eliminated the need to include write parameters in `Get-TargetResource`.
 - Converted the call to `Invoke-WmiMethod` to `Invoke-CimMethod`.
 - Deleted the code that removes the `regRebootLocations` variable at the end of
   the resource as it appears to serve no purpose.
- Correct all tests to meet Pester 4.0 standards.
- RemoteDesktopAdmin:
 - New resource for configuring Remote Desktop for Administration - fixes
   [Issue 224](https://github.com/PowerShell/ComputerManagementDsc/issues/224).
- Updated common function `Test-DscParameterState` to support ordered comparison
 of arrays by copying function and tests from `NetworkingDsc` - fixes [Issue 250](https://github.com/PowerShell/ComputerManagementDsc/issues/250).
- BREAKING CHANGE: ScheduledTask:
 - Correct output type of `DaysInterval`,`StartTime`,`WeeksDaysOfWeek`,
   and `WeeksInterval` parameters from `Get-TargetResource` to match MOF.
 - Refactored `Get-TargetResource` to remove parameters that
   are not key or required - fixes [Issue 249](https://github.com/PowerShell/ComputerManagementDsc/issues/249).
 - Added function `Test-DateStringContainsTimeZone` to determine if a string
   containing a date time includes a time zone.
 - Enable verbose preference to be passed through to `Test-DscParameterState`.
 - Changed `Test-TargetResource` so that `StartTime` is only compared for
   trigger types `Daily`,`Weekly` or `Once`.
- Fix minor style issues in statement case.

FileList

Version History

Version Downloads Last updated
9.1.0-previe... 13 4/24/2024
9.1.0-previe... 518 12/4/2023
9.1.0-previe... 751 7/17/2023
9.1.0-previe... 475 3/10/2023
9.0.1-previe... 74 2/25/2023
9.0.0 2,149,053 2/22/2023
9.0.0-previe... 483 12/11/2022
8.6.0-previe... 93 11/23/2022
8.6.0-previe... 88 11/7/2022
8.6.0-previe... 715 6/2/2022
8.6.0-previe... 82 5/27/2022
8.5.0 5,759,228 9/13/2021
8.5.0-previe... 1,265 4/15/2021
8.4.1-previe... 471 2/12/2021
8.4.1-previe... 83 2/8/2021
8.4.1-previe... 454 8/5/2020
8.4.0 394,671 8/3/2020
8.4.0-previe... 141 7/4/2020
8.3.0 16,457 6/30/2020
8.3.0-previe... 67 6/26/2020
8.2.1-previe... 169 5/14/2020
8.2.0 37,112 5/5/2020
8.1.0 19,820 3/26/2020
8.1.0-previe... 76 3/25/2020
8.1.0-previe... 66 3/24/2020
8.0.0 40,812 2/14/2020
8.0.0-previe... 67 2/14/2020
8.0.0-previe... 78 2/8/2020
7.1.0.0 85,873 10/30/2019
7.0.0.0 (current version) 25,807 9/19/2019
6.5.0.0 21,622 8/8/2019
6.4.0.0 43,726 5/15/2019
6.3.0.0 26,131 4/3/2019
6.2.0.0 56,802 2/20/2019
6.1.0.0 12,869 1/10/2019
6.0.0.0 10,872 10/25/2018
5.2.0.0 15,290 7/25/2018
5.1.0.0 34,904,137 6/13/2018
5.0.0.0 4,997 5/3/2018
Show less