Skip to content

Commit

Permalink
added AllowClobber param
Browse files Browse the repository at this point in the history
  • Loading branch information
EitanBlumin committed Sep 3, 2023
1 parent 4885159 commit 0f06ce6
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Ongoing Maintenance Scripts/Test-DbaBackup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ function Test-DbaBackup {
}
else {
Write-Information "Installing $module"
Install-Module $module -Force -SkipPublisherCheck -Scope CurrentUser -ErrorAction Stop
Install-Module $module -Force -SkipPublisherCheck -Scope CurrentUser -ErrorAction Stop -AllowClobber
Import-Module $module -Force -Scope Local
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ foreach ($module in $modules) {
}
else {
Write-Information "Installing $module"
Install-Module $module -Force -SkipPublisherCheck -Scope CurrentUser | Out-Null
Install-Module $module -Force -SkipPublisherCheck -Scope CurrentUser -AllowClobber | Out-Null
Import-Module $module -Force -PassThru -Scope Local | Out-Null
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ $ListenerSubnet = "255.255.255.255"
$ClusterAGRole = "<MyClusterRoleName>"
$ClusterNetworkName = "<MyClusterNetworkName>" # the cluster network name (Use Get-ClusterNetwork on Windows Server 2012 of higher to find the name)

Import-Module FailoverClusters | Out-Null
Import-Module FailoverClusters -Force | Out-Null

Add-ClusterResource -Name $IPResourceName -ResourceType "IP Address" -Group $ClusterAGRole
Get-ClusterResource -Name $IPResourceName | Set-ClusterParameter -Multiple @{"Address"="$ListenerILBIP";"ProbePort"=$ListenerProbePort;"SubnetMask"="$ListenerSubnet";"Network"="$ClusterNetworkName";"EnableDhcp"=0}
Expand Down
2 changes: 1 addition & 1 deletion Utility Scripts/Deploy_DACPAC_DbaTools.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ foreach ($module in $modules) {
}
else {
Write-Information "Installing $module"
Install-Module $module -Force -SkipPublisherCheck -Scope CurrentUser -ErrorAction Stop | Out-Null
Install-Module $module -Force -SkipPublisherCheck -Scope CurrentUser -ErrorAction Stop -AllowClobber | Out-Null
Import-Module $module -Force -Scope Local -PassThru | Out-Null
}
}
Expand Down
2 changes: 1 addition & 1 deletion Utility Scripts/Powershell Get AzSql Databases.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ foreach ($module in $modules) {
}
else {
Write-Information "Installing $module"
Install-Module $module -Force -SkipPublisherCheck -Scope CurrentUser | Out-Null
Install-Module $module -Force -SkipPublisherCheck -Scope CurrentUser -AllowClobber | Out-Null
Import-Module $module -Force -PassThru -Scope Local | Out-Null
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ foreach ($module in $modules) {
}
else {
Write-Information "Installing $module"
Install-Module $module -Force -SkipPublisherCheck -Scope CurrentUser | Out-Null
Install-Module $module -Force -SkipPublisherCheck -Scope CurrentUser -AllowClobber | Out-Null
Import-Module $module -Force -PassThru -Scope Local | Out-Null
}
}
Expand Down
2 changes: 1 addition & 1 deletion Utility Scripts/Powershell_Template_with_Transcript.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ foreach ($module in $modules) {
}
else {
Write-Information "$(Get-TimeStamp) Installing $module"
Install-Module $module -Force -SkipPublisherCheck -Scope CurrentUser -ErrorAction Stop | Out-Null
Install-Module $module -Force -SkipPublisherCheck -Scope CurrentUser -ErrorAction Stop -AllowClobber | Out-Null
Import-Module $module -Force -Scope Local | Out-Null
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ foreach ($module in $modules) {
}
else {
Write-Information "$(Get-TimeStamp) Installing $module"
Install-Module $module -Force -SkipPublisherCheck -Scope CurrentUser -ErrorAction Stop | Out-Null
Install-Module $module -Force -SkipPublisherCheck -Scope CurrentUser -ErrorAction Stop -AllowClobber | Out-Null
Import-Module $module -Force -Scope Local | Out-Null
}
}
Expand Down
2 changes: 1 addition & 1 deletion Utility Scripts/SSRS_Deployment.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ if (Get-Module -ListAvailable -Name PowerShellGet) {
}
else {
Write-Information "$(Get-TimeStamp) Installing PowerShellGet"
Install-Module PowerShellGet -RequiredVersion 2.2.4 -Force -SkipPublisherCheck -Scope CurrentUser -ErrorAction Stop | Out-Null
Install-Module PowerShellGet -RequiredVersion 2.2.4 -Force -SkipPublisherCheck -Scope CurrentUser -ErrorAction Stop -AllowClobber | Out-Null
Import-Module PowerShellGet -Force -Scope Local | Out-Null
}

Expand Down

0 comments on commit 0f06ce6

Please sign in to comment.