question

AvinashMundhe-0675 avatar image
0 Votes"
AvinashMundhe-0675 asked CarlFan-MSFT answered

How can we trigger runonce key and run key with command manually?

Just like, we can manually trigger Active Setup by executing the following command within the session, e.g. from a logon script: %systemroot%\system32\runonce.exe /AlternateShellStartup , So how can we trigger run and runonce keys manually?

windows-10-application-compatibility
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

CarlFan-MSFT avatar image
0 Votes"
CarlFan-MSFT answered

Hi,
Have you try to modify the Registry below:
https://docs.microsoft.com/en-us/windows/win32/setupapi/run-and-runonce-registry-keys
https://www.raymond.cc/blog/run-program-only-once-when-windows-is-booted-up/
Hope this helps and please help to accept as Answer if the response is useful.
Best Regards,
Carl

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.