User Tools

Site Tools


windows:powershell

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
windows:powershell [2024/12/27 15:29] – created bstaffordwindows:powershell [2025/03/03 16:38] (current) bstafford
Line 7: Line 7:
 <code>winget install microsoft.powershell</code> <code>winget install microsoft.powershell</code>
 <code>Install-Module -Name ibPS</code> <code>Install-Module -Name ibPS</code>
 +===== Run from CMD =====
 +<code>powershell "& ""C:\Users\username\Downloads\script.ps1"""</code>
  
 +You can add ''-noexit'' before the other parameters to keep yourself in PowerShell. 
 +===== Upgrading ===== 
 +Show updates 
 +<code>winget search Microsoft.PowerShell</code> 
 +Example output 
 +<code>PS C:\Users\owner> winget search Microsoft.PowerShell 
 +Name               Id                           Version Source 
 +--------------------------------------------------------------- 
 +PowerShell         Microsoft.PowerShell         7.5.0.0 winget 
 +PowerShell Preview Microsoft.PowerShell.Preview 7.6.0.2 winget</code> 
 +Upgrade 
 +<code>winget install --id Microsoft.Powershell --source winget</code> 
 +Example output 
 +<code>PS C:\Users\owner> winget install --id Microsoft.Powershell --source winget 
 +Found PowerShell [Microsoft.PowerShell] Version 7.5.0.0 
 +This application is licensed to you by its owner. 
 +Microsoft is not responsible for, nor does it grant any licenses to, third-party packages. 
 +Downloading https://github.com/PowerShell/PowerShell/releases/download/v7.5.0/PowerShell-7.5.0-win-x64.msi 
 +  ██████████████████████████████   107 MB /  107 MB 
 +Successfully verified installer hash 
 +Starting package install... 
 +Installation abandoned</code>
 ===== Version ===== ===== Version =====
 <code>$PSVersionTable</code> <code>$PSVersionTable</code>
 +===== Resolve DNS =====
 +<code>Resolve-DnsName infoblox.com</code>
windows/powershell.1735313352.txt.gz · Last modified: by bstafford