Jump to content

Behuck

Members
  • Posts

    14
  • Joined

  • Last visited

Everything posted by Behuck

  1. FireFly_Transport, Begging your pardon, but what is RANGER? :?:
  2. TEchSupp I'm looking at use a script to assign printers to PC location. Could you possibly share your script that you are using to do this for you? It would be appreciated.
  3. Chris & Gecko, The "T-server" is mentioned is my shortcut for Terminal Server. The script is a logon script, set for when each student logons to a client. Yes, I have all students in a AD OU - "Students" then listed in individual graduation OUs (2007, 2008, etc.) All my clients are named using uppercase (example)"RM400-1-PRN1". The "PRNx" goes only from PRN1 to PRN8, as I have a total of 8 networked printers available for staff/students. I will attempt to try both your suggestions when I get back to work on Tuesday (Spring Holiday now). THX so much for all your help - God Bless
  4. Chris & Gecko, Thx for your input so far - appeciated. I'm not very good with scripting, although I want to learn (and I'm doing so by reading all the posts in this thread-very helpful). I got this script from another "tech" friend at a tech conference and I'm trying to get it to work for me. Chris - I'll place the code line "Wscript.echo strShortName" in the script and run it when I get to school on Monday. Please, excuse my ignorance again, but what are you referring to about the "case" and where at exactly(do you mean from "RIGHT" to "right" or are you referring to "PRN1" to "prn1")? I understand it has to do with either upper or lower case, but I'm not sure where you are talking about exactly. The other problem I'm having with this script at this time is that when, logged on as a "test student" and connecting to my terminal server (MS Office is located/accessed), I'm in Word and attempt to print a test page, it states that no printers are installed - the script is not following the student's log onto the T-server; I've set the "remote connection" to connect to "printers", but the scripting doesn't seem to follow. Thx again for all your advise/assistance!
  5. Chirs Pardon my ignorance, but what do you mean by "what is it reading in"?
  6. Greetings! I, too, am attempting to use a .vbs script to assign specific printers to specific computers in specific rooms. I've been reading this, and other threads, on the subject matter, seeing some of the same scripting concept that I'm attempt to use. Here is my dilemma-I have named each of my clients with the following structure: RM400-1-PRN1 with the "PRN1" to be used to indicate, in the scripting, the specific printer. In my script, I use the " = right(xxxxx, 3)" but it does not seem to be reading the "PRNx" and mapping the specified printer. Below is the script that I'm trying to use: Example 1: Dim wshNetwork Dim strUsername Dim intCnt Dim CurrentUser Dim strCompName Dim strShortName Dim PrinterPath Set wshNetwork = CreateObject("WScript.Network") On Error Resume Next wshNetwork.RemoveNetworkDrive "h:" wshNetwork.RemoveNetworkDrive "P:" wshNetwork.MapNetworkDrive "h:", "\\xxxx\" & wshNetwork.UserName & "$" strCompName = wshNetwork.ComputerName strShortName = RIGHT(strCompName,4) Select Case strShortName Case "PRN1" PrinterPath = "\\xxxx\LAB1(KOELLER)" wshNetwork.AddWindowsPrinterConnection PrinterPath wshNetwork.SetDefaultPrinter "\\xxxx\LAB1(KOELLER)" Case "PRN3" Set objWSHNetwork = CreateObject("WScript.Network") 'create network object strConnectString = "\\xxxx\lab2 (open)" strResult = objWSHNetwork.AddWindowsPrinterConnection(strConnectString) wshNetwork.SetDefaultPrinter "\\xxxx\lab2 (open)" End Select WScript.Quit or Example 2: Dim wshNetwork Dim strUsername Dim intCnt Dim CurrentUser Dim strCompName Dim strShortName Dim PrinterPath Set wshNetwork = CreateObject("WScript.Network") On Error Resume Next wshNetwork.RemoveNetworkDrive "h:" wshNetwork.RemoveNetworkDrive "P:" wshNetwork.MapNetworkDrive "h:", "\\xxxx\" & wshNetwork.UserName & "$" strCompName = wshNetwork.ComputerName strShortName = RIGHT(strCompName,4) Select Case strShortName Case "PRN3" PrinterPath = "\\xxxx\MediaCtr3500" wshNetwork.AddWindowsPrinterConnection PrinterPath wshNetwork.SetDefaultPrinter "\\xxxx\MediaCtr3500" End Select WScript.Quit ("xxxx" is sever name) If anyone has any suggestions and/or knows what needs to be fixed to correct the problem, it would be greatly appreciated! Behuck _________________
  7. Behuck

    A Printer Script

    Greetings! I, too, am attempting to use a .vbs script to assign specific printers to specific computers in specific rooms. I've been reading this, and other threads, on the subject matter, seeing some of the same scripting concept that I'm attempt to use. Here is my dilemma-I have named each of my clients with the following structure: RM400-1-PRN1 with the "PRN1" to be used to indicate, in the scripting, the specific printer. In my script, I use the " = right(xxxxx, 3)" but it does not seem to be reading the "PRNx" and mapping the specified printer. Below is the script that I'm trying to use: Example 1: Dim wshNetwork Dim strUsername Dim intCnt Dim CurrentUser Dim strCompName Dim strShortName Dim PrinterPath Set wshNetwork = CreateObject("WScript.Network") On Error Resume Next wshNetwork.RemoveNetworkDrive "h:" wshNetwork.RemoveNetworkDrive "P:" wshNetwork.MapNetworkDrive "h:", "\\xxxx\" & wshNetwork.UserName & "$" strCompName = wshNetwork.ComputerName strShortName = RIGHT(strCompName,4) Select Case strShortName Case "PRN1" PrinterPath = "\\xxxx\LAB1(KOELLER)" wshNetwork.AddWindowsPrinterConnection PrinterPath wshNetwork.SetDefaultPrinter "\\xxxx\LAB1(KOELLER)" Case "PRN3" Set objWSHNetwork = CreateObject("WScript.Network") 'create network object strConnectString = "\\xxxx\lab2 (open)" strResult = objWSHNetwork.AddWindowsPrinterConnection(strConnectString) wshNetwork.SetDefaultPrinter "\\xxxx\lab2 (open)" End Select WScript.Quit or Example 2: Dim wshNetwork Dim strUsername Dim intCnt Dim CurrentUser Dim strCompName Dim strShortName Dim PrinterPath Set wshNetwork = CreateObject("WScript.Network") On Error Resume Next wshNetwork.RemoveNetworkDrive "h:" wshNetwork.RemoveNetworkDrive "P:" wshNetwork.MapNetworkDrive "h:", "\\xxxx\" & wshNetwork.UserName & "$" strCompName = wshNetwork.ComputerName strShortName = RIGHT(strCompName,4) Select Case strShortName Case "PRN3" PrinterPath = "\\xxxx\MediaCtr3500" wshNetwork.AddWindowsPrinterConnection PrinterPath wshNetwork.SetDefaultPrinter "\\xxxx\MediaCtr3500" End Select WScript.Quit ("xxxx" is sever name) If anyone has any suggestions and/or knows what needs to be fixed to correct the problem, it would be greatly appreciated! Behuck
  8. THX to everyone who responded - very much appreciated! I have tried adding the /d:nn switch to delprof, unfortunately on some XP boxes, it still does not remove the local profiles. So, I'm still searching for a reason as to why this happens when delprof is suppose to remove all the local profiles. As to purchasing the Remote Profile Cleaner software - I'm not a cheap individual, but I work for a school district that is struggling for funding of any kind for technology, so I look for whatever I can that would be free. I'm sure that the RPC software is well worth the money. I haven't tried any logon script yet with delprof as I'm not very good at writing scripts, so any asistance on any of the above would be again appreicated. Behuck
  9. I have installed both the Hive Cleanup and Delprof on my client systems (running W2K and/or XP Pro) with Delprof set up to run when someone logs on to the system (running through scheduled tasks). For most of the systems, it seems to be working well, but on some systems (especially XP pro clients), it isn't removing all the profiles of other students. Any suggestions as to why and what I need to do to get deprof to work properly? I also need to know what the add-ons (/i; /r; /d; etc.) mean (I know what /q means - runs quietly. Footnote: I have looked at the Remote Profile Cleaner, unfortunately, you apparently have to pay for a license to use it beyond 2 months, even though it is listed/promoted as free. I would really like to use it.... Behuck
  10. Thx for your response. I'm not very good yet at scripting (logon script used was given to me), so what would I write as my script or what would I need to add/change in the logon script as to the printer. Also, a user does not "log off" the T-svr, but connects/disconnects from it via a remote connection icon and I'm somewhat unsure if the logon/logoff scripting that takes place when a user logs onto a client machine applies when they connect to the T-svr. Guide me....
  11. Problem: As users connect to my W2k3 to use Office or other application and they print (T-Svr has no printers installed - users access printer through scripted during logon). Once the user disconnects from T-Svr, the "printer session" remains in the "printers and Faxes" folder and after a period of time, quite a few "printer sessions" accumulate (session numbers sometimes are in the thousands although I know there are not that many during a typical day). Is there a way to automatically remove these sessions when the user disconnects from the T-svr? (I already have "delprof" running at end of each day). Any suggestions would be appreciated. :?
  12. I have placeed a bat file to run Delprof in NETLOGON and using GPO logoff script. I believe that it is deleting my test profile, but the logoff script runs before the "network connections" screen and then "saving your settings" screen appears, which I believe, is placing the profile right back in the "Documents and Settings" folder. How do I set the logoff script to run at the very end or how do I switch off the "save your settings" process?
  13. I, too, want (need) a logoff script that will selective delete LOCAL profiles - selective as I want to delete the students' local profile, but not my admin1, administrator, or the teacher's profile. I have read the various postings in this forum and understand, to a point, about UPHClean and Delprof, but I do not understand scripting and script writing enough to know what my logoff script would look like. Also, does UPHClean and Delprof need to be installed on the client? I have also set in the GPO to "enable" the "delete cashed copies of Roaming Profiles" but it does not have any effect in XP Pro. Any assistance would be greatly appreciated! [topic merged - please do not start needless topics when they exist thanks - tarquel]
  14. I, too, want (need) a logoff script that will selective delete LOCAL profiles - selective as I want to delete the students' local profile, but not my admin1, administrator, or the teacher's profile. I have read the various postings in this forum and understand, to a point, about UPHClean and Delprof, but I do not understand scripting and script writing enough to know what my logoff script would look like. Also, does UPHClean and Delprof need to be installed on the client? I have also set in the GPO to "enable" the "delete cashed copies of Roaming Profiles" but it does not have any effect in XP Pro. Any assistance would be greatly appreciated!
×
×
  • Create New...