I'm running Logon Script and it is in VBScript.
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
...