Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Rust2
  • Order by date
  1. Rust2

    How to block adding of a network drive on a TS server

    One other thing that I can't seem to find good direction on is a user selected environment varible. In the first part of the script a "PP_PRINT" user variable is set for each user. In my environment this is determined by your location, I have a handfull of users who could be working in a...
  2. Rust2

    How to block adding of a network drive on a TS server

    Thanks a bunch guys! That seems to have done the trick. In case anybody happens accross this and finds it usefull, its important that the printer name and share name are the same. Current working code: Set oShell = WScript.createObject("WScript.Shell") Set oEnv = oShell.Environment("USER")...
  3. Rust2

    How to block adding of a network drive on a TS server

    I can follow the logic of your code, and I added your typo change but the script errors on Line 6, Char 1: Error Object required 'objNetwork' Code 800A01A8 Could it be the version of Server? I'm running Server 2003 R2. Set oShell = WScript.createObject("WScript.Shell") Set oEnv =...
  4. Rust2

    How to block adding of a network drive on a TS server

    That fixed the drive mapping issue, but I guess I should have realized that the printer add would create the same problem since it exists on the server as well. I have commented the printer code out: Set oShell = WScript.createObject("WScript.Shell") Set oEnv = oShell.Environment("USER")...
  5. Rust2

    How to block adding of a network drive on a TS server

    I have a script that performs 3 things for a user on their workstation: 1) maps a printer 2) sets an environment variable 3) maps a drive letter "P:" This "P:" drive is mapped from a TS server that the user also has the ability to log into when they are away remotely. On the TS server there is...

Part and Inventory Search

Back
Top