Idle Banter For non SV and non bike related chat (and the odd bit of humour - but if any post isn't suitable it'll get deleted real quick). There's also a "U" rating so please respect this. Newbies can also say "hello" here too. |
View Poll Results: So, AD then eh. | |||
No | 2 | 33.33% | |
Yep | 4 | 66.67% | |
Voters: 6. You may not vote on this poll |
|
Thread Tools |
20-12-04, 04:47 PM | #1 |
Guest
Posts: n/a
|
Active Directory - Printer management using GPO's?
Scenario:
We currently use roaming profiles for almost all our users here at work (5000+ node international company). With the introduction of AD and DFS, we're looking at the possibility of changing everyone to local profiles. Now, there's quite a few hurdles to overcome in this - however the one that's of most interest to me is regarding printers. Problem (solutions?) : I'm looking for a way to automate the addition of a selection of printers to users when they first log on to a new machine. I initially looked at using GPO's to do this by using the HKEY_CURRENT_USER registry entry, but have fast come to the conclusion that this isn't going to work due to missing print driver issues. So next I stumbled upon using the login .bat to add printers as follows: Code:
echo Checking for installed printers IF EXIST "%userprofile%\printers.txt" GOTO end RUNDLL32 PRINTUI.DLL,PrintUIEntry /in /n "\\%PRINT_SRV%\printer1" RUNDLL32 PRINTUI.DLL,PrintUIEntry /in /n "\\%PRINT_SRV%\printer2" copy p:\printers.txt "%userprofile%\printers.txt There by only installing the printers when the user first logs on, and also overcoming the problems with drivers. Basically I'm just looking to see if anyone else has undergone the same sort of transition, how they achieved it, if group policy has been used in this way before, if there are any other ideas.. etc. I did have a check of all the usual resources before posting this, but I can't find anywhere that suggest that printer installation can be automated with GPO's. Bit of a shame really. |
20-12-04, 04:52 PM | #2 |
Guest
Posts: n/a
|
transition ...l,lllllllllllll inu...........x
|
20-12-04, 04:53 PM | #3 |
No, I don't lend tools.
Mega Poster
Join Date: Jul 2003
Location: Skunk Works, Nth London
Posts: 8,680
|
Err...yeah, no...umm, yea...maybe, ermm I dunno.
What's that there Active Directory then?
__________________
If an SV650 has a flat tyre in the forest and no-one is there to blow it up, how long will it be 'til someone posts that the reg/rec is duff and the world will end unless a CBR unit is fitted? A little bit of knowledge = a dangerous thing. "a deathless anthem of nuclear-strength romantic angst" |
20-12-04, 05:02 PM | #4 |
Guest
Posts: n/a
|
|
20-12-04, 07:10 PM | #5 | |
Guest
Posts: n/a
|
Re: Active Directory - Printer management using GPO's?
Quote:
You can include user logon scripts in VBscript though. This one works.
It really is that simple. |
|
20-12-04, 07:14 PM | #6 |
Guest
Posts: n/a
|
Oh and its
net.RemoveWindowsPrinterConnection to get rid of one. You could simple list all the printers and remove, or if theres too many, i'm sure you could stick it in a loop with an array or something. |
20-12-04, 07:57 PM | #8 |
Guest
Posts: n/a
|
That script is complete, theres nothing extra needed. Just change the UNC path to point to the print server and printer name.
Download the Group Policy Management Console from Microsoft too. That'll help. Create a printer policy for each Organisational Unit grouping for printers. e.g rooms or departments with printers in. Stick the script in -User Configuration-Windows Settings-scripts-logon as a filename.vbs. Then apply the GPO to the OU. The printers will be applied to anyone within the OU, first logon or thousandth. |
20-12-04, 10:31 PM | #9 |
The Sick Man
Mega Poster
Join Date: Nov 2004
Location: Peckham.SE.LDN
Posts: 4,768
|
Why not try www.kixtart.org
Cool third party free language to code the start scripts in. You know ScriptLogic, it uses this as the underlying program. You can do tons with it. I used to code it so it would install printers based on if a user had access to a certian group. |
20-12-04, 10:39 PM | #10 |
Guest
Posts: n/a
|
The problem with Kixtart is you need to install it on each workstation.
VBscript and WSHscript is native, therefore, no extras are needed. Plus that which i've already posted works. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Why Don't They Teach Active Counter Steering? | I'm_a_Newbie | Bikes - Talk & Issues | 89 | 04-03-09 07:48 AM |
23 currently active users.... | Gordon B | Idle Banter | 22 | 17-07-08 01:42 PM |
GM too active? | eviltwin | Guildford Massive | 30 | 21-02-08 08:58 AM |
Free directory enquiries | Stu | Idle Banter | 0 | 20-02-08 07:48 PM |