Jump to content

shusta

Members
  • Posts

    2
  • Joined

  • Last visited

Reputation

0 Neutral

About shusta

Personal Information

  • Location
    New York
  1. shusta

    VBS remapping

    Hello! Thanks for the suggestion. We have locked down our user PC's and they are not allowed to run anything in the CMD window. I know for a fact that users can run VBS scripts. This is why I was asking for help converting this to VBS. We are upgrading hardware in all locations and this means someone will need to manually touch each PC to make the changes (as simple as they are). This is the script I had for the project till I was told users no longer has this ability/access: @echo OFFNET USE O: /delete NOTE: This is the old server shareNET USE O: \\server 1\folder /Persistent:yes NOTE: this is the new server with the same share namecopy /y "\\server 1\folder\new.lnk" "%Public%\Desktop\new.lnk" NOTE: This is a new shortcut they will all need Users can float from location to location as well. This is the easiest way to manage this application and user. Technically they should only need to run this one for the new server share and shortcut but there are times when they call and we find the connection was dropped. This is to prevent extra phone calls.
  2. shusta

    VBS remapping

    Hello, I need a script that a user can run from the desktop that will remove or disconnect them from a network drive and then use the same letter and map to a different/new location. From searching the Internet I was able to create these two commands: Set objNetwork = CreateObject("WScript.Network")objNetwork.RemoveNetworkDrive "O:" , True Set objNetwork = CreateObject("WScript.Network")objNetwork.MapNetworkDrive "O:" , "\\servername\foldername" Each command works on it's own. My problem is not know what syntax needs to be added to make this one fluid script. Thanks, Scott
×
×
  • Create New...