GithubHelp home page GithubHelp logo

classicvalues / vscelicense Goto Github PK

View Code? Open in Web Editor NEW

This project forked from circleci/vscelicense

0.0 1.0 0.0 28 KB

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

License: Microsoft Public License

PowerShell 100.00%

vscelicense's Introduction

๐Ÿ“œ VSCELicense

Details

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

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

Usage

  1. Download/clone this repository

  2. Run PowerShell.exe as 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 license expiration date to 31 day 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 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.8 - Make it easier to use by not requiring to specify Visual Studio version
  • 0.0.7 - Added 2015 support (@GDI123)
  • 0.0.6 - Load System.Security assembly if 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 2019 support
  • 0.0.1 - Initial commit, 2017 support

vscelicense's People

Contributors

beatcracker avatar semanticallynull avatar 1dimitri avatar gdi123 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.