Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

Local account deactivation using Powershell

$
0
0

Hello Spiceheads,

I need to activate and deactivate a user account on a standalone Windows 7 Pro workstation, using Powershell. I can do this for AD accounts, but can it be done with a Powershell script that will prompt for the username and the expiration date and time?

I am very new to Powershel scripting.

Thank you.

Okei Okusogu


Viewing all articles
Browse latest Browse all 15370

Trending Articles