Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save irelandjoe/25e99695605957e8ccd06b1115e3aa70 to your computer and use it in GitHub Desktop.

Select an option

Save irelandjoe/25e99695605957e8ccd06b1115e3aa70 to your computer and use it in GitHub Desktop.
HOL-0243-01 - 5 - Configure prerequisites
$AsHCIOUName="OU=ALClus01,DC=Corp,DC=contoso,DC=com"
$LCMUserName="ALClus01-LCMUser"
$LCMPassword="LS1setup!LS1setup!"
#Create LCM credentials
$SecuredPassword = ConvertTo-SecureString $LCMPassword -AsPlainText -Force
$LCMCredentials= New-Object System.Management.Automation.PSCredential ($LCMUserName,$SecuredPassword)
#create objects in Active Directory
#install posh module for prestaging Active Directory
Install-PackageProvider -Name NuGet -Force
Install-Module AsHciADArtifactsPreCreationTool -Repository PSGallery -Force
#make sure active directory module and GPMC is installed
Install-WindowsFeature -Name RSAT-AD-PowerShell,GPMC
#populate objects
New-HciAdObjectsPreCreation -AzureStackLCMUserCredential $LCMCredentials -AsHciOUName $AsHCIOUName
#to check OU (and future cluster) in GUI install management tools
Install-WindowsFeature -Name "RSAT-ADDS","RSAT-Clustering"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment