Skip to main content

Visual Studio Auto Update

Summary​

This script performs auto updates for Visual Studio.
It is compatible with the following applications:

  • VS 2022 Enterprise
  • VS 2022 Community
  • VS 2019 Enterprise
  • VS 2019 Community
  • VS 2017 Enterprise
  • VS 2017 Community

Sample Run​

Sample Run

Dependencies​

Agnostic - Visual Studio Auto Update

Variables​

Document the various variables in the script. Delete any section that is not relevant to your script.

NameDescription
@ProjectName@This contains the agnostic PowerShell script name and sets that as a project and working directory to C:/ProgramData/_Automation/Script/@ProjectName@.
@WorkingDirectory@This is a directory where the agnostic script downloads and its logging is stored. The directory path is C:/ProgramData/_Automation/Script/@ProjectName@.
@PS1Log@This stores the PowerShell informational logs for validation and saves them in the @WorkingDirectory@ folder with the name: @ProjectName@-log.txt.
@PS1ErrorLog@This contains the PowerShell error logs for validation and saves them in the @WorkingDirectory@ folder with the name: @ProjectName@-error.txt.
@ErrorLog@This contains the content of the error log file, i.e., @ProjectName@-error.txt.

Output​

  • Script log

Changelog​

2025-04-10​

  • Initial version of the document