start a script at session start

emanuele cucinotta 1 Reputation point
2020-09-16T14:03:15.407+00:00

Hi everyone,

I must start a script at start the session not desktop not other programs.

I have tried has create user on activity directory

and in the tab "Environment" I have set to the path of script.

but in my laboratory it works. But in production enviroment it does not work.

can you help me please?

script is in batch language

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
3,666 questions
Windows Server Security
Windows Server Security
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
1,309 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
8,270 questions
No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Vicky Wang 2,571 Reputation points
    2020-09-17T07:26:08.953+00:00

    Hi,
    Thank you for posting in our forum

    Use start session scripts only if you need to configure desktop policies before a session starts.

    As a best practice, use the Horizon Agent CommandsToRunOnConnect and CommandsToRunOnReconnect group policy settings to run command scripts after a desktop session is connected or reconnected. Running scripts within a desktop session, rather than using start session scripts, satisfies most use cases.

    For more information, see “Running Commands on Horizon Desktops” in the Configuring Remote Desktop Features in Horizon 7 document.

    Hope this information can help you
    Best wishes
    Vicky

    No comments

  2. Vicky Wang 2,571 Reputation points
    2020-09-21T08:47:56.2+00:00

    Hi,
     
    Just checking in to see if the information provided was helpful. Please let us know if you would like further assistance.
     
    Best Regards,
    Vicky

    No comments