PowerShell 03 Enabling and Disabling LocalUser Accounts

preview_player
Показать описание
In this video, I go over enabling and disabling local users via PowerShell
Commands covered in the video
1) Get-Command
2) Get-LocalUser
3) Get-Member
3) Set-LocalUser
4) Select-Object
5) Where-Object
6) Disable-LocalUser

0:00 Intro and Get-Command
0:55 Using Get-LocalUser to see local accounts
1:02 Using Get-Member to view the available properties
1:55 Using Enable-LocalUser to enable disabled accounts
2:47 Using the pipeline to enable multiple user accounts at the same time
4:33 Disabling multiple accounts via the pipeline and Disable-LocalUser
5:17 Disabling a single account with Disable-LocalUser
Рекомендации по теме
Комментарии
Автор

What should i do if 'get-localuser' is not recognized by powershell? The command is not displayed when i type in 'Get-Command -noun LocalUser'

farrukh