none
Run these Programs at User Logon RRS feed

  • Question

  • I have a policy that starts a local program on user logon to the laptop. I don't want to run the program when laptop users are not connected to out domain. Right now it uses the cashed credential and run the program even if the laptop is not connected to out network.

    Computer Configuration\Administrative Templates\System\Logon\Run these programs at user logon

    Thanks

    MarkZar
    Thursday, July 9, 2009 7:22 PM

Answers

  • Because your user can log on to the machine with cached credentials, this behaviour is by design. Group policy (if it defined, and applied at least once) always applies to domain members even if the network is unavailable.
    Thursday, July 9, 2009 11:10 PM
  • A workaround that could work:
    - Create a vbscript that checks if the network is connected (there are several ways to do that, but some scripting know how is needed)
    - in the same script start the desired apps if network = connected. If not, don't start them
    - instead of directly starting your apps via the GPO, configure your the script to be started

    As a result your script is always started, but your apps only if the machine is connected to the network.
    Patrick
    Friday, July 10, 2009 9:35 AM

All replies

  • Because your user can log on to the machine with cached credentials, this behaviour is by design. Group policy (if it defined, and applied at least once) always applies to domain members even if the network is unavailable.
    Thursday, July 9, 2009 11:10 PM
  • A workaround that could work:
    - Create a vbscript that checks if the network is connected (there are several ways to do that, but some scripting know how is needed)
    - in the same script start the desired apps if network = connected. If not, don't start them
    - instead of directly starting your apps via the GPO, configure your the script to be started

    As a result your script is always started, but your apps only if the machine is connected to the network.
    Patrick
    Friday, July 10, 2009 9:35 AM