Mercurial > pub > Impl
view _test/wmi.pl @ 359:833e663796c4
TTView: added view variable to pass rendering context between controls
TTView: display function renamed to display_for
WebResource: resources now marked with roles for searching a desired resource by a role in the resource chain
author | sergey |
---|---|
date | Mon, 25 Nov 2013 02:19:31 +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;