I know that Get-LocalGroup cmdlet is in the Microsoft.PowerShell.LocalAccounts module. I tried to import that module using the command
Get-Module Microsoft.Powershell.LocalAccounts
No error after the command is executed, but when I type Get-Module to see list of modules loaded into my current session, I don't see a module Microsoft.Powershell.LocalAccounts loaded.
Not sure what to do to load that module so that I can use the Get-LocalGroups cmdlet.