Mercurial > pub > Impl
view _test/wmi.pl @ 44:32d2350fccf9
ORM
*Minor fixes
*Working tarnsform to sql
*Fixes to the sql traits
author | Sergey |
---|---|
date | Mon, 11 Jan 2010 01:42:00 +0300 |
parents | da5bc24b3d3c |
children | 16ada169ca75 |
line wrap: on
line source
#!/usr/bin/perl -w use strict; use Win32::OLE; 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;