login script to remove mapped drives
- From: "Bunert" <rizenbone@xxxxxxxxx>
- Date: Wed, 25 Oct 2006 13:57:54 -0500
I have a login script that maps some drives and copies some files. It works
great.
I have some users that have mapped some drives to locations on the network
that no longer exist. I want to delete the mappings as the login script
remaps them properly. The delete does not work from within the login script
but it works if manually typed on the client at the cmd prompt.
I am using:
NET USE X: /DELETE /YES to delete the persistent mapping. (I also tried
without the /YES)
If in my login script, the X: drive does not delete - although in the same
login script I map a U: drive which maps ok so I know the script is being
called and functional.
If I go to the client and do type the the /delete at the cmd prompt - the X:
drive gets deleted properly.
If I put the login script on the client desktop and run it there, the X
drive does not delete. I do not get a "command completed successfully" -
however I do not get an error either.
Any thoughts?
thanks
.
- Follow-Ups:
- Re: login script to remove mapped drives
- From: KTosser
- Re: login script to remove mapped drives
- From: Mark Heitbrink [MVP]
- Re: login script to remove mapped drives
- Prev by Date: Re: gPO won't take effect
- Next by Date: How to communicate with a named pipe on another PC without security preventing access?
- Previous by thread: Re: GPO's partially work
- Next by thread: Re: login script to remove mapped drives
- Index(es):
Relevant Pages
|
Loading