TrustedHosts update added.

Error detection in some scripts added.

Change-Id: I2b815a1d145096982721b42907871332f966ad5d
This commit is contained in:
Dmitry Teselkin 2013-08-07 19:29:22 +04:00
parent 605da1d6b5
commit 7aee81ca7c
10 changed files with 40 additions and 7 deletions

View File

@ -20,6 +20,9 @@ Commands:
- Name: Disable-Firewall
Arguments: {}
- Name: Enable-TrustedHosts
Arguments: {}
# - Name: New-SqlServerSystemAccount
# Arguments:
# # [String] (REQUIRED) Domain Name

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -70,6 +70,13 @@ function New-FailoverClusterSharedFolder {
Show-InvocationInfo $MyInvocation -End
}
process {
trap {
Write-LogError $_ -EntireObject
break
}
$ErrorActionPreference = 'Stop'
Write-Log "--> New-FailoverClusterSharedFolder"
Write-Log "Creating shared folder for Failover Cluster ..."
@ -131,6 +138,13 @@ function New-FailoverCluster {
Show-InvocationInfo $MyInvocation -End
}
process {
trap {
Write-LogError $_ -EntireObject
break
}
$ErrorActionPreference = 'Stop'
Write-Log "ClusterNodes: $($ClusterNodes -join ', ')"
if ($Credential -eq $null) {

View File

@ -478,3 +478,15 @@ function Enable-Firewall {
}
function Enable-TrustedHosts {
begin {
Show-InvocationInfo $MyInvocation
}
end {
Show-InvocationInfo $MyInvocation -End
}
process {
Set-Item WSMan:\localhost\Client\TrustedHosts -Value '*' -Force
}
}