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

https://gallery.technet.microsoft.com/scriptcenter/X500-OID-Generation-VB-0228e242


Export File Shares and their permissions

From the HKEY_LOCAL_MACHINE subtree, go to the following key:

SYSTEM\CurrentControlSet\Services\LanmanServer\Shares

https://support.microsoft.com/en-us/help/125996/saving-and-restoring-existing-windows-shares?wa=wsignin1.0