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
10.0.0-previ... 28 11/15/2024
10.0.0-previ... 47 10/30/2024
10.0.0-previ... 18 10/22/2024
10.0.0-previ... 17 10/16/2024
9.2.1-previe... 29 9/30/2024
9.2.0 83,226 9/30/2024
9.2.0-previe... 73 8/31/2024
9.1.1-previe... 366 6/6/2024
9.1.0 242,687 4/30/2024
9.1.0-previe... 17 4/24/2024
9.1.0-previe... 522 12/4/2023
9.1.0-previe... 806 7/17/2023
9.1.0-previe... 478 3/10/2023
9.0.1-previe... 77 2/25/2023
9.0.0 2,173,058 2/22/2023
9.0.0-previe... 486 12/11/2022
8.6.0-previe... 96 11/23/2022
8.6.0-previe... 91 11/7/2022
8.6.0-previe... 718 6/2/2022
8.6.0-previe... 85 5/27/2022
8.5.0 5,834,789 9/13/2021
8.5.0-previe... 1,447 4/15/2021
8.4.1-previe... 474 2/12/2021
8.4.1-previe... 86 2/8/2021
8.4.1-previe... 457 8/5/2020
8.4.0 428,640 8/3/2020
8.4.0-previe... 144 7/4/2020
8.3.0 17,317 6/30/2020
8.3.0-previe... 70 6/26/2020
8.2.1-previe... 172 5/14/2020
8.2.0 37,416 5/5/2020
8.1.0 19,880 3/26/2020
8.1.0-previe... 79 3/25/2020
8.1.0-previe... 69 3/24/2020
8.0.0 43,372 2/14/2020
8.0.0-previe... 70 2/14/2020
8.0.0-previe... 81 2/8/2020
7.1.0.0 87,205 10/30/2019
7.0.0.0 (current version) 25,921 9/19/2019
6.5.0.0 21,706 8/8/2019
6.4.0.0 44,180 5/15/2019
6.3.0.0 26,138 4/3/2019
6.2.0.0 56,810 2/20/2019
6.1.0.0 12,882 1/10/2019
6.0.0.0 10,895 10/25/2018
5.2.0.0 15,355 7/25/2018
5.1.0.0 34,904,142 6/13/2018
5.0.0.0 5,599 5/3/2018
Show less