Software-OK
≡... News | ... Home | ... FAQ | Impressum | Contact | Listed at | Thank you |

  
HOME ► Faq ► FAQ - Windows-11 ► ««« »»»

10 best PowerShell commands for Windows 11 and 10?


PowerShell is a powerful tool for managing and automating tasks in Windows 10 and Windows 11. Here are some handy PowerShell commands that can help you in your day-to-day life:



1. Show System Information
2. Network!
3. Manage processes!
4. File and directory management!
5. System Settings and Management!
6. Manage Updates!
7. Manage Users!
8. Disks and Storage!
9. Manage Services!
10. System Diagnostics!

 

1.) Show System Information



- System Info
Displays a detailed overview of the system, including operating system, BIOS, memory, and network details.
Get-ComputerInfo

- Show Windows Version
Displays the installed Windows version and build number.
Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\" | Select-Object ProductName, ReleaseId, CurrentBuild

2.) Network!



- Show IP Address
Displays the current IP address of the system.
Get-NetIPAddress
- Show network adapter settings
Lists all network adapters and their settings.
Get-NetAdapter | Format-Table

3.) Manage processes!



- Show processes
Displays a list of all running processes.
Get-Process
- End process
Terminates a specific process, for example "notepad".
Stop-Process -Name notepad -Force

4.) File and directory management!



- Show directory contents
Displays all files and subdirectories in the current directory.
Get-ChildItem
Get-ChildItem -Path "C:\Path\To\Directory" -Filter "filename.txt" -Recurse
- Copy File
Copies a file or directory.
Copy-Item -Path "C:\Source\file.txt" -Destination "C:\Destination\"
- Delete File
Deletes a file or directory.
Remove-Item -Path "C:\Path\To\file.txt"

5.) System Settings and Management!



- Restart Computer
Restarts the system.
Restart Computer

- View and change power options

View the current power settings.
powercfg /l
Changes the power plan to High Performance:

powercfg /s SCHEME_MAX

6.) Manage Updates!



- Show Available Updates
Displays all available Windows updates.
Get-WindowsUpdate
- Install Windows Update
Installs available updates.
Install-WindowsUpdate -AcceptAll -AutoReboot

7.) Manage Users!



- Show User Accounts
Lists all user accounts on the system.
Get-LocalUser

- Create New User
Creates a new local user.
New-LocalUser -Name "NewUser" -Password (ConvertTo-SecureString "Password123" -AsPlainText -Force) -FullName "Full Name" -Description "Description"

- Add User to Administrators Group
Adds a user to the local administrators group.

Add-LocalGroupMember -Group "Administrators" -Member "NewUser"

8.) Disks and Storage!



- Show Disk Information
Displays information about the installed disks.
Get-PhysicalDisk

- Show Free Space
Displays the available space on all drives.
Get-PSDrive -PSProvider FileSystem | Select-Object Name, @{Name="FreeSpace(GB)";Expression={[math]::round($_.Free/1GB,2)}}, @{Name="UsedSpace(GB)";Expression={[math]::round(($_.Used/1GB),2)}}

9.) Manage Services!



- View Services
Lists all installed services and their status.
Get-Service

- Start/Stop Service
Starts or stops a specific service, e.g. "Spooler".
Start-Service -Name "Spooler"
Stop-Service -Name "Spooler"

10.) System Diagnostics!



- Search Event Viewer
Searches for specific events in the event log.
Get-EventLog -LogName System -EntryType Error -Newest 20

- Monitor System Resources
Displays CPU and memory usage in real time.
Get-Process | Sort-Object CPU -Descending | Select-Object -First 10

These commands can be run from the PowerShell console or in a script to automate daily tasks and manage systems efficiently.



FAQ 277: Updated on: 26 August 2024 18:41 Windows
Windows-11

Windows 11 on older devices without hacks 2024!


It is true that over time Microsoft has relaxed some of the restrictions on installing Windows 11. Info: Notably, users can now install the operating system
Windows-11

What is the first and last version of Windows 11?


The first version of Windows 11 is version 21H2, which was released on October 5, 2021. This version had the build number 22000. The operating system brought
Windows-11

Can I change the S mode disabled in Windows 11?


To switch Windows 11 in S mode to the regular version of Windows 11, you can permanently disable S mode . The switch is free, but once disabled, S mode cannot
Windows-11

Expected improvements in Windows 11 that are coming?


Detailed user questions divided into categories. Each question has a detailed description and answer. Topic: "Improvements in Windows 11 that are coming
Windows-11

Windows 11 Quick-FAQ!?


Windows 11 offers an improved user interface, more efficient multitasking, better gaming performance thanks to DirectStorage, and increased security through
Windows-11

Add additional guardian in Windows 11?


For example, to add the mother as an additional guardian family organizer in Windows 11, you can follow these steps: 1. Add to family group 2. Accept invitation
Windows-11

Why are Programs and Features in Control Panel and Settings?


In Windows 11 and 12, there is a partial division of the management of programs and features into two areas: Settings and Control Panel . This separation

»»

  My question is not there in the FAQ
Asked questions on this answer:
Keywords: windows, best, powershell, commands, powerful, tool, managing, automating, tasks, here, some, handy, that, help, Questions, Answers, Software




  

  + Freeware
  + Order on the PC
  + File management
  + Automation
  + Office Tools
  + PC testing tools
  + Decoration and fun
  + Desktop-Clocks
  + Security

  + SoftwareOK Pages
  + Micro Staff
  + Freeware-1
  + Freeware-2
  + Freeware-3
  + FAQ
  + Downloads

  + Top
  + Desktop-OK
  + The Quad Explorer
  + Don't Sleep
  + Win-Scan-2-PDF
  + Quick-Text-Past
  + Print Folder Tree
  + Find Same Images
  + Experience-Index-OK
  + Font-View-OK


  + Freeware
  + QuickTextPaste
  + DesktopNoteOK
  + ShortDoorNote
  + AutoHideDesktopIcons
  + BlankAndSecure
  + AlwaysMouseWheel
  + NewFileTime
  + DesktopClock3D
  + PointerStick
  + PAD-s


Home | Thanks | Contact | Link me | FAQ | Settings | Windows 10 | gc24b | English-AV | Impressum | Translate | PayPal | PAD-s

 © 2025 by Nenad Hrg softwareok.de • softwareok.com • softwareok.com • softwareok.eu


► Shadows and striped lines on the new graphics card (defective, bug)! ◄
► Do I need HDMI 2.1 or not? ◄
► Why print out the lost space on the hard disk for Windows? ◄
► How do I print in multiple colors with a 3D printer? ◄


This website does not store personal data. However, third-party providers are used to display ads,
which are managed by Google and comply with the IAB Transparency and Consent Framework (IAB-TCF).
The CMP ID is 300 and can be individually customized at the bottom of the page.
more Infos & Privacy Policy

....