autorun modifies the Windows Registry Database so that specified commands are run when your system boots or when you log in. When you run the autorun command, a dialog box appears offering four options:
- On any user logon, once. The specified command is run only once the next time any user logs in.
- On any user logon, every time. The specified command is run each time any user logs in.
- On my logon, once. The specified command is run only the next time you log in.
- On my logon, every time. The specified command is run each time you log in.
When you click on a specific option the autorun dialog box displays all commands that are currently set for that option. For example, if you click the On user login, every time button, the Application Identifier field displays all programs currently set to always run on login.
To add an application, click on one of the run-time option buttons, then click Add. An Add New Run Command dialog box appears where you can specify the application identifier and the command line to run.
You can modify application command lines by clicking the application name to highlight it, and then clicking Modify. An Edit Run Command dialog box appears where you can modify the existing application identifier or command line.
To delete an application from autorun, click on the application identifier to highlight it, then click Delete.
If you want to set up a script to run every time a machine boots, you can use the mksrv utility to run it as a service.
Possible exit status values are:
autorun is provided as a KornShell executable script with bound resources. MKS cannot be responsible for proper functionality of this code if you alter the autorun.ksh file in any way.
Windows 7. Windows Server 2008 R2. Windows 8. Windows Server 2012. Windows 10. Windows Server 2016.
PTC MKS Toolkit for System Administrators
PTC MKS Toolkit for Developers
PTC MKS Toolkit for Interoperability
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
Using the MKS KornShell
PTC MKS Toolkit 10.1 patch 1 Documentation Build 2.