Last active
March 8, 2016 21:42
-
-
Save josephoaks/9ffccc9056b8e62dc23f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
####################### | |
### determine agent ### | |
####################### | |
$dir = "C:\Users\Administrator\Downloads" | |
$agent = Get-ChildItem $dir | Where-Object {$_.Extension -eq ".msi"} | |
msiexec /qn /norestart /l*v puppet_agent_install.log /i $agent.fullname PUPPET_MASTER_SERVER=master.puppetlabs.vm | |
############################# | |
### Remove RunOnce Script ### | |
############################# | |
Remove-Item -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\RunOnce |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment