Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 191
  • Last Modified:

CAN ONE MAP DRIVES FOR "All Users"??

We are currently deploying a lot of new XP work stations and shuffling a lot of 2000 machines around.

Is it necessary to redo driving mappings each and every log-on for each person who uses the machine?  Or is there a way to create drive mappings which will automatically be available to "All Users" in a similar fashion to which one can make desktop icons available to "All Users" by placing them on the desktop folder under "All Users".  
0
DreamingEagle
Asked:
DreamingEagle
1 Solution
 
rhinocerosCommented:
You can run the logon script as following

'Prevent any error come out
On error resume next

'Remove X drive mapping as before each time & Map X drive again
Set wn = Wscript.CreateObject("WScript.Network")
wn.RemoveNetworkDrive "x:",True
wn.MapNetworkDrive "x:","\\servername\doc",True

'Create Shortcut on Desktop
Set WshShell = WScript.CreateObject("WScript.Shell")
dsktop = WshShell.SpecialFolders("Desktop")
Set scut = WshShell.CreateShortcut (dsktop & "\doc.lnk")
scut.TargetPath = "x:\Doc"
scut.Save

I hope it can help
0
 
cempashaCommented:
This question is still open and getting old. If any of the comment(s) above helped you please accept it as an answer or split the points who ever helped you in this question. Your attention in finalising this question is very much appreciated. Thanks in advance,

****** PLEASE DO NOT ACCEPT THIS AS AN ANSWER ********

- If you would like to close this question and have your points refunded, please post a question in community support area on http://www.experts-exchange.com/Community_Support/ giving the address of this question. Thank you      

Pasha

Cleanup Volunteer


0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now