We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5cda21 commit 48ad8e0Copy full SHA for 48ad8e0
provision/03_populate_AD.ps1
@@ -39,10 +39,11 @@ Add-DnsServerResourceRecord -ZoneName lab.local -A -Name www -IPv4Address $IISIP
39
# Netscaler KCD service account
40
# Note: the account's SPN is not meaningful, it just allows us to activate delegation
41
Write-Host "Creating Netscaler Account..."
42
+# 'ServicePrincipalNames' must be set for KCD to work
43
$User = New-ADUser -Name "Netscaler Service Account" `
44
-SamAccountName ns_svc -UserPrincipalName ns_svc@lab.local `
45
-AccountPassword (convertto-securestring "Passw0rd" -asplaintext -force) `
- -ServicePrincipalNames host/nsdbg ` # Must be set for KCD to work
46
+ -ServicePrincipalNames host/nsdbg `
47
-PasswordNeverExpires $True `
48
-PassThru
49
0 commit comments