Sunday, May 5, 2024
HomePowershellPowerShell is enjoyable :) Favourite PowerShell modules that I exploit

PowerShell is enjoyable :) Favourite PowerShell modules that I exploit


Through the course of time, you add modules to your system, some are essential for the stuff you work on and a few had been used solely as soon as 😉 On this weblog publish, I’ll present you my present checklist of modules and let you know why I exploit(d) them…

My at the moment put in modules

Under is the checklist of the modules that I’ve put in at this second, I’ll decide just a few and let you know why you want these in your system.

ActiveDirectory
AIPService
AppBackgroundTask
AppvPkgConverter
AppvSequencer
AssignedAccess
AutoSequencer
Az
Azure.AnalysisServices
Azure.Storage
AzureAD
AzureADPreview
AzureRM
AzViz
BitLocker
BitsTransfer
BranchCache
CimCmdlets
ConfigDefenderPerformance
Configuration
CredentialManager
DefenderPerformance
DeliveryOptimization
DFSN
DirectAccessClientComponents
Dism
DnsClient
DnsServer
DSCParser
EventTracingManagement
ExchangeOnlineManagement
Get-NetView
HgsClient
HgsDiagnostics
Hyper-V
Worldwide
IntuneBackupAndRestore
IntuneDocumentation
IntuneWin32App
Kds
LanguagePackManagement
M365Documentation
Microsoft.Graph
Microsoft.On-line.SharePoint.PowerShell
Microsoft.PowerApps.Administration.PowerShell
Microsoft.PowerShell.Archive
Microsoft.PowerShell.Crescendo
Microsoft.PowerShell.Diagnostics
Microsoft.PowerShell.Host
Microsoft.PowerShell.LocalAccounts
Microsoft.PowerShell.Administration
Microsoft.PowerShell.Operation.Validation
Microsoft.PowerShell.SecretManagement
Microsoft.PowerShell.SecretStore
Microsoft.PowerShell.Safety
Microsoft.PowerShell.Utility
Microsoft.PowerShell.WhatsNew
Microsoft.RDInfra.RDPowershell
Microsoft.Home windows.Bcd.Cmdlets
Microsoft.WSMan.Administration
Microsoft365DSC
MicrosoftTeams
MMAgent
MSAL.PS
MSCloudLoginAssistant
MSCommerce
MSGraph
MSGraphFunctions
MSOnline
NetAdapter
NetConnection
NetEventPacketCapture
NetLbfo
NetNat
NetQos
NetSecurity
NetSwitchTeam
NetTCPIP
NetworkConnectivityStatus
NetworkSwitchManager
NetworkTransition
NFS
oh-my-posh
ORCA
PackageManagement
PcsvDevice
Pester
PKI
PnP.PowerShell
PnpDevice
posh-git
powershell-yaml
PowerShellGet
PrintManagement
ProcessMitigations
Provisioning
ps2exe
PSDiagnostics
PSFramework
PSGraph
PSParseHTML
PSReadLine
PSSlack
PSWindowsUpdate
PSWord
PSWriteWord
ReverseDSC
ScheduledTasks
SecureBoot
Sequencer
SharePointPnPPowerShellOnline
SmbShare
SmbWitness
SqlServer
StartLayout
Storage
StorageQoS
Terminal-Icons
ThreadJob
TLS
TroubleshootingPack
TrustedPlatformModule
UEV
VpnClient
Wdac
Whea
WindowsAutoPilotIntune
WindowsConsoleFonts
WindowsDeveloperLicense
WindowsErrorReporting
WindowsSearch
WindowsUpdate
WinGet

Particular Modules

And sure, that’s an intensive checklist 🙂 So much are simply there as a result of they arrive with Home windows parts/set up, however I believe there are just a few price mentioning within the chapters under.

IntuneBackupAndRestore

Extra choices can be found now for backing up, evaluating, or restoring your Intune configuration however this module from John Seerden (https://github.com/jseerden/IntuneBackupAndRestore) simply works for me. Nice for restoring your configuration in a brand new (check) tenant or for reporting on what was modified if there are points in your buyer’s surroundings 😉

Microsoft365DSC

This module permits organizations to automate the deployment, configuration, reporting, and monitoring of Microsoft 365 Tenants through PowerShell Desired State Configuration. The compiled configuration must be executed from an agent’s Native Configuration Supervisor (LCM) (machine or container) which might talk again remotely to Microsoft 365 through distant API calls (due to this fact requires web connectivity)

That’s a replica/paste from the GitHub web page https://github.com/microsoft/Microsoft365DSC , it’s nice for importing/exporting/evaluating tenant info/configuration. For extra info and the best way to set up it, please go to https://microsoft365dsc.com/

oh-my-posh

Make your PowerShell immediate look good utilizing this module from Jan de Dobbeleer (https://github.com/JanDeDobbeleer/oh-my-posh) You’ll be able to customise it in so some ways, instance screenshot:

posh-git

This reveals the GIT standing in your PowerShell session whereas engaged on issues in your repository, it additionally helps you with GIT instructions as a result of TAB works (git ch + tab modifications to git checkout for instance). Instance screenshot under:

Use install-module posh-git to put in module from Keith Dahlby / https://github.com/dahlbyk/posh-git .

PSParseHTML

This module was a part of PSWriteHTML, however you should utilize it for getting sure knowledge from webpages simply. I’ve used it in just a few scripts that I posted right here, for instance within the Message of the Day script (right here). It has the next features:

  • Convert-HTMLToText
  • ConvertFrom-HtmlTable
  • ConvertFrom-HTMLAttributes (aliases: ConvertFrom-HTMLTag, ConvertFrom-HTMLClass)
  • ConvertFrom-HTML
  • Format-CSS
  • Format-HTML
  • Format-JavaScript
  • Optimize-CSS
  • Optimize-HTML
  • Optimize-JavaScript

I used the ConvertFrom-HTMLClass to get knowledge from a sure HTLM class, which makes scraping knowledge a lot simpler 🙂 Set up the module from EvoTec IT / https://github.com/EvotecIT/PSParseHTML by working install-module PSParseHTML.

PS2EXE

This module from M. Scholtes (https://github.com/MScholtes/PS2EXE) permits you to save PowerShell scripts as an executable. Nice for working issues in closed environments or while you don’t wish to share the contents of a script. Set up it utilizing install-module ps2exe. However there’s one downside, see the word under…

Notice from the writer:
Some (actually) silly idiots appear to have abused PS2EXE to compile their pc virus scripts. Consequently, a quickly rising variety of virus scanners acknowledge packages created with PS2EXE as malicious packages and delete them.

There is just one hope to avoid wasting the PS2EXE challenge: Please ship your (innocent) packages created with PS2EXE through the net varieties from the virus scanners’ distributors for reporting false positives (I’ve already performed it with a few of them, please use solely the false constructive web page)!

What modules do you utilize?

These had been only a few of my at the moment put in modules, which of them do you utilize? Ideas? Let me know 🙂

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments