We've used regedit commands run via the login script to write the computer name from the registry to a text file, you could do the same but write the name to a text file based on the OS? e.g. if %OS = "WINNT" then . . .
You can't differenciate between NT 4 and Win2k unless you look at the version, Win2k is WINNT 5 and above.
thanx for your help chunk... could you tell me how you write something to a text file im only a beginner at scripting... an example would be great if you wouldnt mind.. thanx again for your help
Sorry, forgot, we call the batch file from the login script then, just #H:\COMPUTERNAME.BAT or whatever you call the file. The map root h:=. . . . that i put in the batch file above needs to be in the script...
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.