PS One-Liner: Pull Dell Service Tag

Every now and then, I’ll need to pull the Service Tag from a Dell system that I’m working on remotely.

From cmd line this can be done with:

wmic bios get serialnumber

However, if you want to do something with the output, Powershell is a bit better:

ps-sn.png

If you’re wanting to only return the value without the column:

ps-sn2.png

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s