There are several issues in play here - you are using individual admin shares for each user. This is very "old schoool" and not really a good practice anymore. That aside, you must map the drive with a UNC path that includes a "$" - this is a reserved identifier in Kix. Thus, your command
 Code:
Use H: "\\servername\%username%$"
is actually being interpreted as
"connect the H: drive to the share called %USERNAME% (plus the contents of the $ variable, which is likely empty)". The point is - the command doesn't do what you think and the connection likely fails.

One way to make this work is to use a double "$", but that isn't good practice. A better way is to include a
 Code:
$Rc = SetOption('NoVarsInStrings', 'On')
option in your script. This tells Kix not to process any "$" inside of strings.

Further, if your script window isn't being displayed, it's likely due to default policy settings. We generally recommend that login scripts be "run visible" via GPO settings. The default is to run minimized.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D