Homehow ToPowershell: Easy installation on Windows / Mac / Linux

Powershell: Easy installation on Windows / Mac / Linux

Powershell is a command line used to automate tasks using a language based on its .NET framework Microsoft products. The commands it uses are called cmdlets. No need to install it because it comes with their installation Windows and can be opened with the Run command, while Mac and Linux users will need to install and run it through Terminal. Once you run it, there are some basic cmdlets you can use to familiarize yourself with Powershell.

Powershell into a Windows:

  • Press Win + R. This will open the Run command.
  • You can also search for PowerShell from the Start menu.
  • PowerShell is integrated with Windows 7 onwards.
  • Type PowerShell in the search bar.
  • Press “OK”. This will open the program.

Powershell into a Mac:

  • Get in here.. This is the official github of the program.
  • Download and install the .pkg file. To install it, you must have OSX11 or later.
  • Open the LaunchPad. It is the icon with a rocket.
  • Press and search for "Terminal". You can also find Terminal by going to

“Applications> Utilities”

  • Open the Terminal.
  • Type PowerShell and press enter. This will open Powershell to "PS". This means that the program runs and receives your commands from the Terminal.

Powershell into a Ubuntu:

  • Get in here.. This is the official github of the program.
  • Download .deb file, depending on its version Linux that you have. The program is available for Ubuntu 14.04 or 04.
  • Open Terminal. You can do this by using Win + Alt + T or by searching for it in the search bar.
  • Type "sudo dpkg -i [filename]" and press Enter. You will need to enter your password.
  • Type "sudo apt-get install -f" and press Enter again.
  • Type Powershell and click OK. This will open the Powershell which will receive commands from the Terminal.

Its basic commands PowerShell:

  • Use the "Get-Command" command to find cmdlets. It will display all cmdlets on its own.

Eg: the command "Get-Command Name * Disable *" will show you all commands that contain "Disable" in the name their.

  • Use the Get-Help command to find information about a specific cmdlet.
  • Eg: "Get-Help Get-Process" will display all the useful information about the 'Get-Process' cmdlet.
  • Get-Process will show you one list with the functions that are done on your computer.
  • Use "Get-Member" to see the properties and methods of an object. This cmdlet needs another cmdlet to be useful. This is done by adding a "|" between cmdlets.
  • For example: “Get-Process | Get-Member “. Thus, "Get-Member" will display all the properties and methods that you can use using Get-Process.
  • Use "Where-Object" to select objects based on certain criteria. The criteria in Where-Object are defined using the following formatting: "{$ _ [object] [operator] [parameter]}". The Where-Object also needs an object associated with it.
  • For example: “Get-Process | Where-Object {$ _ .name -eq "notepad"} "will execute Get-Process where the object name will be equal to" notepad ".

SecNewshttps://www.secnews.gr
In a world without fences and walls, who needs Gates and Windows
spot_img

LIVE NEWS