Skip to content

Commit

Permalink
Managing CMAccounts data
Browse files Browse the repository at this point in the history
  • Loading branch information
NEllis280 committed Nov 4, 2020
1 parent 7a127c7 commit e40b5b1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions source/Examples/PrimaryInstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ Configuration PrimaryInstall
$SiteCode = 'PRI'
$SiteName = 'Contoso'
$ConfigMgrVersion = 2006
$CMAccounts = @(
New-Object System.Management.Automation.PSCredential('contoso\SCCM-Network', $(Convertto-SecureString -AsPlainText -String 'Generic' -Force))
New-Object System.Management.Automation.PSCredential('contoso\SCCM-ClientPush', $(Convertto-SecureString -AsPlainText -String 'Generic' -Force))
New-Object System.Management.Automation.PSCredential('contoso\SCCM-AdJoin', $(Convertto-SecureString -AsPlainText -String 'Generic' -Force))
)

$serverShortName = $ServerName.Split('.')[0]

Expand All @@ -105,7 +110,7 @@ Configuration PrimaryInstall
$winPeProductID = '353df250-4ecc-4656-a950-4df93078a5fd'
}

#SCCM PreReqs
# SCCM PreReqs
xSccmPreReqs SCCMPreReqs
{
InstallAdk = $true
Expand Down Expand Up @@ -253,7 +258,7 @@ Configuration PrimaryInstall
DependsOn = '[xSccmInstall]SccmInstall'
}

#region ConfigCBMgr configurations
# region ConfigCBMgr configurations
foreach ($account in $CMAccounts)
{
CMAccounts "AddingAccount-$($account.Username)"
Expand Down

0 comments on commit e40b5b1

Please sign in to comment.