Skip to main content

Manage - .net Runtimes

Summary

This script ensures that the system is running the latest supported versions of .NET runtimes and SDKs while removing unsupported versions to maintain a clean and secure environment. It manages the installation, uninstallation, and listing of .NET runtimes and SDKs on a Windows system.

NOTE:

  • Uninstalling/Installing SDK will uninstall/Install the associated version of AspNetCoreRuntime, DesktopRuntime and Runtime
  • Uninstalling/Installing DesktopRuntime will Uninstall/Install the associated version of Runtime

Dependencies

Sample Run

Sample Run

User Parameters

NameExampleMandatoryDescription
ActionList
Install
Uninstall
Renew
FalseSpecifies the action to perform. Valid values are:
  • list: Lists all installed .NET runtimes and SDKs.
  • install: Installs the latest supported versions of .NET runtimes and SDKs.
  • uninstall: Uninstalls unsupported or specific versions of .NET runtimes and SDKs.
  • renew: Removes all unsupported versions of .NET runtimes and SDKs and installs the latest available version.
Note: Default Action is list
TypeSdk
Runtime
Desktopruntime
aspNetCoreRuntime
all
FalseSpecifies the type of .NET component to manage. Valid values are:
  • sdk: Manages .NET SDKs.
  • runtime: Manages .NET runtimes.
  • desktopRuntime: Manages .NET desktop runtimes.
  • aspNetCoreRuntime: Manages ASP.NET Core runtimes.
  • all: Manages all .NET components.
Note: Default Type is desktopRuntime

Output

  • Script Logs