Windows Thread, Unmapping Mapped Drives in Technical; Hi
Is there a way in a logon bat script to un-map mapped drives that have are to be mapped ...
-
17th December 2007, 05:02 PM #1 Unmapping Mapped Drives
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.?
-
-
IDG Tech News
-
17th December 2007, 05:03 PM #2 Re: Unmapping Mapped Drives
Code:
net use * /delete /yes
-
-
17th December 2007, 07:01 PM #3 Re: Unmapping Mapped Drives

Originally Posted by
webman Code:
net use * /delete /yes
So this would go at the start of the script ... and then the mappings further down ?
-
-
17th December 2007, 07:04 PM #4
- Rep Power
- 14
Re: Unmapping Mapped Drives
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
-
-
18th December 2007, 10:16 AM #5 Re: Unmapping Mapped Drives

Originally Posted by
Jackd 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
-
-
18th December 2007, 11:03 AM #6
- Rep Power
- 0
Re: Unmapping Mapped Drives
Do they have permissions with the shares? Have you tried running the batch script once they are logged on?
-
-
28th January 2008, 12:54 AM #7 
Originally Posted by
Grommit
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)
-
-
28th January 2008, 12:57 AM #8 "time server" is not a command. Should that be this?
net time \\server /set /yes
-
-
28th January 2008, 12:04 PM #9
- Rep Power
- 12
Permissoins? Although I assume that if this was altering an existing script that all the drives where showing before?
-
-
28th January 2008, 12:22 PM #10 @webman & Grommit
Yup,
net time \\servername /set /y
-
-
28th January 2008, 12:39 PM #11 Time command will halt the script as all it will ask for the new time.
-
-
28th January 2008, 01:22 PM #12 
Originally Posted by
webman
"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 :-)
-
-
28th January 2008, 04:15 PM #13 
Originally Posted by
Grommit
Ja Ja... I know... it was just here to show the lines :-)
So have you fixed the problem then?
-
SHARE:
Similar Threads
-
By timbo343 in forum Windows
Replies: 11
Last Post: 2nd April 2012, 09:06 AM
-
By proby1 in forum Windows Vista
Replies: 2
Last Post: 15th November 2007, 11:39 AM
-
By marco84 in forum Educational Software
Replies: 11
Last Post: 8th June 2007, 11:21 AM
-
Replies: 5
Last Post: 26th January 2007, 12:22 AM
-
By timbo343 in forum Windows
Replies: 4
Last Post: 7th December 2005, 09:09 PM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules