Inventory is not working
Hello all,
I did a force inventory on a PC then removed a program 7-zip, remote into PC looked at the whole c drive searching for 7-zip and nothing. Then did a force inventory on PC and pc show 7-zip still there. ??????
Any answers??? thank you
4 Comments
[ + ] Show comments
Answers (0)
Please log in to answer
Be the first to answer this question
$(function Decode {
If ($args[0] -is [System.Array]) {
[System.Text.Encoding]::ASCII.GetString($args[0])
}
Else {
"Not Found"
}
}
ForEach ($Monitor in Get-WmiObject WmiMonitorID -Namespace root\wmi) {
$Name = Decode $Monitor.UserFriendlyName -notmatch 0
$Serial = Decode $Monitor.SerialNumberID -notmatch 0
$Manufacturer = Decode $Monitor.ManufacturerName -notmatch 0
$User = $Monitor.PSComputerName
echo "$user $Name $Serial"
}
)*>&1 > C:\kbox\monitors.txt
In software
ShellCommandTextReturn(cmd /c type c:\KBOX\monitors.txt) - Kdebiasse 6 years ago