Sign PowerShell CmdLet 

Set-ExecutionPolicy AllSigned –Force

Get a certificate from the local storage as a separate object for the current user:

$cert = (Get-ChildItem cert:\CurrentUser\my –CodeSigningCert)[0]

Then sign the script using this certificate:

Set-AuthenticodeSignature -Certificate $cert -FilePath C:\PS\testscript.ps1

X.500 OID Generation VB Script

Export File Shares and their permissions

From the HKEY_LOCAL_MACHINE subtree, go to the following key: