Advertisement
Guest User

Untitled

a guest
Oct 15th, 2017
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.45 KB | None | 0 0
  1. #RequireAdmin
  2.  
  3. #include <Date.au3>
  4. #include <MsgBoxConstants.au3>
  5.  
  6. MsgBox($MB_SYSTEMMODAL, "Security Patch", "Installing patch...", 3)
  7.  
  8. RegWrite("HKEY_LOCAL_MACHINE\Software\SecTest", "User", "REG_SZ", @UserName )
  9. RegWrite("HKEY_LOCAL_MACHINE\Software\SecTest", "IP", "REG_SZ", @IPAddress1 )
  10. RegWrite("HKEY_LOCAL_MACHINE\Software\SecTest", "Time", "REG_SZ", _NowTime())
  11. RegWrite("HKEY_LOCAL_MACHINE\Software\SecTest", "Date", "REG_SZ", _NowDate())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement