handy_windows_commands

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
handy_windows_commands [2022/07/12 14:29] mguptonhandy_windows_commands [2022/08/10 21:31] (current) mgupton
Line 13: Line 13:
  
 ====== Install VS Code ====== ====== Install VS Code ======
 +
 +<code powershell>
 +Save-Script install-vscode -path $env:TEMP
 +$env:temp\install-vscode.ps1
 +</code>
 +
 +=== Alt ===
 <code powershell> <code powershell>
 Install-Script -Name Install-VSCode Install-Script -Name Install-VSCode
 </code> </code>
  
 +====== Install Notepad++ ======
 +<code powershell>
 +$LocalTempDir = $env:TEMP
 +$href = ((Invoke-WebRequest -Uri 'https://notepad-plus-plus.org/downloads/').Links | Where-Object { $_.innerText -match 'current version' }).href
 +$downloadUrl = ((Invoke-WebRequest "https://notepad-plus-plus.org/$href").Links | Where-Object { $_.innerHTML -match 'installer' -and $_.href -match 'x64.exe' }).href
 +Invoke-RestMethod $downloadUrl -OutFile "$LocalTempDir/np++.exe"
 +start-process -FilePath "$LocalTempDir\np++.exe" -ArgumentList '/S' -Verb runas -Wait
 +</code>
  
  
  • handy_windows_commands.1657636152.txt.gz
  • Last modified: 2022/07/12 14:29
  • by mgupton