locked
I need script RRS feed

  • Question

  • Hi All,

    I need to executive the below  commend to one single text file,

    wmic bios get serialnumber

    hostname

    Regards

    Arul S 

    Contact : arulrajs22@gmail.com

    Thursday, June 5, 2014 7:53 PM

Answers

  • This gives the same result

    Get-WmiObject -Class Win32_BIOS | Select -Property PSComputerName , SerialNumber | Out-File C:\Temp\Info.txt


    Regards Chen V [MCTS SharePoint 2010]

    • Marked as answer by Bill_Stewart Monday, June 9, 2014 2:47 PM
    Friday, June 6, 2014 10:26 AM

All replies

  • What's your question?

    -- Bill Stewart [Bill_Stewart]

    Thursday, June 5, 2014 8:00 PM
  • Get-WmiObject Win32_BIOS | Select -ExpandProperty SerialNumber | Out-File .\textfile.txt
    Get-WmiObject Win32_ComputerSystem | Select -ExpandProperty Name | Out-File .\textfile.txt -Append
    & .\textfile.txt


    Don't retire TechNet! - (Don't give up yet - 12,950+ strong and growing)

    Thursday, June 5, 2014 8:03 PM
  • This gives the same result

    Get-WmiObject -Class Win32_BIOS | Select -Property PSComputerName , SerialNumber | Out-File C:\Temp\Info.txt


    Regards Chen V [MCTS SharePoint 2010]

    • Marked as answer by Bill_Stewart Monday, June 9, 2014 2:47 PM
    Friday, June 6, 2014 10:26 AM