PowerShell is an immensely popular and powerful tool that comes built into Windows 10 with applications across enterprise, development, automation, and so much more. But PowerShell is also cross-platform and open-source, with versions available for Mac OS and Linux, too.
But what about if you're using a Chromebook, either personally or professionally? Well, so long as it's a recent machine with support for Linux apps, you can install and use Microsoft PowerShell.
Here's what you need to know.
Making sure Linux is enabled on your Chromebook
What makes the magic happen is the Crostini Linux container on Chrome OS, which will allow you to install the Linux version of Visual Studio Code on your Chromebook.
If you don't already have that enabled, it's really straightforward.
- Open Settings.
- Locate Linux (Beta) in the sidebar.
Click Turn on.
At the next window, click Next.
- Give your Linux install a username.
Decide how much space you want to dedicate from your internal storage to it.
The Linux container will now begin to download and install itself on your Chromebook. You'll know it's finished when a terminal window pops up, and then you can move on to the next step.
Downloading and installing PowerShell on a Chromebook
While PowerShell on Linux isn't exactly the same as on Windows — modules and commands specific to Windows are naturally unavailable — it's available for folks who need it. Once Linux is set up on your Chromebook, we can go about installing PowerShell.
We'll be installing PowerShell 7 here, and the process is really straightforward.
- Go to the PowerShell release page.
- Download the .deb installer for Debian 10.
- Locate the downloaded file, by default, it will be in your downloads folder.
- Right-click and select Install with Linux (beta).
- Click install.
A fairly short installation process will now occur, and you'll receive a notification when it's all done.
The big difference between PowerShell and other most other Linux apps installed on a Chromebook is that there won't be an app icon appear in the Linux Apps folder in your app drawer.
How to launch PowerShell inside the terminal
PowerShell is an entirely terminal-based application, and on a Chromebook, it operates inside the Linux terminal.
Open the Linux terminal either by searching for it or just heading to your Linux apps folder and when the virtual machine has done its startup, enter this simple command.
You'll now see a short bit of blurb beginning with the PowerShell version, and your command line will change from yourusername@penguin to PS /home/yourusername.
You're now all set to use PowerShell on your Chromebook. Any time you want to use it, simply enter the command to launch it and exit out when you're done by typing exit.
But if you're going to use it a lot, you might want to set it as the default shell for your Chromebook's Linux terminal.
Setting PowerShell as the default terminal shell
PowerShell's bonus is that it doesn't overwrite your existing shell; any Linux commands you could normally enter in the bash shell can also be entered in PowerShell. As such, if you're going to use PowerShell a lot, you can set it as your default shell and not worry about losing any functionality.
To do this, simply fire up the terminal and enter this code.
sudo chsh -s /usr/bin/pwsh $USER
Reboot the terminal, and you'll now be taken straight into PowerShell and no longer see the regular yourusername@penguin.
And that's all you need to do to get up and running with Microsoft PowerShell on your Chromebook. Whether you're just looking to poke around and learn some of the basics or you need to use it for work or development purposes, the Linux version of PowerShell works great on a Chromebook.
We may earn a commission for purchases using our links. Learn more.
Your Xbox questions answered with #AskJezXbox!
Check out our new video series #AskJezXbox, which takes your questions and comments and puts
SecretLab Titan World of Warcraft Chair Review: Embracing the Horde
SecretLab's refreshed 2020 Series Titan chairs are among the best you can buy. What would happen if you threw in some intricate World of Warcraft iconography? The answer: something special.
Don't delete your Oculus Facebook account if you want to keep your games
Nowadays, your Facebook account is your Oculus account. Make sure you don't delete it if you want to keep your games.
Make the most of your Surface Pen and Slim Pen with these awesome apps
To really maximize the ability of the Surface Pen and Slim Pen, there are some essential apps you should check out. We've rounded up the best right here for a variety of purposes.