Mercurial > pub > Impl
view _test/wmi.pl @ 238:b8c724f6de36
DOM model refactoring
TT view refactoring, controls are no longer derived from DOM nodes
bugfixes
author | sergey |
---|---|
date | Tue, 16 Oct 2012 01:33:06 +0400 |
parents | 0f3e369553bd |
children |
line wrap: on
line source
#!/usr/bin/perl -w use strict; eval "use Win32::OLE; 1;" if $^ =~ /win/; my $wmi = Win32::OLE->GetObject("winmgmts:{impersonationLevel=impersonate}!\\\\.\\root\\cimv2"); my $colServices = $wmi->ExecQuery("select * from Win32_NetworkAdapterSetting"); print $_->Element,"\t",$_->Setting,"\n" foreach in $colServices;