PowerShell

From Dave-Wiki
Revision as of 14:59, 19 November 2023 by Dave (talk | contribs)
Jump to navigation Jump to search

General

Updating

  1. winget search Microsoft.PowerShell
  2. winget install --id Microsoft.PowerShell --source winget

Check Version

$PSVersionTable.PSVersion

Users

List users

net user

Change password of a local user account

net user [username] [new_password]

Enable or Disable a local user

net user [username] /active:yes (or no)