Created
December 23, 2014 23:35
-
-
Save techbunny/1e13c224d71cc1622085 to your computer and use it in GitHub Desktop.
The Imperfect Lab: Static IPs
This file contains 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
# You can double check that an address is free with: | |
Test-AzureStaticVNetIP –VNetName ImperfectNet –IPAddress 192.168.1.5 | |
# To set the static address, I used: | |
Get-AzureVM -ServiceName ImperfectCore -Name DC-Cloud1 | Set-AzureStaticVNetIP -IPAddress "192.168.1.4" | Update-AzureVM | |
# Kick off the addition of my second domain controller in this domain, I used: | |
Install-ADDSDomainController -Credential (Get-Credential) -DatabasePath 'C:\Windows\NTDS' -DomainName 'imperfectlab.com' | |
-InstallDns:$true -LogPath 'C:\Windows\NTDS' -NoGlobalCatalog:$false -SiteName 'ImperfectNet' -SysvolPath 'C:\Windows\SYSVOL' | |
-NoRebootOnCompletion:$true -Force:$true -Verbose |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment