💡 Like BikeGremlin? Support me on Patreon or buy me a coffee
Search...

Windows command-prompt and Powershell notes

📢
More from BikeGremlin: YouTube | Forum | HUB
Google Add BikeGremlin as a preferred source on Google

A brief list of Windows commands that are helpful but don’t deserve a separate article.

0. General

Power shell install using Windows command prompt

Find available Powershell versions to install:
winget search Microsoft.PowerShell

Install it:

winget install --id Microsoft.PowerShell --source wingetCode language: CSS (css)

Update PowerShell using CLI

winget upgrade --id Microsoft.PowerShellCode language: CSS (css)


1. Network

Windows PowerShell command to save ping results in a text file:

ping.exe -t www.google.com|Foreach{"{0} - {1}" -f (Get-Date),$_} >> c:\test\ping-result-2023-10-18.txtCode language: PHP (php)


2. System tweaking

To easily add an application to startup for the active user:

  • Create a shortcut to the app (if it doesn’t already exist).
  • Win+R -> shell:startup
  • To the window that’s opened, right-mouse drag the app’s shortcut and “Copy here” it in the window.

The path of the window is:

C:\Users\active_user\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

(re)sources and relevant links


Last updated:


Originally published:




Please use the BikeGremlin.net forum for any comments or questions.

If you've found any errors or lacking information in the article(s) - please let me know by commenting on the BikeGremlin forum or by sending a message via the forum's contact form.
You can comment anonymously (by registering with any name/nickname), but I think it is good to publicly document all the article additions (and especially corrections) - even if their author chooses to remain anonymous.

Tools and other products that I use (and can recommend)