<#
Solution: Hydration  Sharepoint
Purpose: Used to create Active Directory Structure
Version: 1.2 - Juin 2015 

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

# Determine where to do the logging 
$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" 

Get-NetFirewallProfile | Set-NetFirewallProfile –Enabled False

# Stop logging 
Stop-Transcript

