locked
.vbs logon script not running on Windows 7 machines? RRS feed

  • Question

  • We are just starting to use logon scripts here and we have both XP and Win 7 machines.

    I am having an issue where my .vbs logon script will not run on our Windows 7 Pro machines.  The script runs correctly on our XP machines.  We are running Server 2003 and I am assigning the script to individual users through active directory.  The script is stored at \\server\domainname.com\scripts\logon.vbs.  And I just have logon.vbs in the "logon script" field of the user's "Profile" tab in AD.  I can run the script manually from the windows 7 machines but it will not run automatically when logging in like the XP machines do.

    Would the 64 bit OS have anything to do with this?


    Nate

    Friday, May 4, 2012 2:15 PM

Answers

  • I guess nobody ran into this one before?

    I did finally find out that there was a DWORD entry that needed to be entered into the registry to allow Windows 7 to run the script.  In case anyone else ever runs into this, here is what I did:

    In the registry go to:

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]

    Here you want to create a DWORD entry named "EnableLinkedConnections" and set
    the value to 1

    Reboot for the changes to take effect.


    Nate

    • Marked as answer by TacticalN8 Monday, May 7, 2012 3:39 PM
    Monday, May 7, 2012 3:39 PM

All replies

  • Either try cscript login.vbs instead of login.vbs OR rewrite your script in PowerShell 

    http://www.computerperformance.co.uk/powershell/powershell3-logon-script.htm

    Regards

    Milos

    Friday, May 4, 2012 3:01 PM
  • Thanks Milos,

    I tried renaming the script but that did not help.  I would rather not rewrite the script in PowerShell at this time as this would be something new that i would have to learn.  I just don't have the time right now.  Since the script works when I manually run it, I know that there has to be a way to get it to run automatically.


    Nate

    Friday, May 4, 2012 5:19 PM
  • I guess nobody ran into this one before?

    I did finally find out that there was a DWORD entry that needed to be entered into the registry to allow Windows 7 to run the script.  In case anyone else ever runs into this, here is what I did:

    In the registry go to:

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]

    Here you want to create a DWORD entry named "EnableLinkedConnections" and set
    the value to 1

    Reboot for the changes to take effect.


    Nate

    • Marked as answer by TacticalN8 Monday, May 7, 2012 3:39 PM
    Monday, May 7, 2012 3:39 PM
  • Thanks you so much for this!
    Friday, August 22, 2014 3:00 PM