Monday, August 10, 05:07
Home how To 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:

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

  • 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 LaunchPad. It's the rocket icon.
  • 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 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 ".

LEAVE ANSWER

Please enter your comment!
Please enter your name here

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

LIVE NEWS

How to type in multiple languages ​​simultaneously on Android

People in today's world are very much addicted to smartphones. They provide access to many applications that can be used mainly ...

LucidPix: Make your photos 3D with this app!

Give a 3D format to your photos, with the LucidPix application, which is available in various versions for both Android and iPhone ...

Private or anonymous browsing: Does it guarantee your privacy on the Internet?

The term "private" is relevant, especially when it comes to private or anonymous browsing on the Internet, a setting in your web browser ...

Businesses: 8 types of cyber attacks to watch out for

Nowadays, all businesses, small and large must be on alert, as they can ...

How to reverse image search via Google?

The term "image search" is familiar to those who use search engines. It means that you are looking for an image related to a text that ...

Email tracking: How to be invisible in Gmail

Most people do not know what "email tracking" is, and they often fall victim to hacking and data interception when they open ...

Free services to check the validity of your passwords

Two-factor authentication, one-on-one connectivity and other tools have made it easier than ever to improve your internet security, ...

How can you back up your Gmail?

Many users may change jobs, decide to stop using a particular email account or just want a copy ...

Amazon Prime Video: How to create a new user profile?

Amazon Prime Video has added a new handy feature: the ability to create separate profiles with individual parental controls. See how you can ...

Hacker leaked online 20 GB of Intel internal documents!

Intel is investigating reports that a hacker has leaked online 20 GB of data coming from the giant of ...