Page 1 of 1 1
Topic Options
#186387 - 2008-03-19 06:30 PM AD group specific file copying assistance
DieselDoc Offline
Fresh Scripter

Registered: 2008-03-19
Posts: 13
Hey all, I'm a new sysadmin for a company where I guess someone was a big KiXtart fan in the past. I was going to rewrite the default logon script in vbscript but I'm actually intrigued by KiX and am actively bringing myself up to speed.

I attempted to add some code to the existing script which runs Kix2001, trying to copy a remote desktop connection icon from a network share to the desktops of users in only one particular AD group (not OU). Nothing happens though haha. Here's what I did:

 Code:
; **Adding icon to group below's Desktop**
IF INGROUP ("APP-Allscripts")
IF EXIST (%UserProfile% + "\Desktop\Allscripts.rdp") =0
COPY "\\Sec01\deploy$\Shortcuts\Allscripts.rdp" %UserProfile% + "\Desktop"
ENDIF 


The first set of code in the section is the following:
 Code:
;******************************************************************
;***	BEGIN Instructions by Group 
;******************************************************************
:SOFTWARE
;IF INGROUP("APP-COUMACARE")
;	USE G: "\\DC02\COUMACARE"
;	COLOR w+/n
;	AT (4,6) "CoumaCare Mapped" 
;ENDIF
IF INGROUP("APP-QUICKTIME")
	USE Q: "\\APP01\QUICKTIME"
	COLOR w+/n
	AT (4,6) "QUICKBOOKS Mapped"
ENDIF 


The script is continuing to run normally I think otherwise. I think I may have gotten a message about 'ERROR : LABEL [APP-Allscripts] not found!' but not any more.

Any thoughts appreciated. Thanks!

Top
#186389 - 2008-03-19 06:37 PM Re: AD group specific file copying assistance [Re: DieselDoc]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4672
Loc: The Netherlands
Please do not cross post.
See: http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=186377
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
Page 1 of 1 1


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

Who's Online
0 registered and 248 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.049 seconds in which 0.022 seconds were spent on a total of 13 queries. Zlib compression enabled.

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