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!
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mohammed KhawajaManager - Infrastructure:  Information TechnologyCommented:
gwmi win32_bios -computername remotehost -credential domain\adminaccount

Asset tag will be under field serialnumber
Spike99On-Site IT TechnicianCommented:
I'm not sure if wmic will work since that is a windows-based command that interacts with either the local or remote Windows-based system.  I don't have a Dell printer to try this on, but this command failed to get any info on the Brother & Kyocera printers we have in my office.  I got an error that said:  "The RPC server is unavailable."

I would just use the web interface to connect to the printer using a browser and its IP address.  You should be able to find the service tag on that page (I wanna say it's under Printer Settings, but I'm not 100% sure).

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
bbimisAuthor Commented:
Yeah wmic will not work. I didn't know if there was another method. Thanks!
Redefine Your Security with AI & Machine Learning

The implications of AI and machine learning in cyber security are massive and constantly growing, creating both efficiencies and new challenges across the board. Check out our on-demand webinar to learn more about how AI can help your organization!

Spike99On-Site IT TechnicianCommented:
You're welcome!
Mohammed KhawajaManager - Infrastructure:  Information TechnologyCommented:
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.
bbimisAuthor Commented:
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
source for html
here is the code i'm trying to use but i'm at a lost
function Get-PrinterSN {
    $url = "$query\printer_info.htm"
    $result = Invoke-WebRequest $url

    $result.AllElements | 
        Where id -eq "info_table" |
        Select -First 1 -ExpandProperty innerText    

Open in new window

I'm wanting something like
Printer Serial: Dv9h78   or whatever

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Printers and Scanners

From novice to tech pro — start learning today.