So if you open a command window, go to the drive and folder where kix32.exe is located and run kix32 pathtothescript\scriptname.kix nothing happens? The script is not executed?

I made a few changes to the script I posted earlier. I added some error checking and debugging messages. Please give this one a g and lets us know what you see on the screen. Do not run this from a batch file but run it directly from the command window.

 Code:
?"checking if the user is part of the oracle group."
If InGroup("oracle")
	?"The user is part of the oracle group."
	?"Start mapping the O drive."
	Use o: /delete /persistent
	Use o: "\\porcl\oracle"
Else
	?"The user is not a memeber of the oracle group."
EndIf

?"checking if the user is part of the hs622_printers group."
If InGroup("hs622_printers")
	?"The user is a member of the hs622_printers group."
	?"Start adding printers."
	$rc = AddPrinterConnection("\\srvprn01\hs622hp4")
	If $rc <> "0"
		?"There was an error adding the hs622hp4 printer."
		?"Error: " $rc
	Else
		?"Printer hs622hp4 succesfully added."
	EndIf
	$rc = AddPrinterConnection("\\srvprn01\hs622lj4000")
	If $rc <> "0"
		?"There was an error adding the hs622lj4000 printer."
		?"Error: " $rc
	Else
		?"Printer hs622lj4000 succesfully added."
	EndIf
	$rc = SetDefaultPrinter("\\srvprn01\hs622lj4000")
	If $rc <> "0"
		?"There was an error setting the hs622lj4000 printer as default printer."
		?"Error: " $rc
	Else
		?"Printer hs622lj4000 succesfully set as default."
	EndIf
Else
	?"The user is not a member of the hs622_printers group."
EndIf

Sleep 10


To run the script without any batch files you do set the logon script in a group policy. But maybe we should solve the problem your are having first before trying new stuff.

In the script name field type the following:
\\YOURDOMAiNNAME\SYSVOL\YOURDOMAINNAME\Scripts\wkix32.exe

In the script parameter field type the following:
\\YOURDOMAINNAME\SYSVOL\YOURDOMIANNAME\Scripts\yourscrupt.kix
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.