Last active
April 2, 2025 14:50
-
-
Save irelandjoe/25e99695605957e8ccd06b1115e3aa70 to your computer and use it in GitHub Desktop.
HOL-0243-01 - 5 - Configure prerequisites
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $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