Skip to content

Instantly share code, notes, and snippets.

@bobalob
Created December 5, 2016 19:10
Show Gist options
  • Save bobalob/39c143ba6d578629520c5d38d855842f to your computer and use it in GitHub Desktop.
Save bobalob/39c143ba6d578629520c5d38d855842f to your computer and use it in GitHub Desktop.
if (!($guid)) {[Guid]$Guid = Read-Host "Paste GUID for client here:"}
$NewPullClientMof = "C:\DSC\NewPullClient\pullclient.example.com.mof"
$GuidPullClientMof = "C:\Program Files\WindowsPowerShell\DscService\Configuration\$($guid.guid).mof"
Copy-Item -Path $NewPullClientMof -Destination $GuidPullClientMof
New-DSCChecksum $NewPullClientMof
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment