TrustedHosts update added.
Error detection in some scripts added. Change-Id: I2b815a1d145096982721b42907871332f966ad5d
This commit is contained in:
parent
605da1d6b5
commit
7aee81ca7c
@ -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
File diff suppressed because one or more lines are too long
@ -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) {
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user