Page 1 of 1 1
Topic Options
#121999 - 2004-06-30 10:37 AM Check workstation
blank Offline
Lurker

Registered: 2004-06-30
Posts: 1
Hello all,

I m starting to build a new script for my network and want to use it to map network driver and printers.

for ex i use thisto map printers:

Code:
 If InGroup("HPLaserJ4050")
If AddPrinterConnection ("\\rt2k03\HPLaserJ4050")=0
?" --> HPLaserJ4050 [OK]"
Else
?" --> HPLaserJ4050 [FAILED]"
$espion=1
EndIf
EndIf



My problem is the ingroup function check if user account is in the group but in group i put workstation not user. I would like to know how to know if workstation is in a group.

I try this:
Code:
 If @wksta InGroup("HPLaserJ4050")=1 


But don't seem to work

thanx

Top
#122000 - 2004-06-30 02:05 PM Re: Check workstation
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
The handy dandy search tool yielded:

Computer Account Membership
How to check if a Computer belong to AD Group
_________________________
Home page: http://www.kixhelp.com/hb/

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
1 registered (Henriques) and 2516 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.106 seconds in which 0.079 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