TECHNIG
Gateway for IT Experts and Tech Geeks

How to Manage Local Users and Groups with PowerShell?

Currently PowerShell doesn’t have a builtin cmdlets for local users and groups. In order to manage local users groups using PowerShell, the ‘LocalAccount” module must be installed on Windows 10. This module allows you to managing local user accounts and Groups with PowerShell. I have tested this PowerShell module on Windows 10 and works perfectly. You can use the LocalAccount PowerShell module on other Windows clients and Windows Servers as well.

Manage Local Users Groups Using PowerShell

Before you begin to manage local users groups using PowerShell, you must install the LocalAccount module on your system. In order to install this module follow the step by step guide.

1. Start Windows PowerShell with the “Run as Administrator” and type “FIND-Module localaccount | INSTALL-Module” and press enter to start installing the module.

Install Local Users and Groups PowerShell Module
Install Local Users and Groups PowerShell Module

2. When prompts about installing prerequisite software for running localaccount module, type “Y” and press enter to accept it. Next one type “Y” to accept installing module.

3. Now the PowerShell localaccount module has been downloaded and installed successfully. Before you import the module, you need to change the policy to enable installing unsigned PowerShell scripts. To enable execute policy type “Set-ExecutePolicy RemoteSigned” and press enter.

Enable Execution of PowerShell Scripts on Local Computer
Enable Execution of PowerShell Scripts on Local Computer

This will allow you to run unsigned scripts that you write on your local computer or downloaded from internet.

Note: For security of you system, never download scripts from non-trusted repository for PowerShell.

4. Now you can import the localacount module using “Import-Module localaccount” command. Just type the command and press enter.

Import Module in PowerShell Windows 10
Import Module in PowerShell Windows 10

5. To list or retrieve the available commands of localaccount module, type “Get-Command -Module localaccount” and press enter.

Manage Local Users Groups Using PowerShell - Technig
Manage Local Users Groups Using PowerShell – Technig

That’s all commands of localaccount module. These commands are all pretty clear and undrestandable. Try to use them for managing Users and Groups with PowerShell on Windows 10 and Windows Server.

If you have any problem with these module, feel free to ask and share the issues you have with.

1 Comment
  1. Best unmanaged dedicated says

    May I just say what a relief to uncover somebody who actually knows
    what they are talking about over the internet. You certainly realize how to bring
    an issue to light and make it important. More and more people ought to check this out
    and understand this side of your story. I was surprised that you’re not more
    popular because you certainly possess the gift.

Leave A Reply

Your email address will not be published.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More

where to buy viagra buy generic 100mg viagra online
buy amoxicillin online can you buy amoxicillin over the counter
buy ivermectin online buy ivermectin for humans
viagra before and after photos how long does viagra last
buy viagra online where can i buy viagra