bbimis
asked on
get dell service tag for remote printer
is there a way with powershell to get the dell service tag off of a printer?
I know i can use wmic to get the service tag from the computer but i'm wanting to get them from the printer(s). Thanks!
I know i can use wmic to get the service tag from the computer but i'm wanting to get them from the printer(s). Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yeah wmic will not work. I didn't know if there was another method. Thanks!
You're welcome!
Sorry, I didn't read the question completely that you want it for the printers. You could get them as mentioned above from the web interface or from the telnet command also which could be scripted.
ASKER
well here is what i was trying to do but can't get it to work correctly.
if i go to the printers page it shows the serial number here is the page source
here is the code i'm trying to use but i'm at a lost
I'm wanting something like
Computer: 5.5.5.5
Printer Serial: Dv9h78 or whatever
Thanks!
if i go to the printers page it shows the serial number here is the page source
here is the code i'm trying to use but i'm at a lost
function Get-PrinterSN {
param($query)
$url = "$query\printer_info.htm"
$result = Invoke-WebRequest $url
$result.AllElements |
Where id -eq "info_table" |
Select -First 1 -ExpandProperty innerText
}
I'm wanting something like
Computer: 5.5.5.5
Printer Serial: Dv9h78 or whatever
Thanks!
Asset tag will be under field serialnumber