Get-PC/Private/Get-CMDBDELInfo.ps1
Zachary Gorman 4a01da0e5d Init commit
2024-06-11 11:27:55 -07:00

24 lines
706 B
PowerShell

function Get-CMDBDELInfo {
param (
$cmdb
)
Write-host "***NOTICE: $comp is a Device Exception computer. Please check CMDB/Asset Mgmt prior to supporting this workstation. ***" -BackgroundColor Black -ForegroundColor Yellow
if($null -eq $cmdb){
return
}
if($cmdb.values.ConfigurationItem._SHSVendorPC -eq 'True'){
$vendor = "Yes | Non-standard SHS Image/Hardware"
}
else{
$vendor = "No | Standard SHS Hardware"
}
$delInfo = [PSCustomObject]@{
Owner = $cmdb.values.ConfigurationItem._SHSAssetOwner
Vendor = $vendor
Description = $cmdb.values.ConfigurationItem._Description
}
return $delInfo
}