Page 1 of 1 1
Topic Options
#114561 - 2004-02-22 06:36 AM Add network printer base on PC group memebership
captjwh Offline
Fresh Scripter

Registered: 2003-09-16
Posts: 8
Hello All. running a 2000 domain and I've created a couple security groups called UnitPrinter and RecordsPrinter. All the PC's in the Unit area of the building are in the UnitPrinter group and so on with the Records area of the building.

If logged in to a computer in the Records area, I would like the script to check the membership of the computer i'm logging in to (like InGroup only with the computer name rather than the Username) and then add the printer for the area of that building.


So.. maybe i could have just said... I need a command or a function that will find 'objects' such as printers in a Domain group ... where 'objects' is not equal to users (cause InGroup does that already).

thanks all.


jason

Top
#114562 - 2004-02-22 08:12 AM Re: Add network printer base on PC group memebership
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
look in the UDF forum for ComputerInGroup()
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#114563 - 2004-02-22 04:34 PM Re: Add network printer base on PC group memebership
captjwh Offline
Fresh Scripter

Registered: 2003-09-16
Posts: 8
I will! thanks for the reply.. I'm new to all this stuff, this is a kick butt product!

Appreciated.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 584 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.056 seconds in which 0.027 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org