Format:
Recent snippets matching tags of powershell slps inishtech online activation licensing
#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" $shortCode = "abc12" $r = new-object Microsoft.Licensing.SLMRuntime $shortCode $a = get-interface $r.Activation ([Microsoft.Licensing.ISLMActivation]) $ac = get-interface $a.CreateActivationClient("Product","1.0") ([Microsoft.Licensing.IActivationClient]) $activationKey="29KV3-E4T9M-WDTTD-KNVZB-YUVZZ" $ac.Activate( $activationKey, "")
188 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
