Skip to content

Commit

Permalink
Update Schedule-Meerkat.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyPhipps authored Nov 8, 2023
1 parent a3fc2e4 commit 65d0a1d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Utilities/Schedule-Meerkat.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ if(-not $MSAExists) {
Add-KdsRootKey -EffectiveTime ((Get-Date).AddHours(-10))
}

$Identity = Get-ADComputer -identity $Server
New-ADServiceAccount -Name $MSAName -Enabled $true -RestrictToSingleComputer -KerberosEncryptionType AES256
Add-ADComputerServiceAccount -Identity $Identity -ServiceAccount $MSAName

Install-ADServiceAccount -Identity ($MSAName + "$")
}

# Create the Scheduled Task
$Identity = Get-ADComputer -identity $Server
Expand Down

0 comments on commit 65d0a1d

Please sign in to comment.