I'm using the above function in kix to set up defaultprinter for a machine but it is not working. a. The kix script is correct and the printer name is valid b. It gives an error value of 0 It doesn't set the printer right but if I run the same script again once I've logged in then it works. Is there a setting in policy which is restricting this? Steve This email and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient or the person responsible for delivering the email to the intended recipient, please immediately notify the Muir Group IT Help Desk on +44 (0) 1244 606139 http://www.sunbelt-software.com/ntsysadmin_list_charter.htm