how to convert pc serial number to string
First of all I'd like to know if I can use these two instructions

    gwmi win32_bios | select serialnumber
    
    gwmi win32_Computersystemproduct | select identifyingnumber

indifferently.

The second question is why if I write

    $sn = gwmi win32_bios | select serialnumber | out-string

`$sn.gettype()` returns me system.object 

and

`$sn.length` returns me 561 even though my serial number is made of 22 chars. Thanks. 






how to convert pc serial number to string
===

First of all I'd like to know if I can use these two instructions

    gwmi win32_bios | select serialnumber
    
    gwmi win32_Computersystemproduct | select identifyingnumber

indifferently.

The second question is why if I write

    $sn = gwmi win32_bios | select serialnumber | out-string

`$sn.gettype()` returns me system.object 

and

`$sn.length` returns me 561 even though my serial number is made of 22 chars. Thanks. 





