Important Notice: On February 29th, this community will be put into read-only mode. All existing posts will remain but customers will be unable to add new posts or comment on existing. Please feel to join our Community Discord for any questions and discussions.

VBS or BAT Script to remove network drives thru PDQ Deploy

Hello All- I was trying to push out a script to remove the network drives thru PDQ Deploy. What is the best way to go about this?

I've try my vbs file and PDQ Deploy returned success code but drives are still mapped.

Thanks




REMOVE NETWORK DRIVES.vbs
0

Comments

3 comments
Date Votes
  • Hi Glenn,

    Remember that drive mappings are per user. This means if you want to delete a drive mapping for the currently logged on user you need to set the "Run as Logged On User" option in the step that calls the vbs script. If you don't do this then the drive mappings will be removed for the deployment user.

    1
  • If you are in a domain, you can do it in the logonscript as this is executed at logon.

    0
  • Thanks Shane and SelfMan -  took a another look and use the suggestion of running thru a logonscript and worked like a charm

    0

Please sign in to leave a comment.

Didn't find what you were looking for?

New post