Jump to content

Recommended Posts

Posted

Hi

 

Is there a way in a logon bat script to un-map mapped drives that have are to be mapped in the script later on ?

 

Bit like Con2prt deleting all printers and then adding them.?

Posted
Yes the script that webman gave you would go at the top this would delete any network drives already mapped, then you would put the drives to map at the bottom of the script
Posted
Yes the script that webman gave you would go at the top this would delete any network drives already mapped, then you would put the drives to map at the bottom of the script

 

Did that

 

 

net use * /delete /yes

 

time server

 

net use W: \\SERVERNAME\FOLDER

net use X: \\SERVERNAME\FOLDER1

 

I run this scrpit and when the user logs on there is no Drives except c and d... heh heh

 

 

 

 

 

 

 

 

net use f: /delete /y

  • 1 month later...
Posted
Did that

 

 

net use * /delete /yes

 

time server

 

net use W: \\SERVERNAME\FOLDER

net use X: \\SERVERNAME\FOLDER1

 

I run this scrpit and when the user logs on there is no Drives except c and d... heh heh

 

 

 

 

 

 

 

 

net use f: /delete /y

 

Well it sorta worked... used this command and it removed the mappings...

 

BUT the mappings that shold have been thare and were is the script were not there ... my computer was empty! any ideas ?

 

(Yes I did leave the mappings in unsed the delete line)

Posted
"time server" is not a command. Should that be this?

 

net time \\server /set /yes

 

Ja Ja... I know... it was just here to show the lines :-)

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