ComputerManagementDsc
7.0.0.0
All of the resources in
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.
Minimum PowerShell version
4.0
See the version list below for details.
Installation Options
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
- ComputerManagementDsc.nuspec
- CHANGELOG.md
- CODE_OF_CONDUCT.md
- ComputerManagementDsc.psd1
- LICENSE
- README.md
- DSCResources\MSFT_Computer\MSFT_Computer.psm1
- DSCResources\MSFT_Computer\MSFT_Computer.schema.mof
- DSCResources\MSFT_Computer\README.md
- DSCResources\MSFT_Computer\en-US\MSFT_Computer.strings.psd1
- DSCResources\MSFT_OfflineDomainJoin\MSFT_OfflineDomainJoin.psm1
- DSCResources\MSFT_OfflineDomainJoin\MSFT_OfflineDomainJoin.schema.mof
- DSCResources\MSFT_OfflineDomainJoin\README.md
- DSCResources\MSFT_OfflineDomainJoin\en-US\MSFT_OfflineDomainJoin.strings.psd1
- DSCResources\MSFT_PendingReboot\MSFT_PendingReboot.psm1
- DSCResources\MSFT_PendingReboot\MSFT_PendingReboot.schema.mof
- DSCResources\MSFT_PendingReboot\README.md
- DSCResources\MSFT_PendingReboot\en-US\MSFT_PendingReboot.data.psd1
- DSCResources\MSFT_PendingReboot\en-US\MSFT_PendingReboot.strings.psd1
- DSCResources\MSFT_PowerPlan\MSFT_PowerPlan.psm1
- DSCResources\MSFT_PowerPlan\MSFT_PowerPlan.schema.mof
- DSCResources\MSFT_PowerPlan\README.md
- DSCResources\MSFT_PowerPlan\en-US\MSFT_PowerPlan.schema.mfl
- DSCResources\MSFT_PowerPlan\en-US\MSFT_PowerPlan.strings.psd1
- DSCResources\MSFT_PowerShellExecutionPolicy\MSFT_PowerShellExecutionPolicy.psm1
- DSCResources\MSFT_PowerShellExecutionPolicy\MSFT_PowerShellExecutionPolicy.schema.mof
- DSCResources\MSFT_PowerShellExecutionPolicy\README.md
- DSCResources\MSFT_PowerShellExecutionPolicy\en-US\MSFT_PowerShellExecutionPolicy.strings.psd1
- DSCResources\MSFT_RemoteDesktopAdmin\MSFT_RemoteDesktopAdmin.psm1
- DSCResources\MSFT_RemoteDesktopAdmin\MSFT_RemoteDesktopAdmin.schema.mof
- DSCResources\MSFT_RemoteDesktopAdmin\README.md
- DSCResources\MSFT_RemoteDesktopAdmin\en-US\MSFT_RemoteDesktopAdmin.strings.psd1
- DSCResources\MSFT_ScheduledTask\MSFT_ScheduledTask.psm1
- DSCResources\MSFT_ScheduledTask\MSFT_ScheduledTask.schema.mof
- DSCResources\MSFT_ScheduledTask\README.md
- DSCResources\MSFT_ScheduledTask\en-US\MSFT_ScheduledTask.strings.psd1
- DSCResources\MSFT_SmbShare\MSFT_SmbShare.psm1
- DSCResources\MSFT_SmbShare\MSFT_SmbShare.schema.mof
- DSCResources\MSFT_SmbShare\README.md
- DSCResources\MSFT_SmbShare\en-US\MSFT_SmbShare.schema.mfl
- DSCResources\MSFT_SmbShare\en-US\MSFT_SmbShare.strings.psd1
- DSCResources\MSFT_TimeZone\MSFT_TimeZone.psm1
- DSCResources\MSFT_TimeZone\MSFT_TimeZone.schema.mof
- DSCResources\MSFT_TimeZone\README.md
- DSCResources\MSFT_TimeZone\en-US\MSFT_TimeZone.strings.psd1
- DSCResources\MSFT_VirtualMemory\MSFT_VirtualMemory.psm1
- DSCResources\MSFT_VirtualMemory\MSFT_VirtualMemory.schema.mof
- DSCResources\MSFT_VirtualMemory\README.md
- DSCResources\MSFT_VirtualMemory\en-US\MSFT_VirtualMemory.strings.psd1
- DSCResources\MSFT_WindowsEventLog\MSFT_WindowsEventLog.psm1
- DSCResources\MSFT_WindowsEventLog\MSFT_WindowsEventLog.schema.mof
- DSCResources\MSFT_WindowsEventLog\README.md
- DSCResources\MSFT_WindowsEventLog\en-US\MSFT_WindowsEventLog.strings.psd1
- Examples\Resources\Computer\1-Computer_RenameComputerAndSetWorkgroup_Config.ps1
- Examples\Resources\Computer\2-Computer_JoinDomain_Config.ps1
- Examples\Resources\Computer\3-Computer_RenameComputerInDomain_Config.ps1
- Examples\Resources\Computer\4-Computer_RenameComputerInWorkgroup_Config.ps1
- Examples\Resources\Computer\5-Computer_UnjoinDomainAndJoinWorkgroup_Config.ps1
- Examples\Resources\Computer\6-Computer_SetComputerDescriptionInWorkgroup_Config.ps1
- Examples\Resources\Computer\7-Computer_JoinDomainSpecifyingDC_Config.ps1
- Examples\Resources\OfflineDomainJoin\1-OfflineDomainJoin_JoinDomainUsingODJBlob_Config.ps1
- Examples\Resources\PendingReboot\1-PendingReboot_RebootAfterDomainJoin_Config.ps1
- Examples\Resources\PendingReboot\2-PendingReboot_ConfigMgrReboot_Config.ps1
- Examples\Resources\PowerPlan\1-PowerPlan_SetPowerPlan_Config.ps1
- Examples\Resources\PowerShellExecutionPolicy\1-PowerShellExecutionPolicy_SetPolicy_Config.ps1
- Examples\Resources\PowerShellExecutionPolicy\2-PowerShellExecutionPolicy_SetPolicyForMultipleScopes_Config.ps1
- Examples\Resources\RemoteDesktopAdmin\1-RemoteDesktopAdmin_SetSecureRemoteDesktopAdmin_Config.ps1
- Examples\Resources\ScheduledTask\1-ScheduledTask_CreateScheduledTaskOnce_Config.ps1
- Examples\Resources\ScheduledTask\10-ScheduledTask_RunPowerShellTaskOnceAsUserInteractiveOnly_Config.ps1
- Examples\Resources\ScheduledTask\11-ScheduledTask_DisableABuiltInTask_Config.ps1
- Examples\Resources\ScheduledTask\12-ScheduledTask_DeleteABuiltInTask_Config.ps1
- Examples\Resources\ScheduledTask\13-ScheduledTask_CreateScheduledTasksOnEvent_Config.ps1
- Examples\Resources\ScheduledTask\14-ScheduledTask_RunPowerShellTaskOnceAsGroupManagedServiceAccount_Config.ps1
- Examples\Resources\ScheduledTask\15-ScheduledTask_CreateScheduledTaskOnceSynchronizeAcrossTimeZoneEnabled_Config.ps1
- Examples\Resources\ScheduledTask\16-ScheduledTask_CreateScheduledTasksAsBuiltInServiceAccount_Config.ps1
- Examples\Resources\ScheduledTask\2-ScheduledTask_CreateScheduledTaskDaily_Config.ps1
- Examples\Resources\ScheduledTask\3-ScheduledTask_CreateScheduledTasksDailyIndefinitely_Config.ps1
- Examples\Resources\ScheduledTask\4-ScheduledTask_CreateScheduledTasksWeekly_Config.ps1
- Examples\Resources\ScheduledTask\5-ScheduledTask_CreateScheduledTasksAtLogon_Config.ps1
- Examples\Resources\ScheduledTask\6-ScheduledTask_CreateScheduledTasksAtStartup_Config.ps1
- Examples\Resources\ScheduledTask\7-ScheduledTask_RunPowerShellTaskEvery15Minutes_Config.ps1
- Examples\Resources\ScheduledTask\8-ScheduledTask_RunPowerShellTaskEvery15MinutesIndefinitely_Config.ps1
- Examples\Resources\ScheduledTask\9-ScheduledTask_RunPowerShellTaskOnceAsUserWithHighestPriveleges_Config.ps1
- Examples\Resources\SmbShare\1-SmbShare_CreateShare_Config.ps1
- Examples\Resources\SmbShare\2-SmbShare_CreateShareAllProperties_Config.ps1
- Examples\Resources\SmbShare\3-SmbShare_RemoveShare_Config.ps1
- Examples\Resources\TimeZone\1-TimeZone_SetTimeZone_Config.ps1
- Examples\Resources\VirtualMemory\1-VirtualMemory_SetVirtualMemory_Config.ps1
- Examples\Resources\WindowsEventlog\1-WindowsEventlog_SetWindowsEventlogSize_Config.ps1
- Examples\Resources\WindowsEventlog\2-WindowsEventlog_SetWindowsEventlogLogMode_Config.ps1
- Examples\Resources\WindowsEventlog\3-WindowsEventlog_EnableWindowsEventLog_Config.ps1
- Examples\Resources\WindowsEventlog\4-WindowsEventlog_SetWindowsEventlogLogMode_Config.ps1
- Examples\Resources\WindowsEventlog\5-WindowsEventlog_SetWindowsEventlogSecurityDescriptor_Config.ps1
- Examples\Resources\WindowsEventlog\6-WindowsEventlog_DisableWindowsEventlog_Config.ps1
- Modules\ComputerManagementDsc.Common\ComputerManagementDsc.Common.psm1
- Modules\ComputerManagementDsc.Common\SetTimeZone.cs
- Modules\ComputerManagementDsc.Common\en-US\ComputerManagementDsc.Common.strings.psd1
- Tests\Integration\ComputerManagementDsc.Common.Tests.ps1
- Tests\Integration\MSFT_PendingReboot.Config.ps1
- Tests\Integration\MSFT_PendingReboot.Tests.ps1
- Tests\Integration\MSFT_PowerShellExecutionPolicy.config.ps1
- Tests\Integration\MSFT_PowerShellExecutionPolicy.Integration.Tests.ps1
- Tests\Integration\MSFT_RemoteDesktopAdmin.Config.ps1
- Tests\Integration\MSFT_RemoteDesktopAdmin.Integration.Tests.ps1
- Tests\Integration\MSFT_ScheduledTask.Config.ps1
- Tests\Integration\MSFT_ScheduledTask.Integration.Tests.ps1
- Tests\Integration\MSFT_SmbShare.config.ps1
- Tests\Integration\MSFT_SmbShare.Integration.Tests.ps1
- Tests\Integration\MSFT_TimeZone.config.ps1
- Tests\Integration\MSFT_TimeZone.Integration.Tests.ps1
- Tests\Integration\MSFT_VirtualMemory.Config.ps1
- Tests\Integration\MSFT_VirtualMemory.Integration.Tests.ps1
- Tests\Integration\MSFT_WindowsEventLog.config.ps1
- Tests\Integration\MSFT_WindowsEventLog.Integration.Tests.ps1
- Tests\TestHelpers\CommonTestHelper.psm1
- Tests\Unit\ComputerManagementDsc.Common.Tests.ps1
- Tests\Unit\MSFT_Computer.Tests.ps1
- Tests\Unit\MSFT_OfflineDomainJoin.Tests.ps1
- Tests\Unit\MSFT_PendingReboot.Tests.ps1
- Tests\Unit\MSFT_PowerPlan.Tests.ps1
- Tests\Unit\MSFT_PowerShellExecutionpolicy.Tests.ps1
- Tests\Unit\MSFT_RemoteDesktopAdmin.Tests.ps1
- Tests\Unit\MSFT_ScheduledTask.Tests.ps1
- Tests\Unit\MSFT_SmbShare.Tests.ps1
- Tests\Unit\MSFT_TimeZone.Tests.ps1
- Tests\Unit\MSFT_VirtualMemory.Tests.ps1
- Tests\Unit\MSFT_WindowsEventLog.Tests.ps1
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 |