Win32::Login(); # gives you the loging name Win32::NetResource::AddConnection() # add connection