Description : Ce script VBS affiche le Système d'Exploitation de l'ordinateur.
Script :
strComputer = "." Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colOperatingSystems = objWMIService.ExecQuery ("Select * from Win32_OperatingSystem")
For Each objOperatingSystem in colOperatingSystems Wscript.Echo objOperatingSystem.Caption & " " & objOperatingSystem.Version Next
Proposer un script
|
Notre avis :

Votre avis :

Réactions : 0
Votants : 2
Visites : 13635
|