I now have a script as follows:

$fullname=split(@FULLNAME,' ')
$FirstDotLast=$fullname[0]+'.'+$fullname[ubound($fullname)]
MessageBox("First Last " + $FirstDotLast + ".", "Company name" - Logon Message",32,10)
use g: \\server01\hidden$$ /user:domain\+$FirstDotLast

The $firstdotlast is because we are connecting to another domain with a different naming structure. It all works, and displays the correct first.last name, but the mapping does nothing. Give it is hidden I have added the extra $, but how can I tell what is stopping it?

I tried the get command to enter password at a prompt, to include in the map command, but surely this would not be required.

Thanks

NJ