GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Main Page
  • Browse
  • Recent changes
  • Guided tours
  • Random
  • Help
  • Portal
  • Colloquium
  • News
  • Projects
  • Sandbox
  • Search
  • Donate
  • Create account

This view

  • Original page
  • New address

GeezerVison is showing en.wikiversity.org — PowerShell/Examples/Install-VisualStudioCode - Wikiversity

< PowerShell | Examples
# This script downloads and installs Visual Studio Code.

function Install-VisualStudioCode {
    Write-Host "Downloading Visual Studio Code..."
    $Path = $env:TEMP
    $Installer = "VSCodeUserSetup-x64.exe"
    $URL = "https://aka.ms/win32-x64-user-stable"
    Invoke-WebRequest $URL -OutFile $Path\$Installer

    Write-Host "Installing Visual Studio Code..."
    Start-Process -FilePath $Path\$Installer -Args "/silent /mergetasks=!runcode" -Verb RunAs -Wait
    Remove-Item $Path\$Installer
}

Install-VisualStudioCode

See Also

  • PowerShell
Retrieved from "https://en.wikiversity.org/w/index.php?title=PowerShell/Examples/Install-VisualStudioCode&oldid=2141637"
Category:
  • PowerShell
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.