Win2k logon script and licensing - TechRepublic
General discussion
February 9, 2001 at 10:41 AM
brianaaa12

Win2k logon script and licensing

by brianaaa12 . Updated 25 years, 3 months ago

Greetings,

I have a new Win2k Server set up with 10 Win2k workstations attached. The first problem is that I keep getting messages at the server saying it’s out of licenses. I have 15 licenses and only 10 workstations attached. It is set up for “per server”. As a temporary fix I added licenses but would like to get to the bottom of it.

Second and more important problem: I used the User and Computer Manager (or whatever it’s called) to set a default login script for the domain. The script is a batch file. The first thing it does is map network drives. That part works fine. After that it executes a command similar to this:

If %computername%==W1 GOTO 1
If %computername%==W2 GOTO 2
etc. through W10

then
:1
set WS=W1
:2
set WS=W2

:END

This is not verbatim, as I am doing it from memory. The point is, the batch file is not fully executing. If I browse to, and double-click on the batch file, it will map the network drives, but nothing else. If I copythe batch file to the local machine, then double-click on it, same thing. But If I copy the batch file to the local machine then run it from a command prompt, it does everything! Just as it should.

An additional problem: Early on, when I first set up these workstations, I had added system Environmental Variables using the advanced properties of My Computer. I have since then removed them. But every time I launch a command shell using Start|run|CMD then execute a Set command, the EV’s are back! I have checked the Autoexec.nt and Config.nt and there is nothing in them.

Any help is greatly appreciated.

Brian

This discussion is locked

All Comments