handy_windows_commands

Differences

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

Link to this comparison view

Next revision
Previous revision
handy_windows_commands [2022/07/07 20:30] – created mguptonhandy_windows_commands [2022/08/10 21:31] (current) mgupton
Line 1: Line 1:
 ====== Handy Windows Commands ====== ====== Handy Windows Commands ======
  
-====== Installing Edge Browser ======+====== Install Edge Browser ======
  
 <code powershell> <code powershell>
Line 7: Line 7:
 $Download = join-path $env:temp\edgeinstall MicrosoftEdgeEnterpriseX64.msi $Download = join-path $env:temp\edgeinstall MicrosoftEdgeEnterpriseX64.msi
 Invoke-WebRequest 'https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/a2662b5b-97d0-4312-8946-598355851b3b/MicrosoftEdgeEnterpriseX64.msi' -OutFile $Download Invoke-WebRequest 'https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/a2662b5b-97d0-4312-8946-598355851b3b/MicrosoftEdgeEnterpriseX64.msi' -OutFile $Download
-Start-Process "$Download" -ArgumentList "/quiet"+Start-Process "$Download" 
 +# alt: 
 +Start-Process "$Download" -ArgumentList "/quiet" 
 +</code> 
 + 
 +====== Install VS Code ====== 
 + 
 +<code powershell> 
 +Save-Script install-vscode -path $env:TEMP 
 +$env:temp\install-vscode.ps1 
 +</code> 
 + 
 +=== Alt === 
 +<code powershell> 
 +Install-Script -Name Install-VSCode 
 +</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> </code>
  
  
  • handy_windows_commands.1657225835.txt.gz
  • Last modified: 2022/07/07 20:30
  • by mgupton