vbs login script hangs in background processes RRS feed

  • Question

  • 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

    Thursday, July 9, 2020 5:52 AM


All replies

  • 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 "AC_SupplyDepartment F", "\\cifs\Supply_Department,Z:"
    objGroupsList.Add "AMARCHIVE_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)

    • Edited by Matt9111 Thursday, July 23, 2020 11:42 AM
    Thursday, July 9, 2020 5:53 AM
  • Hi Matt9111,

    Thank you for posting here.

    According to your description, your issue is more related to VBScript.

    I have moved the thread to 'where is the forum for...?' forum to help you find the correct forum to go ask questions.

    Visual Basic Forum is a Question & Answer system for VB.Net related question as well as a Discussion board for VB.Net Language related topics.

    Thank you for your understanding.

    Best Regards,

    Xingyu Zhao

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, July 9, 2020 8:19 AM
  • I'd try asking for help over here.





    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

    • Proposed as answer by Guido Franzke Thursday, July 9, 2020 2:09 PM
    • Marked as answer by Guido Franzke Thursday, July 16, 2020 5:58 AM
    Thursday, July 9, 2020 11:49 AM