• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 282
  • Last Modified:

GPO Scripting: Map Drive Based On Client IP

Well, I current have a gpo that calls a vbs script at logon that maps printers based on the client ip addres, it basically looks for the third octet in the IP address of the connecting users then maps the appropriate printer.

I am looking for the same thing, but rather connect to a printer maps a single drive based on the connecing users IP address.
1 Solution
You basically have to change one line of the existing script. If you post your script we can add that in for you and you can just copy it back. If I put it together you will have to change the variables, etc to make it work.

You need to change the AddWindowsPrinterConnection line to something like
objNetwork.MapNetworkDrive "H:", "\\servername\sharename"

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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