• Skip to main content
  • Skip to header right navigation
  • Skip to site footer
iGuRu

iGuRu

Real-time Technology News. Opinions & Tweaks

  • / news
  • / tools
  • / tweaks
  • / dummies
  • / opinions
  • / support
  • / yourpost
home / tweaks / Some Useful cmdlets for PowerShell

Some Useful cmdlets for PowerShell

14/08/2020 12:33 by Anastasis Vasileiadis

The Linux operating system has long offered more power and flexibility to its administrators through shell scripting. Microsoft Windows did not have this flexibility due to limited command line capabilities.

powershell commands - Some Useful cmdlets for PowerShell

To overcome this limitation, Microsoft introduced PowerShell to effectively automate tasks and manage settings. It is built with .NET Framework and provides full access to COM and WMI.

PowerShell is a tool for scripting and task automation on Windows systems. PowerShell has cmdlets by default, which perform predefined tasks.

There are hundreds of cmdlets for PowerShell available, designed to perform various administrative tasks.

1. Stop-Process

This will forcefully shut down the Firefox browser if it is running.

Mandate: Stop-Process -Name Firefox

2. Get-Process

This will display all the processes currently running on the system in table format.

Command: Get-Process | Format-Table

powershell 1 - Some Useful cmdlets for PowerShell

3. Get-EventLog

It will display all the logs related to "Security" from the current system.

Mandate: Get-EventLog -Log “Security”

powershell 2 - Some Useful cmdlets for PowerShell

4. Export-CSV

It will display all "Security" related events in the security.csv file on drive E.

Mandate: Get-EventLog -Log “Security” | Export-Csv E: \ security.csv

powershell 3 - Some Useful cmdlets for PowerShell

5. Get-Service

It will display a list of all services in the current system and their status, in tabular form.

Command: Get-Service | Format-Table

powershell 4 - Some Useful cmdlets for PowerShell

6. Get-Help

It will display detailed usage information about the Format-Table cmdlet.

Command: Get-Help Format-Table

powershell 7 - Some Useful cmdlets for PowerShell

7. Get-CimInstance

This will get details about the operating system that is installed.

Command: Get-CimInstance CIM_OperatingSystem

powershell 5 - Some Useful cmdlets for PowerShell

8. Get-WmiObject

Lists all local users on the current system.

Mandate: Get-WmiObject -Class Win32_UserAccount -Filter "LocalAccount = 'True" "

powershell 6 - Some Useful cmdlets for PowerShell

Some Useful cmdlets for PowerShell was last modified: August 14, 2020, 12: 33 mm by Anastasis Vasileiadis

spread the news

  • Facebook
  • Twitter
  • Reddit
  • Printing
  • Email

Read them Technology News from all over the world, with the validity of iGuRu.gr

Follow us on Google News


Competition: tweakstag: cmdlets, powershell

You May Also Like

PowerShell 7.1 final just released
Change process priority in Windows 10
Log in to Windows 10 via SSH

About Us Anastasis Vasileiadis

Translations are like women. When they are beautiful they are not faithful and when they are faithful they are not beautiful.

Previous Post: « Black Hat 2020: the scariest things ever said!
Next Post: Windows 10 live desktop components »

Reader Interactions

Comment Policy:

IGuRu.gr does not publish the comments immediately. Malicious comments, comments that include ads, or comments that are offensive are deleted without notice. We do not adopt the opinions expressed by our readers.
Your comments will be displayed after approval by the administrators


Leave your comment
Ακύρωση απάντησης

Your email address is not published. Τα υποχρεωτικά πεδία σημειώνονται με *

 

 © 2021 · iGuRu.gr · ☢ · Keep It Simple Stupid Genesis theme

about  ·   get in touch  ·  rss  ·  sitemap  ·  cough

loading Cancel
Could not post post - check your email address!
Email verification failed, please try again
Your blog can not post posts via email.