Pages

Saturday, 10 November 2018

Launch a number of programs

The following PowerShell code very simply opens a number of programs when ran. I created this to speed up weekly restarts of my PC where I always had core applications that I used. Just simply add the relevant .exe location as required and the 'Start-Sleep' is there as a precaution to add a slight pause between each one opening. Launching this as an Administrator helped to avoid entering my credentials repeatedly.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Start 'C:\Program Files (x86)\VMware\VMware Workstation\vmware.exe' | Start-Sleep -Seconds 2
Start 'C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\bin\Microsoft.ConfigurationManagement.exe' | Start-Sleep -Seconds 2
Start 'C:\Program Files\Client Center for Configuration Manager\SCCMCliCtrWPF.exe' | Start-Sleep -Seconds 2
Start 'C:\Program Files\Saladin\bin\saladin.exe' | Start-Sleep -Seconds 2
Start 'C:\Windows\System32\dsa.msc' | Start-Sleep -Seconds 2
Start 'C:\Windows\regedit.exe' | Start-Sleep -Seconds 2
Start 'C:\Windows\System32\cmd.exe'
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯

Launch a number of programs.ps1

No comments:

Post a comment