Skip to content

Instantly share code, notes, and snippets.

@vhusker
Created March 10, 2015 12:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vhusker/2088f40cf87895f2dcc8 to your computer and use it in GitHub Desktop.
Save vhusker/2088f40cf87895f2dcc8 to your computer and use it in GitHub Desktop.
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