• $ cat "

    Basic Administration of Local Users using PowerShell for Windows Server 2016

    "

    This is a tiny cheat sheet for basic administration of local users on a Windows Server 2016 machine using PowerShell:

    Listing local users and their parameters

    Get-LocalUser | Format-List

    Listing available properties to modify

    Get-Help Set-LocalUser

    Setting a parameter for a local user

    Set-LocalUser somenamehere -Password somepassword

    When setting boolean parameters, remember to use $false and $true, rather than false and true. Otherwise you will get an error due to passing a string instead of a boolean.