Starting DSC mof on remote machine
suggest changeStarting DSC on a remote machine is the same idea, after PowerShell remoting (WinRM) is enabled. -Path is the folder that contains the MOF. There is no -ServerName parameter.
$remoteComputer = "myserver.somedomain.com"
$cred = Get-Credential
Start-DscConfiguration -Path .\ -ComputerName $remoteComputer -Credential $cred -Verbose -Wait
The folder must already contain myserver.somedomain.com.mof, compiled for that node.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents