Tuesday, August 4, 2020

Powershell Dsc Setup

To have Dsc ready, powershell version 5.1 and above shoulbe there along with dotnet 4.5.2.

$PSVersionTable.PSVersion --> >=5


And then, you need to enable WMI and remoting, which can be done in single step by below command.


Enable-PSRemoting -SkipNetworkProfileCheck -Force
check that using --> enter-pssession -ComputerName localhost


Powershell modules required:

PSDesiredStateConfiguration(get-command -module PSDesiredStateConfiguration)
Built-in DSC resources

No comments:

Post a Comment