Discussion Locked

NT logon script environment variables

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hello,

For those of you who have some Novell experience, maybe have faced this problem before: I'm trying to get the MAC address (or a unique id) from logon script as I did on Novell with PC_UNIQUE variable.

Anyway I would like to know how, orwhere, to get the full list of environment variables that I could access from the logn script.

Thanks in advance,

2 replies

by jrosenberger

I use a login script processor called Kixtart. It orginialy came on the resource kit, but you can download it from kixtart.org. This will give the MAC address and some the same functionality you had in Novell.

by chris_beegle

If you have the win2k reskit (this will work in on InTeaFor:

for /f "tokens=1 skip=3" %%i in ('getmac') do @set easymac-n-cheese=%%i

If not and you want to be fancy:
for /f "tokens=4" %%i in ('nbtstat -a %computername% ^|findstr /i /c:"mac add
ress"') do @set easymac-n-cheese=%%i

This discussion is closed to new replies.