I assume that the script does run as it should? Windows Vista, 7 and 2008 show the welcome screen until everything is done and the users desktop is loaded. You will not see the script running like this.

There is an easy "fix" for this.
See: http://support.microsoft.com/kb/940452/en-us
 Code:
;Show the logon progress instead of the Welcome to windows screen.
$rc = WriteValue("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System", "DelayedDesktopSwitchTimeout", "0", "REG_DWORD")
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.