GoGreen PC Tune-Up™
Learn More

Insta-Install™
this is how ssl encrypt our websites
MTNCOMP | List View | Table View | myBlog (1777 Entries)
myBlog Home

Blog


Useful Microsoft Windows PowerShell and MS-DOS commands as of late

Microsoft Windows

by Mountain Computers Inc, Publication Date: Saturday, October 5, 2024

View Count: 111, Keywords: Microsoft, PowerShell, Useful Commands, Hashtags: #Microsoft #PowerShell #UsefulCommands



Here are some of the more popular useful Microsoft Power Shell commands I have had to use of late, along with MS-DOS commands in coordination and in tandem.
 
Set-Local User Accounts (make sure the password does not start with a $ symbol)
 
C:\Windows\System32>powershell -executionpolicy bypass -command "set-localuser -Name LocalUsername -Password (ConvertTo-SecureString -String 'NewPassword' -AsPlainText -Force) -AccountNeverExpires:$true  -PasswordNeverExpires:$true"
 
Pause the System for so many seconds (e.g. 60 seconds)
c:\windows\system32\TimeOut 60
 
Mount Volume (specifically the system volume to manipulate it; make sure Y: is not already in use)
...Mount the System Volume as Y: drive letter
c:\mountvol y: /s
...manipulate the volume contents (e.g. md, rd, del, ren, etc.), then remove/delete the mounted volume
c:\mountvol y: /d
 
Disk Partition (e.g. to wipe a drive before re-installing Windows, during Setup, press Shift+F10)
x:\diskpart
DISKPART> list disk
  Disk ###  Status         Size     Free     Dyn  Gpt
  --------  -------------  -------  -------  ---  ---
  Disk 0    Online         256 GB  193 MB        *
DISKPART>select disk {number}
DISKPART>clean
DISKPART>exit
x:/exit
 
I have about 100 or more command to add.  stand by.

more to come...
 
 

if you found this article helpful, consider contributing $10, 20 an Andrew Jackson or so..to the author. more authors coming soon
FYI we use paypal or patreon, patreon has 3x the transaction fees, so we don't, not yet.

© 2024 myBlog™ v1.1 All rights reserved. We count views as reads, so let's not over think it.