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.
I'm finding that the x86 version of PowerShell is unable to see the LocalAccounts module.
The solution is to run the x64 version of PowerShell (which is the one marked with neither x86 nor x64).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With