Ce petit script très pratique vous permet de récupérer le numéro de série d’une machine sous Windows très facilement.

On Error Resume Next
strComputer = inputbox( "Nom du serveur", "Input" )
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_BIOS",,48)
For Each objItem in colItems
Wscript.Echo "SerialNumber: " & objItem.SerialNumber
Next

WMI Scripting

Gardez le contact

  • Google Bookmarks
  • Print
  • email
  • del.icio.us
  • StumbleUpon
  • Facebook
  • Technorati
  • Netvibes
  • LinkedIn
  • MySpace
  • Scoopeo
  • Wikio FR
  • LinkArena
  • Blogosphere News
  • RSS
  • Suggest to Techmeme via Twitter
  • Twitter

Liens sponsorisés