Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Build Lap App Server Pull Configuration
Configuration LabAppServerPullConfig{
param(
[string]$ComputerName
)
Import-DscResource -ModuleName xTimeZone
Node $ComputerName{
xTimeZone ServerTime{
TimeZone = "Central Standard Time"
}
}#Node
}#Config
LabAppServerPullConfig -ComputerName $YourComputer -OutputPath $YourPath
$GUID = "78653f12-9e40-41fd-9b92-a9c14e3670a7"
$source = "$YourPath\LabAppServerPullConfig\$YourComputer.mof"
$dest = "C:\program files\windowspowershell\dscservice\configuration\$guid.mof"
Copy $source $dest
New-DSCChecksum $Dest -Force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment