Thursday, October 9, 2025
HomePowershellHigh 5 PowerShell Modules You Have to Know About — LazyAdmin

High 5 PowerShell Modules You Have to Know About — LazyAdmin


I’ve been utilizing PowerShell for fairly some years now, and over time I’ve put in a variety of PowerShell modules. Most are purely purposeful, to hook up with Alternate On-line for instance, however others are simply actually helpful instruments to have.

Though there are much more PowerShell Modules which might be value to put in, these are most likely the very best PowerShell modules that I used essentially the most. When you’ve got some good suggestion, be sure to let me know within the feedback.

On this article, I’ll present you my High 5 PowerShell modules that you need to have to find out about.

Oh-My-Posh

We in fact have to start out with among the best PowerShell modules, Oh My Posh. It is a customized immediate engine that can be utilized with any shell and permits you to totally customise your terminal.

The newest model of Oh My Posh works with theme recordsdata, permitting you to simply create and share your customized theme. There’s an intensive listing of themes out there, permitting you to simply choose one and get began.

best powershell module oh-my-posh

You cannot solely add colours to your terminal but in addition helpful info, just like the Git standing, person info, or system info.

To get began with Oh My Posh, you possibly can set up it utilizing the next command:

winget set up JanDeDobbeleer.OhMyPosh -s winget

To completely use all of the capabilities of Oh My Publish, you will want to put in a Nerd Font as nicely. Nerd Fonts are common fonts the place icons are added too. Putting in one of many Nerd Fonts is fairly straightforward, merely sort:

oh-my-posh font set up

You possibly can choose one of many fonts to put in. The really helpful font is  Meslo LGM NF, however within the screenshot above I’ve used CaskaydiaCove Nerd Font. After you may have put in the font, you will want to set it as your default font on your PowerShell classes.

  • Open Home windows Terminal
  • Click on on the dropdown arrow and select Settings
  • Choose PowerShell within the sidebar, and open Look (all the best way on the backside)
  • Set the Font Face to your put in Nerd Font
Windows Terminal settings

With the fonts put in, we will choose one of many Themes to make use of or as a place to begin to customise. To view all of the Themes, you need to use the cmdlet Get-PoshThemes. This may present examples of all of the themes in your console.

To put in the theme, I like to recommend saving the JSON file regionally. You possibly can then allow the theme with:

oh-my-posh init pwsh --config 'd:scriptslazyadminlazyadmin.omp.json' | Invoke-Expression

Terminal Icons

The Terminal Icons PowerShell modules actually accomplish the Oh My Publish themes. Terminal Icons will add recordsdata and folder icons (and colours) in your shell. This actually helps with shortly discovering the fitting file or folder.

Terminal Icons PowerShell Module

Terminal Icons makes use of, similar to Oh My Posh, a Nerd Font for all of the icons. If you have already got put in Oh My Posh, then you possibly can merely set up the Terminal Icons module with:

# Set up the module
Set up-Module -Title Terminal-Icons -Repository PSGallery

# Load the module - add this to your PowerShell Profile:
Import-Module -Title Terminal-Icons

If you’re not utilizing Oh My Posh, then just remember to set up a Nerd Font as nicely. You possibly can checkout this information for extra info on methods to get it to work in PowerShell.

ImportExcel – Import and Export Excel

When you may have used PowerShell for fairly someday you then most likely have created an report extra then as soon as. Most will use the Export-CSV cmdlet to export knowledge from PowerShell and use in Excel. However there may be a better method to do that.

The ImportExcel module doesn’t solely assist you to import knowledge from an Excel file, however it will probably additionally export to an Excel, with a completely purposeful desk init as nicely. And it doesn’t cease there, charts, pivot tables, conditional formatting, is all doable.

Export Excel PowerShell Module

To shortly export your knowledge to Excel and format it right into a desk, you need to use the next command:

# First set up the module
Set up-Module -Title ImportExcel

# Get some knowledge and export it to Excel with a formatted desk
Get-EXOMailbox | Export-Excel -AutoSize -BoldTopRow -FreezeTopRow

PSWriteHtml – Export to HTML

Wether you’re utilizing PowerShell to automate duties or to create experiences, you usually want to speak the outcomes. A technique to do that is by sending an e-mail from PowerShell with the outcomes.

However a easy, plain textual content e-mail isn’t going to it anymore. We would like it properly formatted, possibly a desk in it, or some colours. That’s the place HTML is available in. Now you possibly can write and format your personal HTML, however the PowerShell module PSWriteHTML makes it so much simpler for you.

One other nice characteristic of PSWriteHTML is you can shortly export to outcomes to an HTML file. So as a substitute of Out-GridView, now you can use Out-HtmlView, which supplies you an interactive HTML file. From the HTML view you possibly can shortly export it once more to CSV or PDF, or simply share the HTML view if wanted.

Export HTML PowerShell Module

To shortly generate a view like the instance above, you need to use the next PowerShell code:

# Set up the module
Set up-Module -Title PSWriteHTML

# Collect some knowledge and output to HTML
Get-Exomailbox | Out-HtmlView

M365PSProfile – Conserving your Modules up-to-date

The final module that I wished to share along with your is the module M365PSProfile. To objective of this module is to simplify the set up and updating of all of the Microsoft 365 associated PowerShell modules.

Though the intention of the module is to solely handle the Microsoft 365 modules, you can too use it to robotically set up and preserve different modules updated.

The module will test all of the listed modules once you open PowerShell and just remember to have the newest model put in.

Top PowerShell Module M365PSProfile

To get began with the module, you’ll in fact want to put in it first. When executed, you possibly can add an inventory of modules in your PowerShell Profile that you simply wish to preserve up-to-date:

# Set up the module
Set up-Module -Title M365PSProfile -Scope CurrentUser

#Set up or Updates the Modules within the Array
Set up-M365Module -Modules @("ExchangeOnlineManagement","Microsoft.On-line.SharePoint.PowerShell","PnP.PowerShell", "M365PSProfile","Microsoft.Graph","Microsoft.Graph.Beta","Terminal-Icons")

Wrapping Up

PowerShell modules are an effective way to make your work so much simpler or working with PowerShell so much nicer to have a look at. There are in fact much more nice PowerShell modules, these are solely a few of the finest module in my view.

When you’ve got an amazing PowerShell module that you simply extremely suggest, then please let me know within the feedback beneath!

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments