• Stars
    star
    301
  • Rank 138,451 (Top 3 %)
  • Language
    PowerShell
  • License
    Microsoft Public ...
  • Created almost 6 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

PowerShell module to get and set Visual Studio Community Edition license expiration date in registry

📜 VSCELicense

Important notes

ℹī¸ Visual Studio Enterprise Edition support was provided in this fork which is now removed by the author: l3afblow3r/VSEELicense

⚠ Visual Studio Community 2022 seems to have no time limit, see this issue for details: #14 | VS 2022 support

Details

PowerShell module to get and set the Visual Studio Community Edition license expiration date in the registry. Visual Studio 2013, 2015, 2017, and 2019 are supported.

Based on Dmitrii's answer to this Stack Overflow question: Visual Studio Community 2017 is a 30 day trial?

Usage

  1. Download/clone this repository

  2. Run PowerShell.exe or pwsh.exe as the Administrator

  3. Import module:

    Assuming that you cloned/downloaded this repo to C:\VSCELicense

    Import-Module -Name 'C:\VSCELicense\VSCELicense.psd1'

    If you get execution of scripts is disabled on this system message, you can temporarily override PowerShell execution policy by running

    Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process

    See PowerShell documentation for more details:

Examples

Get Visual Studio Community Edition license expiration date

All supported versions of Visual Studio.

Get-VSCELicenseExpirationDate

One specific version of Visual Studio.

Get-VSCELicenseExpirationDate -Version 2017

Multiple versions of Visual Studio.

Get-VSCELicenseExpirationDate -Version 2019, 2017

Set Visual Studio Community Edition license expiration date

⚡ Writing to the Visual Studio license registry key requires elevated permissions. Run PowerShell as administrator for examples to work.

Set a license expiration date to 31 days from now

All supported versions of Visual Studio.

Set-VSCELicenseExpirationDate

One specific version of Visual Studio.

Set-VSCELicenseExpirationDate -Version 2017

Multiple versions of Visual Studio.

Set-VSCELicenseExpirationDate -Version 2019, 2017

Set license expiration date to 10 days from now

All supported versions of Visual Studio.

Set-VSCELicenseExpirationDate -AddDays 10

One specific version of Visual Studio.

Set-VSCELicenseExpirationDate -Version 2017 -AddDays 10

Multiple versions of Visual Studio.

Set-VSCELicenseExpirationDate -Version 2019, 2017 -AddDays 10

Set a license expiration date to current date

⚡ This will immediately expire your license and you wouldn't be able to use Visual Studio.

All supported versions of Visual Studio.

Set-VSCELicenseExpirationDate -AddDays 0

One specific version of Visual Studio.

Set-VSCELicenseExpirationDate -Version 2017 -AddDays 0

Multiple versions of Visual Studio.

Set-VSCELicenseExpirationDate -Version 2019, 2017 -AddDays 0

Changelog

  • 0.0.9 - Added VS 2013 support (@andreburto)
  • 0.0.8 - Make it easier to use by not requiring to specify the Visual Studio version
  • 0.0.7 - Added VS 2015 support (@GDI123)
  • 0.0.6 - Load System.Security assembly if the module was imported without manifest
  • 0.0.5 - Duh, actually set PowerShellVersion = '3.0' in manifest
  • 0.0.4 - Support downlevel PowerShell versions, starting from 3.0
  • 0.0.3 - Fixed manifest to avoid execution errors under fresh PowerShell environments (@1Dimitri)
  • 0.0.2 - Added VS 2019 support
  • 0.0.1 - Initial commit, VS 2017 support

More Repositories

1

toptout

📡 Easily opt-out from telemetry collection
PowerShell
135
star
2

Powershell-Misc

Miscellaneous PowerShell goodies
PowerShell
61
star
3

PSDockerHub

PSDockerHub is a PowerShell module written to access the official Docker Hub/Registry
PowerShell
14
star
4

rancher-graylog

Quickly deploy Graylog 2.x in Rancher 1.6x
11
star
5

detect-batch-subshell

Detect if script is run in the batch subshell: cmd.exe /c script.cmd
Batchfile
6
star
6

Ori-Controller-Remap

It's almost impossible to play Ori and the Blind Forest with non-XBOX gamepad: all buttons are messed up and Unity's built-in remapper doesn't work properly (you can't rebind jump button). This tool is intended to fix it.
PowerShell
5
star
7

firewatch-fov-changer

App to change FOV in Firewatch
C#
5
star
8

POSH-swagger-codegen

Generate PowerShell module from OpenAPI spec using Swagger Codegen
PowerShell
4
star
9

WssCompressedStructure

PowerShell module to get/set XML Schema and Content Types for SharePoint list directly in the content database.
PowerShell
3
star
10

GUILess-Reflexil

This is a stripped down version of the Reflexil (http://reflexil.net). It's main purpose is to be able to inject/patch a .Net code without GUI-mode Reflexil plugin.
C#
3
star
11

SubGit-Portable

Directory structure and batch scripts to create portable SubGit install with JRE.
Batchfile
2
star
12

Nascar_Heat

Nascar Heat reverse engineering resources
PowerShell
2
star
13

PsIniParser

Import/export/convert INI files or strings to hashtables or objects and vice versa
PowerShell
2
star
14

Dply-POSH

Try PowerShell on Linux in your browser
Shell
1
star
15

OpenVPN-Detour

Kludge for OpenVPN clients that can't handle large amount of pushed routes
Shell
1
star