I'm running Logon Script and it is in VBScript.
when I'm calling Sub function it givving me this error
So at the starting point of "Sub" it will give me error: " Char:1 Error:Syntax error Code:800A03EA Source: Microsoft VBScript compilatiopn error "
Can anyone tell me what I'm doing wrong here?Please.
when I'm calling Sub function it givving me this error
Code:
If InStr(strGroups, ADFS1_GROUP) Then
MapDrive "G:", "\\xxx-xxx-ADFS-1\GROUP"
Else
MapDrive "H:", "\\xxx-xx-ADFS\HOME"
End If
Sub MapDrive(strDrive, strShare)
On Error Resume Next
WSHNetwork.MapNetworkDrive strDrive, strShare
strMappedDrives = strMappedDrives & strDrive & " "
ie.document.all.Msg2.InnerText = strMappedDrives
End Sub
Can anyone tell me what I'm doing wrong here?Please.
Comment