New to PS and trying to follow along a tutorial which runs the Get-NetFirewallRule command. Seems I do not have the module installed. After searching it seems this is part of the NetSecurity packages, but I do not have this package installed. Attempted to install it, but it failed. Looking for guidance on what to do next?
PS H:> Get-Module NetSecurity -ListAvailable
PS H:> Install-Module NetSecurity
PackageManagement\Install-Package : No match was found for the specified search criteria and module name ‘NetSecurity’. Try
Get-PSRepository to see all available registered module repositories.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\220.127.116.11\PSModule.psm1:1772 char:21
- … $null = PackageManagement\Install-Package @PSBoundParameters
- CategoryInfo : ObjectNotFound: (Microsoft.Power…InstallPackage:InstallPackage) [Install-Package], Exception
- FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
PS H:> Get-PSRepository
Name InstallationPolicy SourceLocation
PSGallery Untrusted https://www.powershellgallery.com/api/v2