Computing.Net > Forums > Disk Operating System > Batch files

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Batch files

Reply to Message Icon

Name: Steve
Date: March 1, 2002 at 04:15:04 Pacific
Comment:

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.



Sponsored Link
Ads by Google

Response Number 1
Name: Michael
Date: March 1, 2002 at 06:02:30 Pacific
Reply:

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


0

Response Number 2
Name: Steve
Date: March 1, 2002 at 06:17:09 Pacific
Reply:

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...


0

Response Number 3
Name: Michael
Date: March 1, 2002 at 09:34:57 Pacific
Reply:

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


0

Response Number 4
Name: Steve
Date: March 2, 2002 at 08:59:42 Pacific
Reply:

Thanks Michael...


0

Response Number 5
Name: ed
Date: June 28, 2002 at 05:40:44 Pacific
Reply:

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


0

Related Posts

See More



Response Number 6
Name: Corbett Enders
Date: July 17, 2002 at 10:40:11 Pacific
Reply:

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


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

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


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Batch files

Help!! Batch File www.computing.net/answers/dos/help-batch-file/13525.html

Batch files - - Mapping network drive www.computing.net/answers/dos/batch-files-mapping-network-drive/3809.html

Pause batch file www.computing.net/answers/dos/pause-batch-file/2810.html