Basic PowerShell Commands

Basic PowerShell Commands

HomeOther ContentBasic PowerShell Commands
ChannelPublish DateThumbnail & View CountActions
Channel Avatar EvilComp2023-03-12 03:31:54 Thumbnail
13,293 Views
PowerShell is a command-line shell used for task automation via a scripting language based on Microsoft’s .NET framework. PowerShell uses commands called cmdlets to integrate with scripts or applications. PowerShell is included natively with Windows and can be opened from the Run command, while Mac and Linux users will need to install it and run it through the Terminal. Once running, there are some basic cmdlets that you can use to familiarize yourself with PowerShell.
1-Use /”Get-Command/” to find cmdlets. On its own, this cmdlet will display all other cmdlets. You can narrow your search using modifiers.
2-Use /”Get-Help/” to get info on a certain cmdlet. This cmdlet will give you all the information regarding another cmdlet, most importantly syntax for how the target cmdlet is used.
3-Use /”Get-Process/” to use a process running on a computer. Alone this will display a full list of processes running on your computer. With a modifier, you can single out processes coming from a specific application.
4-Use /”Get-Member/” to see properties or methods of an object. This cmdlet needs an object ‘piped’ to it in order to be useful. This is done by adding a /”|/” between an object and the /”Get-Member/” cmdlet.
5-Use /”Where-Object/” to select objects based on criteria. The criteria in Where-Object is set by using the following formatting: /”{$_[object] [operator] [parameter] }/”. Where-Object also needs an object piped to it.
#windows #windows10 #commands #commandstutorial #powershellscripting #powershell#powershellcommands #PowerShell #powershell #powershellise #powershellbasics #powershellscript #powershellscripts #powershelltraining #commands #commandsquad #CommandStrips #commandsarmy #commandstrips

Please take the opportunity to connect and share this video with your friends and family if you find it useful.