Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
555 B

  1. on error resume next
  2. set computer = GetObject("umi:///winnt/computer=alanbos4")
  3. if err <> 0 then
  4. WScript.Echo "Retireval failed: 0x", Hex(Err.Number), Err.Description
  5. WScript.Quit 0
  6. end if
  7. set user = computer.GetInstance_ ("user=guest")
  8. if err <> 0 then
  9. WScript.Echo "User Retireval failed: 0x", Hex(Err.Number), Err.Description
  10. WScript.Quit 0
  11. end if
  12. WScript.Echo user.Description
  13. user.Put_
  14. if err <> 0 then
  15. WScript.Echo "Put failed: 0x", Hex(Err.Number), Err.Description
  16. WScript.Quit 0
  17. end if
  18. WScript.Echo "Success"