diff --git a/Windows/CertificateRequests.md b/Windows/CertificateRequests.md index c16988f..d5fba93 100644 --- a/Windows/CertificateRequests.md +++ b/Windows/CertificateRequests.md @@ -4,6 +4,9 @@ First we need an installed OpenSSL on the WindowsServer. The CodeSigning Part (Option 5) is not working yet. ```powershell +### Modules +Import-Module ActiveDirectory + ### variables $openSSLDir = "C:\Program Files\OpenSSL-Win64\bin" @@ -165,7 +168,6 @@ function yealinks([string]$pass) { $TEMP = "RadiusZertifikat(keyexport)" $certStorage = "$($share)\$($TEMP)\yealinks\$(Get-Date -UFormat %Y-%m-%d_%H%M%S)\" New-Item -Path $certStorage -Type Directory -Force | Out-Null - Import-Module ActiveDirectory ### adjust the SearchBase $users = Get-ADUser -SearchBase "OU=Users,DC=mydomain,DC=local" -Filter * -Properties * $ext = @()