Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get-LocalGroup cmdlet Get-LocalGroup : The term 'Get-LocalGroup' is not recognized as the name of a cmdlet,

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.

like image 877
Jason Avatar asked Sep 15 '25 20:09

Jason


1 Answers

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).

like image 99
GaTechThomas Avatar answered Sep 17 '25 18:09

GaTechThomas