Jump to content
Sign in to follow this  
PDowning

Getting a local servername

Recommended Posts

PDowning

Me again ....  I've been over the enviroment variables and can only find the @logonserver option.  What I am looking for is a variable that gives me the name of the LOCAL server, not the server that the user is logged into. Is this possible, or will I need to populate an array based off ip octets to correspond to the local server names?

Edit:  Oh yeh, this is an AD network.

Edited by PDowning

Share this post


Link to post
Share on other sites
UEZ

After I read your post several times I still don't know what you mean with "LOCAL server"!

Do you want to get the logon server name?

Br,

UEZ


Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites
PDowning

Sorry for the confusion. We have an Active Directory network setup, where users login to the Domain Controller that is at out central office. Login also connects them to the local file server at their location. I want to pull that local server name, but can't find a @variable that will do that. Is there something in the AD UDF that I overlooked that could do that?

Share this post


Link to post
Share on other sites
UEZ

I assume there is a login script which connects some network drives and you want that server names?

Br,

UEZ


Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites
PDowning

I assume there is a login script which connects some network drives and you want that server names?

Br,

UEZ

Basically yes. I can do this with a 2D array by ip address, and server name, but was trying to avoid having to fill out an array with 75 sites.

Share this post


Link to post
Share on other sites
lewisg

Are drive letter(s) given (assigned) to the "local server" you're looking for? If so, the DOS command "NET USE" will display the server name(s). Parsing them out is up to you.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×