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.

19 lines
648 B

  1. var t_Service = GetObject ("winmgmts:\\root\\default");
  2. var t_Class = t_Service.Get ("__CIMOMIDentification");
  3. WScript.Echo (t_Class.Path_.Path);
  4. var t_Class = GetObject ("winmgmts:root/cimv2:win32_logicaldisk");
  5. WScript.Echo (t_Class.Path_.Path);
  6. var t_Instance = GetObject ('winmgmts:{impersonationLevel=impersonate}!root/cimv2:win32_logicaldisk="C:"');
  7. WScript.Echo (t_Instance.Path_.Path);
  8. var t_Class = GetObject ("winmgmts:win32_logicaldisk");
  9. WScript.Echo (t_Class.Path_.Path);
  10. var t_Instance = GetObject ('winmgmts:{impersonationLevel=impersonate}!win32_logicaldisk="C:"');
  11. WScript.Echo (t_Instance.Path_.Path);