Greetings,
we are using a vbs script over VPN to map the network drives for users . the script works well for some users and for other users the script keep hanging in processes background and utilizing the CPU to 100% with high speed of fans . please let me know what kind of troubleshooting is required to resolve the issue . the script works fine for some users and some users not . we are trying to find a away to force the vbs script to end after sometime to resolve this issue .
we have created this script to map the shared folders for users over vpn , the script will run once the user connects to vpn
this is part of the script - from the end - ' Get list of groups, UNC paths and drives' lettters (Note the comma between the UNC path and the letter) '------------------------------------------------------------------------ objGroupsList.Add "AMPC_SupplyDepartment F", "\\cifs\Supply_Department,Z:" objGroupsList.Add "AMPC_ARCHIVE_ALL", "\\CIFS\Archive AMPC,T:" '----------------------------------------------------------------------- Sub Output(strEntry) if (verboseFileFlag = 1) then objFile.WriteLine(Now() & vbTab & strEntry) if (verboseScreenFlag = 1) then wscript.echo strEntry End Sub '---------------------------------------------------------------------- Set WshShell = CreateObject("Wscript.Shell") Result = WshShell.Run("cmd /c echo N | gpupdate /force /wait:0",0,true) Wscript.Quit(Result)