download system.pl
Language: Perl
LOC: 20
Project Info
MS Server 2003 Platform SDK Samples(MS_Server_2003_Platform_SDK_Samples)
Server: Spider_20090108_inc
Type: filesystem
...gmt\WMI\Scripting\WSH\Perl\
   backupeventlog.pl
   cimomid.pl
   cleareventlog.pl
   datetime.pl
   deleteservice.pl
   derivation.pl
   disabledhcp.pl
   dnsdomainname.pl
   domainname.pl
   emptyarray.pl
   enabledhcp.pl
   errmsg.pl
   getappboost.pl
   getbootconfig.pl
   getnetworkadapterconfig.pl
   listeventlogfiles.pl
   listeventsbycode.pl
   listnetworkadapters.pl
   listnetworkprotocols.pl
   listservices.pl
   machinename.pl
   methodex.pl
   ntevent.pl
   nvsarray.pl
   objset.pl
   osinfo.pl
   pathbuild.pl
   pauseservice.pl
   printerstatus.pl
   printjobs.pl
   privilege.pl
   process.pl
   reboot.pl
   remotereboot.pl
   remoteshutdown.pl
   resumeservice.pl
   schema.pl
   service.pl
   servicestopped.pl
   shutdown.pl
   spawn.pl
   startservice.pl
   stopservice.pl
   system.pl
   viewpagefilesettings.pl

#! perl -w
# Copyright (c)  Microsoft Corporation
#***************************************************************************
# 
# WMI Sample Script - Win32_ComputerSystem dump (Perl Script)
#
# This script demonstrates how to dump properties from instances of
# Win32_ComputerSystem.
#
#***************************************************************************
use strict;
use Win32::OLE;

my $SystemSet;
eval { $SystemSet = Win32::OLE->GetObject("winmgmts:{impersonationLevel=impersonate}!\\\\.\\root\\cimv2")->
	InstancesOf ("Win32_ComputerSystem"); };
if(!$@ && defined $SystemSet)
{
	print "\n";
	foreach my $SystemInst (in $SystemSet)
	{
		print $SystemInst->{Caption}, "\n";
		print $SystemInst->{PrimaryOwnerName}, "\n";
		print $SystemInst->{Domain}, "\n";
		print $SystemInst->{SystemType}, "\n";
	}
}
else
{
	print STDERR Win32::OLE->LastError, "\n";
}

About Koders | Resources | Downloads | Support | Black Duck | Submit Project | Terms of Service | DMCA | Privacy Policy | Site Map| Contact Us