FN-GM Posted August 31, 2011 Posted August 31, 2011 Hi, I am using this printer script made by @Ric_ i am using them on thin clinets. It only works for people with admin rights. I am on server 2008 R2 Terminal servers. Does anyone have any thoughts please? Thanks
Domino Posted August 31, 2011 Posted August 31, 2011 (edited) are you a 2k8 or above domain? Group Policy Preferences might be a better option. URL Removed site is infected Edited August 31, 2011 by plexer
Ric_ Posted August 31, 2011 Posted August 31, 2011 (edited) are you a 2k8 or above domain? Group Policy Preferences might be a better option. URL Removed - Site infected Yeah... GPP doesn't really work for location-based printing on thin clients Domino. @FN-GM: Have you configured the 'point and print' settings via GPO and are the printer drivers installed on all your terminal servers? Edited August 31, 2011 by plexer
FN-GM Posted August 31, 2011 Author Posted August 31, 2011 Yeah... GPP doesn't really work for location-based printing on thin clients Domino. @FN-GM: Have you configured the 'point and print' settings via GPO and are the printer drivers installed on all your terminal servers? Point to print? Whats that I have the drivers on there yes. Thanks
SYNACK Posted August 31, 2011 Posted August 31, 2011 The day will come where I don't have to repost this every week: http://www.edugeek.net/forums/windows-7/22950-solution-map-printers-logon-scripts-windows-7-vista-without-uac-prompt.html It may be a few years off though Oh and if you have UAC switched off get with the times and turn it back on. It solves a lot more problems than it creates. 1
timbo343 Posted August 31, 2011 Posted August 31, 2011 (edited) just one thing.. i have had to set mine to disabled rather than enabled. If i enabled the point and print setting the script wouldnt run (not ric_'s script but my own, which is working like a charm now) Edit: http://www.frostbyte.com.au/Blog/tabid/64/EntryId/3/Point-and-Print-Restrictions-and-Windows-7-Printer-GPPs.aspx also http://technet.microsoft.com/en-us/library/cc753269.aspx (near to the bottom) To permit users to connect only to specific print servers that you trust In the Point and Print Restrictions dialog box, click Enabled. Select the Users can only point and print to these servers check box if it is not already selected. In the text box, type the fully qualified server names to which you want to allow users to connect. Separate each name with a semi-colon. In the When installing drivers for a new connection box, choose Do not show warning or elevation prompt. In the When updating drivers for an existing connection box, choose Show warning only. Click OK. Note To disable driver installation warning messages and elevation prompts on computers that are running Windows 7 and Windows Server 2008 R2, in the Point and Print Restrictions dialog box, click Disabled, and then click OK. This setting disables the enhanced printer driver installation security of Windows 7 and Windows Server 2008 R2. Edited August 31, 2011 by timbo343
FN-GM Posted August 31, 2011 Author Posted August 31, 2011 (edited) The day will come where I don't have to repost this every week: http://www.edugeek.net/forums/windows-7/22950-solution-map-printers-logon-scripts-windows-7-vista-without-uac-prompt.html It may be a few years off though Oh and if you have UAC switched off get with the times and turn it back on. It solves a lot more problems than it creates. Penny dropped, already got that one covered. I will have a look at the other stuff tomorrow. Thanks Edited August 31, 2011 by FN-GM
FN-GM Posted August 31, 2011 Author Posted August 31, 2011 interesting. If i set the script to run as a login script it doesnt do it. If i run it manually it works. I have put an echo in and its 100% running on login. Any thoughts please?
timbo343 Posted September 1, 2011 Posted September 1, 2011 What is happening mate? Have you run RSoP to a workstation to see if the script is applying. I have just had a blonde moment today. There were 2 different printer scripts running side by side so some people got printers where as others didnt. It was only until tonight when i got home the penny dropped.
FN-GM Posted September 1, 2011 Author Posted September 1, 2011 What is happening mate? Have you run RSoP to a workstation to see if the script is applying. I have just had a blonde moment today. There were 2 different printer scripts running side by side so some people got printers where as others didnt. It was only until tonight when i got home the penny dropped. I know 100% the script is running as a login script when i put an echo in it displays. But nothing happens. If the users runs the same script manually it runs perfect. Thanks
timbo343 Posted September 2, 2011 Posted September 2, 2011 I think were are having the same problem now... I have been offsite today and found out that the script doesnt work... although it did last night
Davit2005 Posted September 2, 2011 Posted September 2, 2011 Yeah... GPP doesn't really work for location-based printing on thin clients Domino. @FN-GM: Have you configured the 'point and print' settings via GPO and are the printer drivers installed on all your terminal servers? If you use 2008 R2 you can use GPP with Item targeting to IP address range if Thin clients have static IP's or if you have different ip ranges for different locations.
Cache Posted September 2, 2011 Posted September 2, 2011 I've just set mine up to use GPP and used this pretty much: http://www.edugeek.net/forums/thin-client-virtual-machines/64705-tip-use-group-policy-preferences-deploy-printers-terminal-server-clients.html All my thin clients are using Windows Thin PC and set up in the naming format TPC-Room-xx, so for example TPC-IT3-01 and the preference targets a Terminal Session with a client name of TPC-IT3-?? (could have used TPC-IT3-* but there are only ever going to be 2 numbers after the last bit in this room so just went for ?? instead) and it just sits in the same allocate printers policy I use for the rest of the site.
FN-GM Posted September 2, 2011 Author Posted September 2, 2011 I think were are having the same problem now... I have been offsite today and found out that the script doesnt work... although it did last night Let me know how you get on. If you stick it in startup i think it works.
burgemaster Posted September 30, 2012 Posted September 30, 2012 (edited) I put All of 56 printers in one Gpp, located right at the top with default domain policy. Spent hours getting all the right printers deploying to the right users dependant on location, ad group, computer name etc.... Worked, but it spent about 55sec on all win 7 machines saying "waiting for group policy printer policies" Have had to ditch it and go back to a mixture of smaller gpps and scripts. . . . Server is 2008 but domain level 2003r2 .. Could this maybe be a factor? Also only 2gb RAM on the print server (virtual) Edited September 30, 2012 by burgemaster
Duke5A Posted October 1, 2012 Posted October 1, 2012 I know 100% the script is running as a login script when i put an echo in it displays. But nothing happens. If the users runs the same script manually it runs perfect. Thanks Try adding some sleep statements to the script so it doesn't get too far ahead of itself. The value is in milliseconds. WScript.Sleep 100 I've seen it where if the machine is processing too many other tasks in the background on logon for some reason it'll simply skip over certain scripted events like drive mappings and printer installations. For printer deletion I've always used this: Set objWMIService = GetObject("winmgmts:\\.\root\cimv2") Set colInstalledPrinters = objWMIService.ExecQuery("Select * from Win32_Printer",,48) On Error Resume Next For Each objPrinter in colInstalledPrinters If InStr(LCase(objPrinter.Name), "SomeStringInThePrinterPath") Then objNetwork.RemovePrinterConnection objPrinter.Name Next If Error <> 0 Then 'Just catch the error, moving on Else 'Nothing to see here folks, move along. End If
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now