Skip to content

Commit

Permalink
Update to v2.2.0.0 🐙
Browse files Browse the repository at this point in the history
  • Loading branch information
blakedrumm authored Mar 27, 2024
1 parent 23e72d4 commit 74ad507
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions SCOM-ReconfigureDatabaseLocations.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<#
.NOTES
--------------------------------------------------------------------------------
Code generated by: SAPIEN Technologies, Inc., PowerShell Studio 2024 v5.8.237
Generated on: 2/16/2024 3:50 PM
Code generated by: SAPIEN Technologies, Inc., PowerShell Studio 2024 v5.8.238
Generated on: 3/27/2024 1:56 PM
Generated by: blakedrumm
--------------------------------------------------------------------------------
.DESCRIPTION
Expand Down Expand Up @@ -11825,7 +11825,7 @@ SimllArY/wdfRzP54wZmXAAAAABJRU5ErkJgggs='))
#--------------------------------------------
# Declare Global Variables and Functions here
#--------------------------------------------
$ScriptMoveVersion = '2.1.0.0'
$ScriptMoveVersion = '2.2.0.0'

function Get-TimeStamp
{
Expand Down Expand Up @@ -17166,7 +17166,7 @@ function Show-ConfigurationFile_psf
return "Error: $Error"
}
$ErrorActionPreference = 'Stop'
if ($ComputerName -notmatch "^$env:COMPUTERNAME`$")
if (($ComputerName -split "." | Select-Object -Index 0) -notmatch "^$env:COMPUTERNAME`$")
{
return Invoke-Command -ComputerName $ComputerName -ScriptBlock {
$result = @()
Expand Down Expand Up @@ -18865,7 +18865,7 @@ function Show-RegistryData_psf
return "Error: $Error"
}
$ErrorActionPreference = 'Stop'
if ($ComputerName -notmatch "^$env:COMPUTERNAME`$")
if (($ComputerName -split "." | Select-Object -Index 0) -notmatch "^$env:COMPUTERNAME`$")
{
Invoke-Command -ComputerName $ComputerName -ErrorAction Stop -ScriptBlock {
$path1 = "HKLM:\SOFTWARE\Microsoft\System Center\2010\Common\Database"
Expand Down Expand Up @@ -20251,8 +20251,8 @@ function Show-DatabaseConfiguration_psf
#----------------------------------------------
#region Import the Assemblies
#----------------------------------------------
[void][reflection.assembly]::Load('System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a')
[void][reflection.assembly]::Load('System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089')
[void][reflection.assembly]::Load('System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a')
#endregion Import Assemblies

#----------------------------------------------
Expand Down

0 comments on commit 74ad507

Please sign in to comment.