I managed to find a script that will more or less do what I want to do:
<HTML>
<HEAD>
<TITLE>S&G VPN Drive Map</title>
<HTA:APPLICATION
ApplicationName="MappingWithCredentials.HTA"
SingleInstance="Yes"
WindowsState="Normal"
Scroll="No"
Navigable="Yes"
MaximizeButton="No"
SysMenu="Yes"
Caption="Yes"
></HEAD>
<SCRIPT LANGUAGE="VBScript">
Sub Window_Onload
'# Size Window
sHorizontal = 440
sVertical = 175
Window.resizeTo sHorizontal, sVertical
'# Get Monitor Details
Set objWMIService = GetObject _
("winmgmts:root\cimv2")
intHorizontal = sHorizontal *2
intVertical = sVertical *2
Set colItems = objWMIService.ExecQuery( _
"Select ScreenWidth, ScreenHeight from" _
& " Win32_DesktopMonitor", , 48)
For Each objItem In colItems
sWidth= objItem.ScreenWidth
sHeight = objItem.ScreenHeight
If sWidth > sHorizontal _
then intHorizontal = sWidth
If sHeight > sVertical _
then intVertical = sHeight
Next
Set objWMIService = Nothing
'# Center window on the screen
intLeft = (intHorizontal - sHorizontal) /2
intTop = (intVertical - sVertical) /2
Window.moveTo intLeft, intTop
'# default window content
window.location.href="#Top"
End Sub
Sub RunScript
on Error Resume Next
' *** variables
mDrive = "K:"
strRemoteShare = "\\server\share"
strDriveAlias = "share name"
mDrive1 = "L:"
strRemoteShare1 = "\\server\share"
strDriveAlias1 = "share name"
mDrive2 = "M:"
strRemoteShare2 = "\\server\share"
strDriveAlias2 = "share name"
mDrive3 = "N:"
strRemoteShare3 = "\\server\share"
strDriveAlias3 = "share name"
mDrive4 = "O:"
strRemoteShare4 = "\\server\share"
strDriveAlias4 = "share name"
mDrive5 = "P:"
strRemoteShare5 = "\\server\share"
strDriveAlias5 = "share name"
mDrive6 = "Q:"
strRemoteShare6 = "\\server\share"
strDriveAlias6 = "share name"
strUPNsuffix = "@domain.com"
minUSRnamelength = 2
minPASSwrdlength = 3
' *** Map drive using the entered credentials
strUsr = UsrnameArea.Value
strPas = PasswordArea.Value
Set objNetwork = CreateObject("WScript.Network")
Set oShell = CreateObject("Shell.Application")
If Len(strUsr) >= minUSRnamelength then
strUsr = Ucase(strUsr) & strUPNsuffix '<--- adds the UPNsuffix to the account
if Len(strPas) >= minPASSwrdlength then
Err.Clear
objNetwork.MapNetworkDrive mDrive, strRemoteShare, False, strUsr, strPas
objNetwork.MapNetworkDrive mDrive1, strRemoteShare1, False, strUsr, strPas
objNetwork.MapNetworkDrive mDrive2, strRemoteShare2, False, strUsr, strPas
objNetwork.MapNetworkDrive mDrive3, strRemoteShare3, False, strUsr, strPas
objNetwork.MapNetworkDrive mDrive4, strRemoteShare4, False, strUsr, strPas
objNetwork.MapNetworkDrive mDrive5, strRemoteShare5, False, strUsr, strPas
objNetwork.MapNetworkDrive mDrive6, strRemoteShare6, False, strUsr, strPas
If Err.Number = 0 Then
oShell.NameSpace(mDrive).Self.Name = strDriveAlias
oShell.NameSpace(mDrive1).Self.Name = strDriveAlias1
oShell.NameSpace(mDrive2).Self.Name = strDriveAlias2
oShell.NameSpace(mDrive3).Self.Name = strDriveAlias3
oShell.NameSpace(mDrive4).Self.Name = strDriveAlias4
oShell.NameSpace(mDrive5).Self.Name = strDriveAlias5
oShell.NameSpace(mDrive6).Self.Name = strDriveAlias6
End If
ELSE
Msgbox chr(34) & strPas & """ is an incorrect password !"
Exit Sub
End If
ELSE
Msgbox chr(34) & strUsr & """ is an incorrect Username !"
Exit Sub
End If
Set oShell = Nothing
Set objNetwork = Nothing
Self.Close()
End Sub
Sub CancelScript
Set oShell = Nothing
Set objNetwork = Nothing
Self.Close()
End Sub
</SCRIPT>
<BODY STYLE="font:14 pt arial; color:white; filter

rogid

XImageTransform.Microsoft.Gradient( GradientType=1, StartColorStr='#000000', EndColorStr='#0000FF')">
<a name="Top"></a><CENTER>
<table border="0" cellpadding="0" cellspacing="0"><font size="2" color="black" face="Arial">
<tr>
<td height="30">
<p align="right">Your Username</p>
</td>
<td height="30"> <input type="text" name="UsrnameArea" size="30"></td></tr>
<tr>
<td height="30">
<p align="right">@domain.com Password</p>
</td>
<td height="30"> <input type="password" name="PasswordArea" size="30"></td></tr>
</table><BR>
<HR color="#0000FF">
<Input id=runbutton class="button" type="button" value=" Create Drive " name="run_button" onClick="RunScript">
<Input id=runbutton class="button" type="button" value="Cancel" name="cancel_button" onClick="CancelScript">
</CENTER>
</BODY>
</HTML>
Thanks for the help
