Jump to content

batch file , get users domain , run script or cls


Recommended Posts

Posted

Hi All,

 

I need a script that can a users domain ,

 

I have found the echo %userdomain%

 

but do not know how to use it properly,

 

I need to only map drives if the user domain is a certain variable

Posted
Really lazy way but :p

 

IF "%USERDOMAIN%"=="mydomain" Echo "Yay"

 

Just need to put the other command instead of the echo :p

 

Steve

 

Thanks Mate, massive help

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



×
×
  • Create New...