Thursday, April 9, 12:24
Home tweaks Powershell: 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. The commands it uses are called cmdlets. You do not need to install it because it comes with the installation of 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:

Powershell: Easy installation on Windows / Mac / Linux

  • 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.

Powershell: Easy installation on Windows / Mac / Linux

  • Press “OK”. This will open the program.
- Advertisement -

Powershell into a Poppy:

  • Get in here. This is the official github of the program.

Powershell: Easy installation on Windows / Mac / Linux

  • Download and install the .pkg file. To install it, you must have OSX11 or later.

  • Open LaunchPad. It's the rocket icon.

  • Press and search for "Terminal". You can also find Terminal by going to

“Applications> Utilities”

Powershell: Easy installation on Windows / Mac / Linux

  • 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:

Powershell: Easy installation on Windows / Mac / Linux

  • 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.

Powershell: Easy installation on Windows / Mac / Linux

  • 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:

Powershell: Easy installation on Windows / Mac / Linux

  • 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 for the 'Get-Process' cmdlet.

  • Get-Process will show you one list with the functions that are done on your computer.

  • Use “Get-Member” to view the properties and methods of an object. This cmdlet needs another cmdlet to be useful. This is done by adding a "|" between the cmdlets.
  • For example: “Get-Process | Get-Member ”. Thus, "Get-Member" will display all the properties and methods you can use using Get-Process.

  • Use "Where-Object" to select objects based on some criteria. The criteria in Where-Object are defined using the following formatting: "{$ _ [object] [operator] [parameter]}". Where-Object also needs an object attached to it.
  • For example: “Get-Process | Where-Object {$ _ .name -eq "notepad"} "will execute Get-Process where the name of the object will be equal to" notepad ".
SecNews
SecNewshttps://www.secnews.gr
In a world without fences and walls, who needs Gates and Windows

LEAVE ANSWER

Please enter your comment!
Please enter your name here

LIVE NEWS

Instructions for the face shields created by Apple

The pandemic of coronavirus has affected all areas of our daily lives and especially our work ....

Windows 10: WSL Linux integration test in File Explorer

Windows 10 improves integration between Windows Subsystem for Linux (WSL) and File Explorer, ...

XHelper malware: reinstalled after resetting to factory settings

The malware XHelper, which affects devices running the Android operating system, was first discovered ...

The Fall of the Zoom: Google forbids its employees to use it

A few weeks ago, Zoom was one of the top teleconferencing solutions. Many people working ...

OTEAcademy: Telecommunication Program for Scientists & Freelancers, affected by COVID-19

OTEAcademy participates in the special telecommunication program - certification for scientists and freelancers affected by COVID-19.

Facebook wanted to buy Pegasus Spyware to track Apple users

According to NSO CEO Shalev Hulio, Facebook tried to buy ...

7 apps to watch movies online at the same time as your friends

According to the recommendations made by governments and health organizations around the world, ...

Tesla's model uses solar energy to move

The designs for a Tesla Roadster, with an engine that uses solar energy, were recently released on the internet and ...

George Soros is pushing for a postal vote due to COVID-19

George Soros pushes for postal voting due to COVID-19: For the purposes of the vote, George Soros-funded Brennan Center ...

Sony: Reveals the new DualSense controller for the PS5!

Together with the fifth model Playstation, PS5, Sony has unveiled the new DualSense space controller, which retains some of the ...