<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Andrew Morgan &#187; service tag</title>
	<atom:link href="http://andrewmorgan.ie/tag/service-tag/feed/" rel="self" type="application/rss+xml" />
	<link>http://andrewmorgan.ie</link>
	<description>Grumpy ramblings</description>
	<lastBuildDate>Fri, 30 Jun 2017 09:24:25 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.0</generator>
	<item>
		<title>retrieve an IBM servers serial number with Powershell.</title>
		<link>http://andrewmorgan.ie/2011/04/retrieve-ibm-servers-serial-number-with-powershell/</link>
		<comments>http://andrewmorgan.ie/2011/04/retrieve-ibm-servers-serial-number-with-powershell/#comments</comments>
		<pubDate>Fri, 29 Apr 2011 21:53:52 +0000</pubDate>
		<dc:creator><![CDATA[andyjmorgan]]></dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[PowerShell Scripting]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Windows Server]]></category>
		<category><![CDATA[Ibm]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[serial number]]></category>
		<category><![CDATA[service tag]]></category>

		<guid isPermaLink="false">http://andymorgan.wordpress.com/?p=412</guid>
		<description><![CDATA[We&#8217;ve all been there, we&#8217;ve a hardware call to log with a vendor, time is of the essence but yet, when they ask&#8230; we&#8217;ve forgotten to take down the serial number. Here&#8217;s a few quick powershell one liners for getting the serial number using WMI. I&#8217;ve tested this on IBM, and dell hardware but theres no reason it wont work on other systems. Getting the local serial number: get-wmiobject win32_bios &#124; select-object serialnumber Getting a remote serial number: get-wmiobject win32_bios [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><img class="alignright" src="/wp-content/uploads/2011/03/windows_powershell_icon.png?w=78&amp;h=78" alt="" width="78" height="78" />We&#8217;ve all been there, we&#8217;ve a hardware call to log with a vendor, time is of the essence but yet, when they ask&#8230; we&#8217;ve forgotten to take down the serial number.</p>
<p>Here&#8217;s a few quick powershell one liners for getting the serial number using WMI.</p>
<p>I&#8217;ve tested this on IBM, and dell hardware but theres no reason it wont work on other systems.</p>
<p>Getting the local serial number:</p>
<p style="padding-left:30px;">get-wmiobject win32_bios | select-object serialnumber</p>
<p>Getting a remote serial number:</p>
<p style="padding-left:30px;">get-wmiobject win32_bios -computername <em>remotecomputername</em> | select-object serialnumber</p>
<p>I have a full self contained function after the jump should you wish to use it.</p>
<p><span id="more-412"></span></p>
<pre> 
function get-serialnumber {
&lt;#
    .Synopsis
        Retrieves the machines serial number from the bios.
    .Description
        Queries the local, or optionally remote machines serial number and returns it.
    .Parameter computername
        (Optional) the computername you wish to query.
    .Example
        C:PS&gt; get-serialnumber

        serialnumber
        ------------
        8DZ5X2J

        Description
        -----------
        Retrieves the serial number of the local machine and returns it.

    .Example
        C:PS&gt; get-serialnumber -computername xps

        serialnumber
        ------------
        8DZ5X2J

        Description
        -----------
        Retrieves the serial number on the remote machine and returns it.

    .Notes
        AUTHOR:     Andrew Morgan
        Notes: this is confirmed to work on IBM and Dell Hardware, for other vendors this should work but is untested.

    #&gt;

    param(
    [Parameter(HelpMessage="Server Name, Default is Localhost")]
    [string]$computername=$env:computername)

    Return $serial=get-wmiobject win32_bios -computername $computername |
     select-object serialnumber}</pre>
]]></content:encoded>
			<wfw:commentRss>http://andrewmorgan.ie/2011/04/retrieve-ibm-servers-serial-number-with-powershell/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
