Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I am replicating batch files (logon scripts) from PDC to BDC.I want to identify which server is performing the validation.Here is what i have so far...
echo The validating server is %COMPUTERNAME%
I think the %COMPUTERNAME% variable is wrong.Can anyone help please?
Thanks all.

As far as I know that is correct.. Type set at a dos prompt to see all the 'built in' environmental variables and see if that isn't listed as one.
HTH,
-Michael

Well the variable works if i type it locally on a server but i want the name to appear in the dos box when a 98 client executes a logon script so that i know which server is validating the clients logon request.Surely it should not make any difference over a Lan or should it?
Thx
Steve...

From a 98 client it does matter...
%computername% is a local environment variable only supported by NT machines (NT4 workstation/server / Windows 2000).
When you are running a login script, all variables are local to that machine. In other words, you can't grab the %computername% from the server.... 9X machines don't support the built in %computername% variable anyway, and even if it did, it would give you the local machine's computer name and not the servers....
I am not sure how you would get the computer name of the authenticating server.. You might want to ask this question over on the NT forum.
Sorry,
-Michael

there's a scripting language on the 2k resource kit called kixtart that supports the functionality you need.

OR go here for some pretty cool batch files. He's got a couple that might relate to the computername issue on Win9x.
http://www.fpschultze.de/bsc.htm

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |