diff --git a/Get-PC/Private/Get-CMDBDELInfo.ps1 b/Get-PC/Private/Get-CMDBDELInfo.ps1 index ffe65df..8baeabf 100644 --- a/Get-PC/Private/Get-CMDBDELInfo.ps1 +++ b/Get-PC/Private/Get-CMDBDELInfo.ps1 @@ -3,7 +3,7 @@ function Get-CMDBDELInfo { $cmdb ) - Write-host "***NOTICE: $comp is a Device Exception computer. Please check CMDB/Asset Mgmt prior to supporting this workstation. ***" -BackgroundColor Black -ForegroundColor Yellow + Write-host "***NOTICE: $($cmdb.Name) is a Device Exception computer. Please check CMDB/Asset Mgmt prior to supporting this workstation. ***" -BackgroundColor Black -ForegroundColor Yellow if($null -eq $cmdb){ return } diff --git a/Get-PC/Private/SCCMQueryBlock.ps1 b/Get-PC/Private/SCCMQueryBlock.ps1 index f1f0b64..7fe7fbb 100644 --- a/Get-PC/Private/SCCMQueryBlock.ps1 +++ b/Get-PC/Private/SCCMQueryBlock.ps1 @@ -290,7 +290,7 @@ $Headers = @{ $obj = New-Object -TypeName PSObject -Property $props if($cmdbData.SHS_IsException -eq 'True'){ - Write-host "***NOTICE: $ENV:COMPUTERNAME is a Device Exception computer. Please check CMDB/Asset Mgmt prior to supporting this workstation. ***" -BackgroundColor Black -ForegroundColor Yellow + Write-host "***NOTICE: $comp is a Device Exception computer. Please check CMDB/Asset Mgmt prior to supporting this workstation. ***" -BackgroundColor Black -ForegroundColor Yellow $obj | Add-Member -MemberType NoteProperty -Name 'DEL Owner' -Value $cmdbData.SHS_ExceptionContact $obj | Add-Member -MemberType NoteProperty -Name 'DEL Vendor PC' -Value $cmdbData.SHS_IsVendorPC $obj | Add-Member -MemberType NoteProperty -Name 'DEL Description' -Value $cmdbData.SHS_ExceptionNotes diff --git a/Get-PC/Private/SHSUser.ps1 b/Get-PC/Private/SHSUser.ps1 index 0bd8222..01d4ab3 100644 --- a/Get-PC/Private/SHSUser.ps1 +++ b/Get-PC/Private/SHSUser.ps1 @@ -6,7 +6,7 @@ [switch]$groups ) if($null -eq (get-module -ListAvailable -Name 'ActiveDirectory')){ - Write-Warning 'Active Drirectory Thick Client is required for this function' + Write-Warning 'Active Directory Thick Client is required for this function' return } Write-Progress -Activity "Getting user data for $name" -Status 'Querying AD for user data' -PercentComplete 30 -ParentId 1 diff --git a/Get-PC/Public/Get-PC.ps1 b/Get-PC/Public/Get-PC.ps1 index 7ee456e..6f3bd88 100644 --- a/Get-PC/Public/Get-PC.ps1 +++ b/Get-PC/Public/Get-PC.ps1 @@ -389,7 +389,7 @@ get-pc -patch | oh -p if ($Enable) { if (-not ( Get-Module -ListAvailable -Name 'ActiveDirectory') ) { - Write-Warning 'Active Drirectory Thick Client is required for this function' + Write-Warning 'Active Directory Thick Client is required for this function' break } Invoke-EnableComputer $comp diff --git a/Get-PC/patchnotes.txt b/Get-PC/patchnotes.txt index 7523bd1..290719d 100644 --- a/Get-PC/patchnotes.txt +++ b/Get-PC/patchnotes.txt @@ -1,3 +1,6 @@ +Patch +-Fix DEL messages from SCCM queries now use the correct hostname + Patch 2025-4-15 -Update Added Visage to the AppDiff ignore list -Fix Capped ping attempts to one in CMDB fallback so it doesn't hang on offline computers