Sorry for the newb question but I am really stuck here. I am trying to use
$SERIAL = (Get-WmiObject win32_bios).serialnumber
Which returns to me something like “MXL1160602”
All I need is the “60602”
I have tried all sorts of trims and replaces and I can not get it to give me the output I want.
I am not getting any errors, when I run the command with a trim or replace it goes through but it still gives me the whole result. The only thing I have found to work so far is $serial -replace “MXL”, “”