Skip to content

Instantly share code, notes, and snippets.

@weiyentan
Last active December 24, 2020 19:00
Show Gist options
  • Save weiyentan/a70341ce6093e1206770cbe031a7ddf9 to your computer and use it in GitHub Desktop.
Save weiyentan/a70341ce6093e1206770cbe031a7ddf9 to your computer and use it in GitHub Desktop.
$servers = import-csv c:\temp\servers.csv
foreach ($server in $servers){
Invoke-WindowsDeploymentCommonTask -computername $server.name -type $server.type
Invoke-SQLDeploymenttask -computername $server.name -conmfigurationtype $server.type
}
@weiyentan
Copy link
Author

Example showing a simple powershell script

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment