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.

28 lines
731 B

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