Logon script just NOT work, need help

Anonymous
2023-10-13T03:59:50+00:00

I create a very VBS map drive logon script as follow :

Set objNetwork = CreateObject("WScript.Network")
objNetwork.MapNetworkDrive "M:" , "\10.10.10.10\test"

Then use group police assign to a group ( see below picture)

Just not work, but if I manually click the VBS on my PC, it can map the driver,

I Googled many possibilities, try many times, still not work.

Any hints ?

Windows for business | Windows Server | Directory services | User logon and profiles

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question. To protect privacy, user profiles for migrated questions are anonymized.

0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-10-13T05:44:01+00:00

    Hello li dcik,

    Thank you for posting in Microsoft Community forum.

    Please check or troubleshoot the issue as below:

    1.Please check if the logon script itself work or not.

    2.Because you configured logon script under user configuration, please put user account objects in the OU if you link the GPO to one OU.

    3.If the test.vbs is a local path or shared path, I suggest you can put the test.vbs in the GPO shared folder path.

    For example:
    \a.com\SYSVOL\a.com\Policies{GUID}, the GUID is corresponding to the GPO GUID.

    Or other shared path that all the users can access.

    4.Check GPO setting via gpresult file.
    For checking User Configurations within gpresult, we can follow steps below.

    Logon the machine using normal domain user account (in the OU that GPO linked to).

    Create a folder named F1.

    Open CMD (do not run as Administrator).

    Type gpresult /h C:\F1\gpo.html and click Enter.

    Open gpo.html and check logon script setting under "User Details".

    I hope the information above is helpful.

    If you have any question or concern, please feel free to let us know.

    Best Regards,
    Daisy Zhou

    1 person found this answer helpful.
    0 comments No comments