not quite what i wanted seaman thanks anyway
i would like the script to check the domain
name entered at logon so if the domain name was wpsdom then the pc would shutdown
and if it was parkav then it would connect
something like a hard coded domain name with the name of parkav so the laptop users can`t change it would be the answer but dont no if it can be done possibly in VB i could edit the logon form but no how or if it can be done. Anyone with any ideas please

Daz