• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 442
  • Last Modified:

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!
0
bbimis
Asked:
bbimis
  • 2
  • 2
  • 2
1 Solution
 
Mohammed KhawajaManager - Infrastructure:  Information TechnologyCommented:
gwmi win32_bios -computername remotehost -credential domain\adminaccount

Asset tag will be under field serialnumber
0
 
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).
0
 
bbimisAuthor Commented:
Yeah wmic will not work. I didn't know if there was another method. Thanks!
0
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

 
Spike99On-Site IT TechnicianCommented:
You're welcome!
0
 
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.
0
 
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 {
    param($query)
    $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
Computer: 5.5.5.5  
Printer Serial: Dv9h78   or whatever


Thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Protect Your Employees from Wi-Fi Threats

As Wi-Fi growth and popularity continues to climb, not everyone understands the risks that come with connecting to public Wi-Fi or even offering Wi-Fi to employees, visitors and guests. Download the resource kit to make sure your safe wherever business takes you!

  • 2
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now