<#
Solution: Hydration  Sharepoint
Purpose: Used to create Active Directory Structure
Version: 1.1 - 12 Mai 2014 

Author - Jérôme Bezet-Torres
 
#>

# Determine where to do the logging 
Import-Module NetAdapter
$tsenv = New-Object -COMObject Microsoft.SMS.TSEnvironment 
$logPath = $tsenv.Value("LogPath") 
$logFile = "$logPath\$($myInvocation.MyCommand).log" 

# Start the logging 
Start-Transcript $logFile 
Write-Host "Logging to $logFile"

New-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters\' `
				 -Name 'DisabledComponents' -Value '0xff' -PropertyType 'DWord'

Disable-NetAdapterBinding -InterfaceAlias 'Ethernet0' -ComponentID ms_tcpip6

# Stop logging 
Stop-Transcript

