How to Configure and Manage PowerShell in Windows 11 for Administrators

How to Update Local Help with Update-Help

PowerShell has an Update-Help feature that works to update the help documentation of the modules that are already installed. You can use Group Policy to set up a local repository as the source of updates, so you don’t have to download from the internet.

Manual steps using Update-Help:

1. Create a local repository for the help file.

2. Define the local repository with the following command:

Save-Help -DestinationPath “C:\HelpRepo”

3. Update help using local repositories:

Update-Help -SourcePath “C:\HelpRepo”

Recommendations for Frequently Used Modules and Scripts

To increase productivity and automate administrative tasks, here are some recommended modules of PowerShell:

1. NTFSSecurity

Function: Easily manage ACLs (Access Control Lists) on files and folders.

Example command:

Get-NTFSAccess -Path “C:\ContohFolder”

2. PSWindowsUpdate

Its function: Manage Windows updates via PowerShell.

Installation:

Install-Module -Name PSWindowsUpdate

3. ActiveDirectory

Function: Manage Active Directory such as users, groups, and policies.

Example command:

Get-ADUser -Filter * -Properties  DisplayName

4. Pester

Function: Testing PowerShell scripts and modules to ensure code quality.

Installation:

Install-Module -Name Pester

5. ImportExcel

Function: Manage Excel data without the need to open the Excel application.

Example command:

Import-Excel -Path “C:\Data.xlsx” | Select-Object  Name, Age

Latest Articles