PowerShell: Difference between revisions

From Dave-Wiki
Jump to navigation Jump to search
No edit summary
(Replaced content with "==Updating== # <code>winget search Microsoft.PowerShell</code> # <code>winget install --id Microsoft.PowerShell --source winget</code> ==Check Version== <code>$PSVersionTable.PSVersion</code>")
Tag: Replaced
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
=General=
==Updating==
==Updating==


Line 9: Line 7:


<code>$PSVersionTable.PSVersion</code>
<code>$PSVersionTable.PSVersion</code>
=Users=
==List users==
<code>net user</code>
==Change password of a local user account==
<code>net user [username] [new_password]</code>
==Enable or Disable a local user==
<code>net user [username] /active:yes</code> (or no)

Latest revision as of 21:59, 11 February 2024

Updating

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

Check Version

$PSVersionTable.PSVersion