SV650.org - SV650 & Gladius 650 Forum



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

Reply
 
Thread Tools
Old 20-12-04, 04:47 PM   #1
Anonymous
Guest
 
Posts: n/a
Default 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.
  Reply With Quote
Old 20-12-04, 04:52 PM   #2
snoopy
Guest
 
Posts: n/a
Default

transition ...l,lllllllllllll inu...........x
  Reply With Quote
Old 20-12-04, 04:53 PM   #3
Sid Squid
No, I don't lend tools.
Mega Poster
 
Sid Squid's Avatar
 
Join Date: Jul 2003
Location: Skunk Works, Nth London
Posts: 8,680
Default

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"
Sid Squid is offline   Reply With Quote
Old 20-12-04, 05:02 PM   #4
Bud
Guest
 
Posts: n/a
Default

http://www.fun4gamers.nl/showtime/fun/whatyoupost.jpg

sorry -don't ban me.
  Reply With Quote
Old 20-12-04, 07:10 PM   #5
mysteryjimbo
Guest
 
Posts: n/a
Default Re: Active Directory - Printer management using GPO's?

Quote:
Originally Posted by RedVenom
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.
You're right you cant do it using GPO's and AD. Something that is missed out somehow.

You can include user logon scripts in VBscript though.

This one works.
  • ' Set printers
    ' ******************************
    On Error Resume Next
    Dim net
    Set net = CreateObject("WScript.Network")
    net.AddWindowsPrinterConnection "\\ServerUNC\Printer name"
    net.SetDefaultPrinter "\\ServerUNC\Printer name"

It really is that simple.
  Reply With Quote
Old 20-12-04, 07:14 PM   #6
mysteryjimbo
Guest
 
Posts: n/a
Default

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.
  Reply With Quote
Old 20-12-04, 07:32 PM   #7
Anonymous
Guest
 
Posts: n/a
Default

I don't know VBscript, my programming stops with batch files. I also only need it to run when a user first logs on to a machine.

I've also been pointed at KiXtart, which looks nice.
  Reply With Quote
Old 20-12-04, 07:57 PM   #8
mysteryjimbo
Guest
 
Posts: n/a
Default

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.
  Reply With Quote
Old 20-12-04, 10:31 PM   #9
TSM
The Sick Man
Mega Poster
 
TSM's Avatar
 
Join Date: Nov 2004
Location: Peckham.SE.LDN
Posts: 4,768
Default

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.
TSM is offline   Reply With Quote
Old 20-12-04, 10:39 PM   #10
mysteryjimbo
Guest
 
Posts: n/a
Default

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.
  Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 02:41 PM.


Powered by vBulletin® - Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.