Wednesday 27 April 2016

How to Generate List of StartUp Programs Using CMD OR POWERSHELL?


You Probably know how to get list of startup program just after User Log in Successfully using msconfig.

  1. win + R.









2.Type "msconfig" in Run. 











3. Select StartUp over there.














But if you want to do the same USING



Command Prompt

Step 1: Open the command prompt by going to StartRun and typing in CMD. If you are unfamiliar with the command prompt, feel free to read my command prompt beginner’s guide first.
command prompt
Step 2: Now type in the following WMI (Windows Management Instrumentation) command at the prompt and press Enter.
wmic startup get caption,command
You should now see a list of all the applications along with their paths that run at Windows startup.
cmd startup programs
If you want more information, you can also just type wmic startup and you’ll get a few extra fields like Location, UserSID and User.
Step 3: If you want to export the list out as a text file, type in the following command:
wmic startup get caption,command > c:\StartupApps.txt
And if you want to create an HTML file, just type this instead:
wmic startup get caption,command > c:\StartupApps.htm




PowerShell

If you prefer to use the more modern and powerful PowerShell, the command below will give you pretty much the same results as the WMI command above.
Get-CimInstance Win32_StartupCommand | Select-Object Name, command, Location, User | Format-List 
powershell startup programs
If you want to send the output of a PowerShell command to a text file, you can simply append the following part to the above command after Format-List.
| Out-File c:\scripts\test.txt
Make sure to include the pipe symbol | that is at the very front. I actually prefer the output of PowerShell because the formatting is much easier to view in a text editor.

That’s about it. You should now have a list of startup programs that you can save and reference later. If you have any questions, feel free to post a comment. Enjoy!

No comments:

Post a Comment

How to install google-chrome in redhat without redhat subscription

Install google-chrome in redhat  Download the .rpm file of chrome https://www.google.com/chrome/thank-you.html?installdataindex=empty&st...