Checking startup items or files, when Windows is starting or upon user successful login is quite important.
Some files need to run on startup so it can be used while
the user or computer is being in used.
Or the startup files is set, so when the computer starts the
file or items will also start. In this way, you don’t have to remember what
things to open when the program or items will run during startup.
Of course, it’s not only the important files will be set
during startup. Some viruses or malware sometimes use this method to load the
software, so that they will also be in the system as long as the user is logged
in.
So, how to check in PowerShell to get all those startup
items or files?
Here’s the code:
Get-CimInstance Win32_StartupCommand | select Description, Command, Location, User, Caption
Sample output:
Description : OneDrive
Command :
"C:\Users\duser_name\AppData\Local\Microsoft\OneDrive\OneDrive.exe"
/background
Location :
HKU\S-1-5-21-abcdef-007-corona-2020\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
User : DESKTOP-2020\duser_name
Caption : OneDrive
Open Windows 10 "run box", by pressing windows key + r.
In run box window, type: shell:startup
This will open a new window explorer at this path:
C:\Users\-user-name-\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
In the path title bar in explorer, type: cmd
This will open a command prompt at the current path of the explorer and you create a batch file on this path or do things via the command line.
Cheers..till next time. :)
================================
Free Android Apps:
Click links below to find out more:
Excel Keyboard guide:
Heaven's Dew Fall Prayer app for Android :
Catholic Rosary Guide for Android:
Comments
Post a Comment