Skip to content

Instantly share code, notes, and snippets.


Mihai Dumitru mihaimyh

View GitHub Profile
mihaimyh / Program.cs
Created Feb 18, 2022
Get Active Directory groups for an user
View Program.cs
using Novell.Directory.Ldap;
var ldapMnanger = new LDAPManager();
ldapMnanger.GetUserGroups("mihai", new LdapConnectionDetails("", "local\\user", "password"));
public class LdapConnectionDetails
public LdapConnectionDetails(string hostName, string username, string password, int port = 636)
HostName = hostName;
mihaimyh / Service KMS
Created Jan 6, 2021 — forked from judero01col/Service KMS
Volume License Activation Key Service - KMS
View Service KMS
## Find Available Target Editions
DISM.exe /Online /Get-TargetEditions
## Convert Server Standard 2019 Evaluation to Server Standard 2019
DISM /online /Set-Edition:ServerStandard /ProductKey:N69G4-B89J2-4G8F4-WWYCC-J464C /AcceptEula
## How To Activate
slmgr /skms [server]:[port]
slmgr /ato

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096