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.

23 lines
597 B

  1. set comp=getobject("umi:///WinNT/computer=alanbos4")
  2. set user = comp.GetInstance_ ("user=guest")
  3. if(user.dialinprivilege = True) then
  4. wscript.echo "Dialin Privilege: True"
  5. else
  6. wscript.echo "Dialin Privilege: False"
  7. end if
  8. callbackId = user.GetRasCallBack
  9. if callbackId=1 then
  10. WScript.Echo "Callback ID: None"
  11. elseif callbackId=2 then
  12. WScript.Echo "Callback ID: Set by admin"
  13. elseif callbackId=4 then
  14. WScript.Echo "Callback ID: Set by caller"
  15. else
  16. WScript.Echo "Callback ID: Unknown"
  17. end if
  18. phoneNum = user.GetRasPhoneNumber
  19. WScript.Echo "Phone #:", phoneNum