Powershell:DSC

Microsoft:

https://blogs.msdn.microsoft.com/powershell/2013/12/26/holiday-gift-desired-state-configuration-dsc-resource-kit-wave-1/

PowerShellMagazine:
TAG:DSC
Desired State Configuration (DSC) Resource Kit Wave-2 (Module overview)

Desired State Configuration (DSC) und Windows Server 2016

Building an AD Domain Testlab with DSC

Development environments with PowerShell DSC

Creating Professional DSC Resources


GPO / ADMX


MSDN: Managing Group Policy ADMX Files Step-by-Step Guide


COMPOSITION


https://blogs.msdn.microsoft.com/powershell/2013/12/26/holiday-gift-desired-state-configuration-dsc-resource-kit-wave-1/


MODULES


PSDesiredStateConfiguration

https://www.powershellgallery.com/packages/PSDscResources
https://github.com/PowerShell/PSDscResources
https://docs.microsoft.com/de-de/powershell/dsc/builtinresource

Get-DscResource Archive | Select-Object -ExpandProperty Properties
Get-DscResource Environment | Select-Object -ExpandProperty Properties
Get-DscResource File | Select-Object -ExpandProperty Properties
Get-DscResource Group | Select-Object -ExpandProperty Properties
Get-DscResource Log | Select-Object -ExpandProperty Properties
Get-DscResource Package | Select-Object -ExpandProperty Properties
Get-DscResource Registry | Select-Object -ExpandProperty Properties
Get-DscResource Script | Select-Object -ExpandProperty Properties
Get-DscResource Service | Select-Object -ExpandProperty Properties
Get-DscResource User | Select-Object -ExpandProperty Properties
Get-DscResource WaitForAll | Select-Object -ExpandProperty Properties
Get-DscResource WaitForAny | Select-Object -ExpandProperty Properties
Get-DscResource WaitForSome | Select-Object -ExpandProperty Properties
Get-DscResource WindowsFeature | Select-Object -ExpandProperty Properties
Get-DscResource WindowsFeatureSet | Select-Object -ExpandProperty Properties
Get-DscResource WindowsPackageCab | Select-Object -ExpandProperty Properties
Get-DscResource WindowsProcess | Select-Object -ExpandProperty Properties
Get-DscResource WindowsOptionalFeature | Select-Object -ExpandProperty Properties

xActiveDirectory

https://www.powershellgallery.com/packages/xActiveDirectory
https://gallery.technet.microsoft.com/scriptcenter/xActiveDirectory-f2d573f3
https://github.com/PowerShell/xActiveDirectory

https://blogs.technet.microsoft.com/ashleymcglone/2015/03/20/deploy-active-directory-with-powershell-dsc-a-k-a-dsc-promo/
https://4sysops.com/archives/creating-an-active-directory-domain-with-powershell-dsc/
https://blog.kloud.com.au/2016/09/08/create-a-new-active-directory-forest-using-desired-state-configuration/
https://ghassanhariz7.azurewebsites.net/2016/12/14/build-premises-domain-controller-dc-using-desired-state-configuration/
https://www.gigatrust.com/creating-new-forest-multiple-domain-controllers-powershell-dsc/

https://recordnotfound.com/xActiveDirectory-PowerShell-118861
foxdeploy.com: Part III – DSC – Making our Domain Controller
TN:Blog: Configuring Active Directory with PowerShell DSC and the New xADRecycleBin Resource

Fehler [Microsoft.DirectoryServices.Deployment.Types.ForestMode]

https://github.com/PowerShell/xActiveDirectory/issues/221
https://github.com/PowerShell/xActiveDirectory/pull/217/files/551fd61dbb4a1b6f80a141eb6e5a3b8172a9a2b8

Get-DscResource xADComputer | Select-Object -ExpandProperty Properties
Get-DscResource xADDomain | Select-Object -ExpandProperty Properties
Get-DscResource xADDomainController | Select-Object -ExpandProperty Properties
Get-DscResource xADDomainDefaultPasswordPolicy | Select-Object -ExpandProperty Properties
Get-DscResource xADDomainTrust | Select-Object -ExpandProperty Properties
Get-DscResource xADGroup | Select-Object -ExpandProperty Properties
Get-DscResource xADOrganizationalUnit | Select-Object -ExpandProperty Properties
Get-DscResource xADRecycleBin | Select-Object -ExpandProperty Properties
Get-DscResource xADReplicationSite | Select-Object -ExpandProperty Properties
Get-DscResource xADReplicationSubnet | Select-Object -ExpandProperty Properties
Get-DscResource xADServicePrincipalName | Select-Object -ExpandProperty Properties
Get-DscResource xADUser | Select-Object -ExpandProperty Properties
Get-DscResource xWaitForADDomain | Select-Object -ExpandProperty Properties

ActiveDirectoryCSDsc

https://www.powershellgallery.com/packages/ActiveDirectoryCSDsc
https://github.com/PowerShell/ActiveDirectoryCSDsc (ReadMe - Install - Retire)

Get-DscResource AdcsCertificationAuthority | Select-Object -ExpandProperty Properties
Get-DscResource AdcsEnrollmentPolicyWebService | Select-Object -ExpandProperty Properties
Get-DscResource AdcsOnlineResponder | Select-Object -ExpandProperty Properties
Get-DscResource AdcsWebEnrollment | Select-Object -ExpandProperty Properties

https://www.virtuallyboring.com/setup-microsoft-active-directory-certificate-services-ad-cs/
https://social.technet.microsoft.com/wiki/contents/articles/3063.certutil-examples-for-managing-active-directory-certificate-services-ad-cs-from-the-command-line.aspx
https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/certutil
'https://books.google.de/books?id=XK7fCQAAQBAJ&pg=PT761&lpg=PT761&dq=certutil+create+NTAuth&source=bl&ots=NIiTFykjNb&sig=fW4qPmZ36KmklDYuluIh-G4EHC8&hl=de&sa=X&ved=2ahUKEwiEo9WytuveAhXkBcAKHRd_BXcQ6AEwBXoECAQQAQ#v=onepage&q=certutil%20create%20NTAuth&f=false

xAdcsDeployment

https://www.powershellgallery.com/packages/xAdcsDeployment
https://gallery.technet.microsoft.com/scriptcenter/xAdcsDeployment-PowerShell-cc0622fa

Get-DscResource xAdcsCertificationAuthority | Select-Object -ExpandProperty Properties
Get-DscResource xAdcsOnlineResponder | Select-Object -ExpandProperty Properties
Get-DscResource xAdcsWebEnrollment | Select-Object -ExpandProperty Properties

xComputerManagement

The xComputerManagement module contains the xComputer DSC Resource. This DSC Resource allows you to configure a computer by changing its name and modifying its domain or workgroup.

https://www.powershellgallery.com/packages/xComputerManagement
https://gallery.technet.microsoft.com/scriptcenter/xComputerManagement-Module-3ad911cc
https://github.com/PowerShell/xComputerManagement
https://chocolatey.org/packages/DSC.ComputerManagement

Get-DscResource xComputer | Select-Object -ExpandProperty Properties
Get-DscResource xOfflineDomainJoin | Select-Object -ExpandProperty Properties
Get-DscResource xPowerPlan | Select-Object -ExpandProperty Properties
Get-DscResource xScheduledTask | Select-Object -ExpandProperty Properties
Get-DscResource xVirtualMemory | Select-Object -ExpandProperty Properties

xDnsServer

https://www.powershellgallery.com/packages/xDnsServer/
https://gallery.technet.microsoft.com/scriptcenter/xDNSServer-Module-d9739d3a
https://github.com/PowerShell/xDnsServer

Wikipedia: List of DNS record types

Get-DscResource xDnsARecord | Select-Object -ExpandProperty Properties
Get-DscResource xDnsRecord | Select-Object -ExpandProperty Properties
Get-DscResource xDnsServerADZone | Select-Object -ExpandProperty Properties
Get-DscResource xDnsServerForwarder | Select-Object -ExpandProperty Properties
Get-DscResource xDnsServerPrimaryZone | Select-Object -ExpandProperty Properties
Get-DscResource xDnsServerSecondaryZone | Select-Object -ExpandProperty Properties
Get-DscResource xDnsServerSetting | Select-Object -ExpandProperty Properties
Get-DscResource xDnsServerZoneAging | Select-Object -ExpandProperty Properties
Get-DscResource xDnsServerZoneTransfer | Select-Object -ExpandProperty Properties

xNetworking

https://www.powershellgallery.com/packages/xNetworking/
https://gallery.technet.microsoft.com/scriptcenter/xNetworking-Module-818b3583
https://github.com/PowerShell/xNetworking

Get-DscResource xDefaultGatewayAddress | Select-Object -ExpandProperty Properties
Get-DscResource xDHCPClient | Select-Object -ExpandProperty Properties
Get-DscResource xDnsClientGlobalSetting | Select-Object -ExpandProperty Properties
Get-DscResource xDnsConnectionSuffix | Select-Object -ExpandProperty Properties
Get-DscResource xDNSServerAddress | Select-Object -ExpandProperty Properties
Get-DscResource xFirewall | Select-Object -ExpandProperty Properties
Get-DscResource xFirewallProfile | Select-Object -ExpandProperty Properties
Get-DscResource xHostsFile | Select-Object -ExpandProperty Properties
Get-DscResource xIPAddress | Select-Object -ExpandProperty Properties
Get-DscResource xIPAddressOption | Select-Object -ExpandProperty Properties
Get-DscResource xNetAdapterAdvancedProperty | Select-Object -ExpandProperty Properties
Get-DscResource xNetAdapterBinding | Select-Object -ExpandProperty Properties
Get-DscResource xNetAdapterLso | Select-Object -ExpandProperty Properties
Get-DscResource xNetAdapterName | Select-Object -ExpandProperty Properties
Get-DscResource xNetAdapterRDMA | Select-Object -ExpandProperty Properties
Get-DscResource xNetAdapterRsc | Select-Object -ExpandProperty Properties
Get-DscResource xNetAdapterRss | Select-Object -ExpandProperty Properties
Get-DscResource xNetBIOS | Select-Object -ExpandProperty Properties
Get-DscResource xNetConnectionProfile | Select-Object -ExpandProperty Properties
Get-DscResource xNetworkTeam | Select-Object -ExpandProperty Properties
Get-DscResource xNetworkTeamInterface | Select-Object -ExpandProperty Properties
Get-DscResource xProxySettings | Select-Object -ExpandProperty Properties
Get-DscResource xRoute | Select-Object -ExpandProperty Properties
Get-DscResource xWeakHostReceive | Select-Object -ExpandProperty Properties
Get-DscResource xWeakHostSend | Select-Object -ExpandProperty Properties
Get-DscResource xWINSSetting | Select-Object -ExpandProperty Properties

xPendingReboot

https://www.powershellgallery.com/packages/xPendingReboot/
https://gallery.technet.microsoft.com/scriptcenter/xPendingReboot-PowerShell-b269f154
https://github.com/PowerShell/xPendingReboot

Get-DscResource xPendingReboot | Select-Object -ExpandProperty Properties

xPSDesiredStateConfiguration

https://www.powershellgallery.com/packages/xPSDesiredStateConfiguration/
https://gallery.technet.microsoft.com/xPSDesiredStateConfiguratio-417dc71d
https://github.com/PowerShell/xPSDesiredStateConfiguration Readme

Get-DscResource -Module xPSDesiredStateConfiguration | ForEach-Object { Write-Host ("==> {0}" -f ($_.Name)) -ForegroundColor Yellow ; Get-DscResource ($_.Name) | Select-Object -ExpandProperty Properties }
(Get-DscResource -Module xPSDesiredStateConfiguration).Name | ForEach-Object { "Get-DscResource {0} | Select-Object -ExpandProperty Properties" -f $_ } | clip
Get-DscResource xArchive | Select-Object -ExpandProperty Properties
Get-DscResource xDSCWebService | Select-Object -ExpandProperty Properties
Get-DscResource xEnvironment | Select-Object -ExpandProperty Properties
Get-DscResource xFileUpload | Select-Object -ExpandProperty Properties
Get-DscResource xGroup | Select-Object -ExpandProperty Properties
Get-DscResource xGroupSet | Select-Object -ExpandProperty Properties
Get-DscResource xMsiPackage | Select-Object -ExpandProperty Properties
Get-DscResource xPackage | Select-Object -ExpandProperty Properties
Get-DscResource xProcessSet | Select-Object -ExpandProperty Properties
Get-DscResource xPSEndpoint | Select-Object -ExpandProperty Properties
Get-DscResource xRegistry | Select-Object -ExpandProperty Properties
Get-DscResource xRemoteFile | Select-Object -ExpandProperty Properties
Get-DscResource xScript | Select-Object -ExpandProperty Properties
Get-DscResource xService | Select-Object -ExpandProperty Properties
Get-DscResource xServiceSet | Select-Object -ExpandProperty Properties
Get-DscResource xUser | Select-Object -ExpandProperty Properties
Get-DscResource xWindowsFeature | Select-Object -ExpandProperty Properties
Get-DscResource xWindowsFeatureSet | Select-Object -ExpandProperty Properties
Get-DscResource xWindowsOptionalFeature | Select-Object -ExpandProperty Properties
Get-DscResource xWindowsOptionalFeatureSet | Select-Object -ExpandProperty Properties
Get-DscResource xWindowsPackageCab | Select-Object -ExpandProperty Properties
Get-DscResource xWindowsProcess | Select-Object -ExpandProperty Properties

SqlServerDsc

https://www.powershellgallery.com/packages/SqlServerDsc
https://github.com/PowerShell/SqlServerDsc Readme

Get-DscResource SqlAG | Select-Object -ExpandProperty Properties
Get-DscResource SqlAGDatabase | Select-Object -ExpandProperty Properties
Get-DscResource SqlAGListener | Select-Object -ExpandProperty Properties
Get-DscResource SqlAGReplica | Select-Object -ExpandProperty Properties
Get-DscResource SqlAlias | Select-Object -ExpandProperty Properties
Get-DscResource SqlAlwaysOnService | Select-Object -ExpandProperty Properties
Get-DscResource SqlDatabase | Select-Object -ExpandProperty Properties
Get-DscResource SqlDatabaseDefaultLocation | Select-Object -ExpandProperty Properties
Get-DscResource SqlDatabaseOwner | Select-Object -ExpandProperty Properties
Get-DscResource SqlDatabasePermission | Select-Object -ExpandProperty Properties
Get-DscResource SqlDatabaseRecoveryModel | Select-Object -ExpandProperty Properties
Get-DscResource SqlDatabaseRole | Select-Object -ExpandProperty Properties
Get-DscResource SqlRS | Select-Object -ExpandProperty Properties
Get-DscResource SqlScript | Select-Object -ExpandProperty Properties
Get-DscResource SqlServerConfiguration | Select-Object -ExpandProperty Properties
Get-DscResource SqlServerDatabaseMail | Select-Object -ExpandProperty Properties
Get-DscResource SqlServerEndpoint | Select-Object -ExpandProperty Properties
Get-DscResource SqlServerEndpointPermission | Select-Object -ExpandProperty Properties
Get-DscResource SqlServerEndpointState | Select-Object -ExpandProperty Properties
Get-DscResource SqlServerLogin | Select-Object -ExpandProperty Properties
Get-DscResource SqlServerMaxDop | Select-Object -ExpandProperty Properties
Get-DscResource SqlServerMemory | Select-Object -ExpandProperty Properties
Get-DscResource SqlServerNetwork | Select-Object -ExpandProperty Properties
Get-DscResource SqlServerPermission | Select-Object -ExpandProperty Properties
Get-DscResource SqlServerReplication | Select-Object -ExpandProperty Properties
Get-DscResource SqlServerRole | Select-Object -ExpandProperty Properties
Get-DscResource SqlServiceAccount | Select-Object -ExpandProperty Properties
Get-DscResource SqlSetup | Select-Object -ExpandProperty Properties
Get-DscResource SqlWaitForAG | Select-Object -ExpandProperty Properties
Get-DscResource SqlWindowsFirewall | Select-Object -ExpandProperty Properties

Install SQL Server 2017 Using PowerShell Desired State Configuration and SqlServerDsc
Getting IDs to use with the Package DSC resource


xSystemSecurity

https://www.powershellgallery.com/packages/xSystemSecurity
https://gallery.technet.microsoft.com/scriptcenter/xSystemSecurity-PowerShell-42ad87eb
https://github.com/PowerShell/xSystemSecurity

Get-DscResource xFileSystemAccessRule | Select-Object -ExpandProperty Properties
Get-DscResource xIEEsc | Select-Object -ExpandProperty Properties
Get-DscResource xUac | Select-Object -ExpandProperty Properties

xTimeZone

https://www.powershellgallery.com/packages/xTimeZone
https://gallery.technet.microsoft.com/scriptcenter/How-to-set-the-System-Time-5821a816
https://github.com/PowerShell/xTimeZone

Get-DscResource xTimeZone | Select-Object -ExpandProperty Properties

xWebAdministration

https://www.powershellgallery.com/packages/xWebAdministration/
https://gallery.technet.microsoft.com/scriptcenter/xWebAdministration-Module-3c8bb6be
https://github.com/PowerShell/xWebAdministration
https://chocolatey.org/packages/DSC.WebAdministration



BaselineManagement

https://www.powershellgallery.com/packages/BaselineManagement/
https://github.com/Microsoft/BaselineManagement

Get-DscResource ConvertFrom-SCM | Select-Object -ExpandProperty Properties
Get-DscResource ConvertFrom-ASC | Select-Object -ExpandProperty Properties
Get-DscResource ConvertFrom-GPO | Select-Object -ExpandProperty Properties
Get-DscResource ConvertTo-DSC | Select-Object -ExpandProperty Properties
Get-DscResource ConvertFrom-Excel | Select-Object -ExpandProperty Properties

GPRegistryPolicyParser

https://www.powershellgallery.com/packages/GPRegistryPolicyParser/
https://github.com/PowerShell/GPRegistryPolicyParser

Get-DscResource Parse-PolFile | Select-Object -ExpandProperty Properties
Get-DscResource Read-RegistryPolicies | Select-Object -ExpandProperty Properties
Get-DscResource Create-RegistrySettingsEntry | Select-Object -ExpandProperty Properties
Get-DscResource Create-GPRegistryPolicyFile | Select-Object -ExpandProperty Properties
Get-DscResource Append-RegistryPolicies | Select-Object -ExpandProperty Properties

Managed Object Format (MOF)

MS:Docs Managed Object Format (MOF)
MS:Docs Designing Managed Object Format (MOF) Classes

MS:TN Using MOF Files

Windows Management Instrumentation (WMI)

MS:Docs Windows Management Instrumentation
MS:Docs WMI Reference
MS:Docs WMI Command-line Tools


NOTES


Enable-PSRemoting

Enable-PSRemoting -SkipNetworkProfileCheck -Force
Set-NetFirewallRule -Name "WINRM-HTTP-In-TCP-PUBLIC" -RemoteAddress Any

https://en.wikipedia.org/wiki/Deployment_environment

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License