Format:
Recent snippets matching tags of inishtech slps licensing licensestores diagnostics
#requires get-interface from http://www.nivot.org/2009/03/26/PowerShell20CTP3ModulesInPracticeNETInterfaces.aspx # this needs to be program files x86 if in 64 bit context $runtimeDir="$($env:ProgramFiles)\Inishtech SLP Code Protector" add-type -path "$runtimeDir\Microsoft.Licensing.Runtime2.0.DLL" #NB if you leave this empty, you'll only see the memory store $shortCode = "abc12" $r = new-object Microsoft.Licensing.SLMRuntime $shortCode $ls = get-interface $r.LicenseStores ([Microsoft.Licensing.ISLMLicenseStores]) $localStores=$ls.MachineStore $localStores | %{get-interface $_ ([Microsoft.Licensing.ILicenseStore])}
150 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
