Skip to content

Instantly share code, notes, and snippets.

@ejhayes
Created August 3, 2010 16:52
Show Gist options
  • Save ejhayes/506722 to your computer and use it in GitHub Desktop.
Save ejhayes/506722 to your computer and use it in GitHub Desktop.
REM FYI: This could be more graceful...
Set RegQry=HKLM\Software\Microsoft\Windows\CurrentVersion\Run
for /f "skip=1" %1 in ('reg query %RegQry% /v Unattend*') do Reg Delete "%RegQry%" /v "%1" /f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment