This can be due to invalid execution policy. Start elevated PowerShell and type:
Hi Vadmins, how would I go about customising this script to add RFC822 SANs.
I've tried changing the initialize value from 0x3 to 0x2 and that works for some addresses; but if the address is email@example.com for example, a dot is appended to the SAN in the certificate.
After extracting the zip to its own folder in %WINDIR%\System32\WindowsPowerShell\v1.0\Modules, when I launched 'Windows Powershell Modules' I got the following error:
WARNING: File C:\Windows\system32\WindowsPowerShell\v1.0\Modules\ShareUtils\ShareUtils.psm1 cannot be loaded. The contents of file C:\Windows\system32\WindowsPowerShell\v1.0\Modules\ShareUtils\ShareUtils.psm1 may have been tampered because the hash of the file does not match the hash stored in the digital signature. The script will not execute on the system. Please see "get-help about_signing" for more details..
This blog was exactly what I needed. Thanks a ton!
© 2008 - 2019 - Sysadmins LV. All rights reserved