Hi,
I am currently writng a platform validation tool that will run post server
build from a remote server. In order to make it OS version agnostic I need to
remotely query local system variables - specifically %SYSTEMROOT%.
As it wont be run locally I can't use "objShell.ExpandEnvironmentStrings" so
I have been trying the "Win32_Environment" wmi class. Only issue is that
this seems to only return variables under
"HKLM\System\CurrentControlSet\Control\
Sessionmanager\Environment" of which %SYSTEMROOT% is not there?
I have searched the registry and can't seem to find any reference of where
this get set.
Does anybody have any idea or functions that can recieve this information?
Basically I need to mimic the functionality of
"objShell.ExpandEnvironmentStrings" but remotely.
Thanks,
Rob