EgilHansen
IS-IT--Management
- Jan 3, 2006
- 16
Hello
I need to know the server name of the server from where my logon server is running. How do I do that. I have managed to find the directory from where the logon script is running:
... but isn't there a easier way of getting the logon servers name, then to parse that string for the logon server?
Best regards, Egil.
I need to know the server name of the server from where my logon server is running. How do I do that. I have managed to find the directory from where the logon script is running:
Code:
strCurrentDirectory = Left(Wscript.scriptfullname,Instr(1,WScript.ScriptFullName,wscript.scriptname,1)-1)
... but isn't there a easier way of getting the logon servers name, then to parse that string for the logon server?
Best regards, Egil.