タグ

関連タグで絞り込む (0)

  • 関連タグはありません

タグの絞り込みを解除

phpとWMIに関するipusironのブックマーク (1)

  • PHP から WMI の実行

    <?php $str = "winmgmts:{impersonationLevel=impersonate}!\\\\.\\root\\cimv2"; $obj = new COM($str); $ret = $obj->ExecQuery( "Select * from Win32_OperatingSystem" ); print "<PRE>"; foreach( $ret as $key => $target ) { print "{$target->Caption}\n"; print "{$target->CSName}\n"; print "$target->ServicePackMajorVersion"; print ".{$target->ServicePackMinorVersion}\n"; print "{$target->WindowsDirectory}\n

  • 1