Can someone help me on how to get the systemdrive variable on a win2k box? I know how to do it on win2k3 using the win32_operatingsystem just can't get it figured out for a win2k box.
You can get it too using wmi binding to the remote's win32_operatingsystem and selecting it's systemdrive attribute. (In case systemdrive is not supported on the remote system, you can always fall back on systemdirectory attribute to derive the system drive from it.)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.