fix vista kms4k, add reset support

This commit is contained in:
2025-03-02 19:02:36 -05:00
parent 6d759899d8
commit f2ad15e5a2
6 changed files with 42 additions and 16 deletions

View File

@ -5,11 +5,14 @@ namespace LibTSforge.Modifiers
using LibTSforge.PhysicalStore;
using LibTSforge.SPP;
using LibTSforge;
using System;
public static class KeyChangeLockDelete
{
public static void Delete(PSVersion version, bool production)
{
if (version == PSVersion.Vista) throw new NotSupportedException("This feature is not supported on Windows Vista/Server 2008.");
SPPUtils.KillSPP(version);
Logger.WriteLine("Writing TrustedStore data...");
using (IPhysicalStore store = SPPUtils.GetStore(version, production))