<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.twig.es/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.twig.es/index.php?action=history&amp;feed=atom&amp;title=Creating_a_new_Active_Directory_forest_with_Powershell</id>
		<title>Creating a new Active Directory forest with Powershell - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.twig.es/index.php?action=history&amp;feed=atom&amp;title=Creating_a_new_Active_Directory_forest_with_Powershell"/>
		<link rel="alternate" type="text/html" href="https://wiki.twig.es/index.php?title=Creating_a_new_Active_Directory_forest_with_Powershell&amp;action=history"/>
		<updated>2026-05-06T19:13:39Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.0</generator>

	<entry>
		<id>https://wiki.twig.es/index.php?title=Creating_a_new_Active_Directory_forest_with_Powershell&amp;diff=3958&amp;oldid=prev</id>
		<title>George2: Created page with &quot;Reference - http://www.out-null.eu/2014/06/13/howto-creating-new-active-directory-forest-with-powershell/   &lt;source lang=&quot;powershell&quot;&gt; Install-WindowsFeature AD-Domain-Service...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.twig.es/index.php?title=Creating_a_new_Active_Directory_forest_with_Powershell&amp;diff=3958&amp;oldid=prev"/>
				<updated>2017-12-09T11:14:18Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;Reference - http://www.out-null.eu/2014/06/13/howto-creating-new-active-directory-forest-with-powershell/   &amp;lt;source lang=&amp;quot;powershell&amp;quot;&amp;gt; Install-WindowsFeature AD-Domain-Service...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Reference - http://www.out-null.eu/2014/06/13/howto-creating-new-active-directory-forest-with-powershell/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;powershell&amp;quot;&amp;gt;&lt;br /&gt;
Install-WindowsFeature AD-Domain-Services –IncludeManagementTools&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;powershell&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
$DomainName = &amp;quot;smelly.socks&amp;quot;&lt;br /&gt;
$DomainNETBIOSName = &amp;quot;SMELLY&amp;quot;&lt;br /&gt;
$DomainMode = &amp;quot;Win2012R2&amp;quot;&lt;br /&gt;
$ForestMode = &amp;quot;Win2012R2&amp;quot;&lt;br /&gt;
$DBPath = &amp;quot;C:\NTDS&amp;quot;&lt;br /&gt;
$LogPath = &amp;quot;C:\NTDS&amp;quot;&lt;br /&gt;
$SysvolPath = &amp;quot;C:\Sysvol&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
Write-host &amp;quot;Installing AD Domain Services feature&amp;quot; -foregroundcolor yellow&lt;br /&gt;
$command = Install-WindowsFeature AD-Domain-Services –IncludeManagementTools&lt;br /&gt;
if ($command.Success -eq $true)&lt;br /&gt;
{&lt;br /&gt;
Write-host &amp;quot;AD Domain Services feature was installed successfully&amp;quot; -foregroundcolor green&lt;br /&gt;
Write-host &amp;quot;Installing New AD forest : $DomainName&amp;quot; -foregroundcolor yellow&lt;br /&gt;
$SafeModePass = Read-Host -AsSecureString -Promtp &amp;quot;Please enter safe mode administrator password&amp;quot;&lt;br /&gt;
$command = Install-ADDSForest -DomainName $DomainName -DomainNetbiosName $DomainNetbiosName -SafeModeAdministratorPassword $SafeModePass -DatabasePath $DBPath -LogPath $LogPath -SysvolPath $sysvolPath -DomainMode $DomainMode -ForestMode $ForestMode -InstallDns -NoRebootOnCompletion&lt;br /&gt;
if ($command.Success -eq $true)&lt;br /&gt;
{&lt;br /&gt;
Write-host &amp;quot;Forest : $DomainName created successfully, server will be rebooted in 30 seconds&amp;quot; -foregroundcolor green&lt;br /&gt;
Reboot-Computer -force -wait 30&lt;br /&gt;
}&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
Write-host &amp;quot;Forest : $DomainName creation has failed&amp;quot; -foregroundcolor red&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
Write-host &amp;quot;Installation of AD Domain Services feature has failed&amp;quot; -foregroundcolor red&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>George2</name></author>	</entry>

	</feed>