Payloadscripts act on 'deployment.type'
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-01-27 12:12:44 +01:00
parent bd0423e701
commit 09f36ea66a
13 changed files with 55 additions and 33 deletions

View File

@ -4,8 +4,8 @@ Param(
[hashtable]$Parameter
)
# Only executed on primary Domain Controller
If ((Get-WmiObject -Class 'Win32_ComputerSystem').DomainRole -eq 5) {
# Only executed on primary or standalone Domain Controller
If (@('primary','standalone') -contains $Parameter['deployment.type']) {
$PSDrive = Get-PSDrive -Name 'AD'
If ([boolean]$PSDrive -eq $False) {
$NewPSDriveSplat = @{