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.

31 lines
751 B

  1. on error resume next
  2. while true
  3. Set Locator = CreateObject("WbemScripting.SWbemLocator")
  4. WScript.Echo "Remote Case"
  5. WScript.Echo "***********"
  6. WScript.Echo ""
  7. Set Service = Locator.ConnectServer ("ludlow","root\default")
  8. if err <> 0 then
  9. WScript.Echo "Error:-", Err.Description, Err.Number, Err.Source
  10. end if
  11. WScript.Echo Service.Security_.AuthenticationLevel
  12. WScript.Echo Service.Security_.ImpersonationLevel
  13. WScript.Echo "Local Case"
  14. WScript.Echo "**********"
  15. WScript.Echo ""
  16. Set Service = Locator.ConnectServer
  17. if err <> 0 then
  18. WScript.Echo "Error:-", Err.Description, Err.Number, Err.Source
  19. end if
  20. WScript.Echo Service.Security_.AuthenticationLevel
  21. WScript.Echo Service.Security_.ImpersonationLevel
  22. wend