Fixed DEL message when querying SCCM to use the correct hostname
This commit is contained in:
parent
7073a00826
commit
b650a58ca6
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue