From 75b9b7a85369735c246c79614f784cadda518ad0 Mon Sep 17 00:00:00 2001 From: admManuel Date: Mon, 26 Feb 2024 10:22:25 +0000 Subject: [PATCH] Update Windows/CertificateRequests.md --- Windows/CertificateRequests.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 = @()