<![CDATA[Article Comments for Dave Roth]]>http://www.windowsitpro.com/authors/author/author/5377221/rsscomment/5377221en-USSun, 27 May 2012 06:16:39 GMTSun, 27 May 2012 06:16:39 GMTUsing Null Session Shareshttp://www.windowsitpro.com/article/remote-computing/using-null-session-shares#commentsAnchorSun, 14 Feb 2010 15:57:28 GMT
Thank you.]]>
TimSun, 14 Feb 2010 15:57:28 GMThttp://www.windowsitpro.com/article/remote-computing/using-null-session-shares#commentsAnchor
Using Null Session Shareshttp://www.windowsitpro.com/article/remote-computing/using-null-session-shares#commentsAnchorSun, 14 Feb 2010 15:57:27 GMT
Thank you.]]>
TimSun, 14 Feb 2010 15:57:27 GMThttp://www.windowsitpro.com/article/remote-computing/using-null-session-shares#commentsAnchor
Scripting Windows Media Services 101http://www.windowsitpro.com/article/perl/scripting-windows-media-services-101#commentsAnchorTue, 26 Aug 2008 15:57:24 GMT
huh?]]>
GeorgeTue, 26 Aug 2008 15:57:24 GMThttp://www.windowsitpro.com/article/perl/scripting-windows-media-services-101#commentsAnchor
Progressive Perl for Windows: Strolling Down Win32 Pathshttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-strolling-down-win32-paths#commentsAnchorWed, 01 Aug 2007 02:09:53 GMT
na]]>
DirkWed, 01 Aug 2007 02:09:53 GMThttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-strolling-down-win32-paths#commentsAnchor
The 64-Bit Wildcardhttp://www.windowsitpro.com/article/perl/the-64-bit-wildcard#commentsAnchorTue, 31 Jul 2007 00:31:43 GMT
Execllent]]>
MichaelTue, 31 Jul 2007 00:31:43 GMThttp://www.windowsitpro.com/article/perl/the-64-bit-wildcard#commentsAnchor
A Hassle-Free Way to Read Hex Dumpshttp://www.windowsitpro.com/article/perl/a-hassle-free-way-to-read-hex-dumps#commentsAnchorFri, 23 Mar 2007 22:47:39 GMT
dfsgsfdhgfdvbvcxnjhgkhjljk;.lm,.cbhmjgfhfdgfdgfhdgxbxzvcbsf]]>
FoixFri, 23 Mar 2007 22:47:39 GMThttp://www.windowsitpro.com/article/perl/a-hassle-free-way-to-read-hex-dumps#commentsAnchor
Validate File Extensionshttp://www.windowsitpro.com/article/perl/validate-file-extensions#commentsAnchorWed, 21 Mar 2007 01:18:38 GMT
HOW TO WRITE SCRIPT FOR STARTUP ON WINDOW]]>
thangnqWed, 21 Mar 2007 01:18:38 GMThttp://www.windowsitpro.com/article/perl/validate-file-extensions#commentsAnchor
Locating Email Accounts in ADhttp://www.windowsitpro.com/article/task-scheduling/locating-email-accounts-in-ad#commentsAnchorMon, 18 Sep 2006 08:18:09 GMT
Thank you Ms.Grubb!!!!]]>
HAROLDMon, 18 Sep 2006 08:18:09 GMThttp://www.windowsitpro.com/article/task-scheduling/locating-email-accounts-in-ad#commentsAnchor
Locating Email Accounts in ADhttp://www.windowsitpro.com/article/task-scheduling/locating-email-accounts-in-ad#commentsAnchorFri, 15 Sep 2006 11:53:52 GMT
I just unlocked this article, so it’s now available to all registered users. Thanks for letting us know about the problem. --Anne Grubb, senior editor]]>
AnneFri, 15 Sep 2006 11:53:52 GMThttp://www.windowsitpro.com/article/task-scheduling/locating-email-accounts-in-ad#commentsAnchor
Locating Email Accounts in ADhttp://www.windowsitpro.com/article/task-scheduling/locating-email-accounts-in-ad#commentsAnchorFri, 15 Sep 2006 09:14:33 GMT
Same here. Don’t bother cross referencing material from other publications unless it’s going to be made available to other subscribers.]]>
HAROLDFri, 15 Sep 2006 09:14:33 GMThttp://www.windowsitpro.com/article/task-scheduling/locating-email-accounts-in-ad#commentsAnchor
Locating Email Accounts in ADhttp://www.windowsitpro.com/article/task-scheduling/locating-email-accounts-in-ad#commentsAnchorWed, 13 Sep 2006 10:59:13 GMT
Exchagne & Outlook Administrator link you to this article for its solution. Now you need to purchase a Windows Scripting subcription to read it? Tisk Tisk]]>
GeneWed, 13 Sep 2006 10:59:13 GMThttp://www.windowsitpro.com/article/task-scheduling/locating-email-accounts-in-ad#commentsAnchor
Locating Email Accounts in ADhttp://www.windowsitpro.com/article/task-scheduling/locating-email-accounts-in-ad#commentsAnchorFri, 14 Jul 2006 14:57:24 GMT
I can’t read articles even though I am logged in. What gives?]]>
NICKFri, 14 Jul 2006 14:57:24 GMThttp://www.windowsitpro.com/article/task-scheduling/locating-email-accounts-in-ad#commentsAnchor
Scripting Windows Media Services 101http://www.windowsitpro.com/article/perl/scripting-windows-media-services-101#commentsAnchorFri, 21 Apr 2006 18:55:01 GMT
great]]>
KEITHFri, 21 Apr 2006 18:55:01 GMThttp://www.windowsitpro.com/article/perl/scripting-windows-media-services-101#commentsAnchor
Progressive Perl for Windows: Discovering the WMI Classes’ Properties and Methodshttp://www.windowsitpro.com/article/scripting/progressive-perl-for-windows-discovering-the-wmi-classes-properties-and-methods#commentsAnchorTue, 23 Aug 2005 00:25:25 GMT
if the username and password are different in the remote computer, how to specify and change the perl script? thanks, any solution please let me know. Ken, kenperl@gmail.com]]>
Anonymous User Tue, 23 Aug 2005 00:25:25 GMThttp://www.windowsitpro.com/article/scripting/progressive-perl-for-windows-discovering-the-wmi-classes-properties-and-methods#commentsAnchor
Progressive Perl for Windows: Use Microsoft Graph to Generate Charts Dynamicallyhttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-use-microsoft-graph-to-generate-charts-dynamically#commentsAnchorTue, 28 Jun 2005 15:49:50 GMT
How do you change something like the background color of the graph. Good article! I would like to see future articles with more examples. Thanks for the tip!]]>
Anonymous User Tue, 28 Jun 2005 15:49:50 GMThttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-use-microsoft-graph-to-generate-charts-dynamically#commentsAnchor
Progressive Perl for Windows: Use Microsoft Graph to Generate Charts Dynamicallyhttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-use-microsoft-graph-to-generate-charts-dynamically#commentsAnchorMon, 13 Jun 2005 10:19:45 GMT
The article was very good. I used it as a learning tool to do some graphing. With a few modifications I was almost able to use it if my graphs. I have not learned hou to use the first column of the array to produce the index with titles. Lewis Litchfield 2005 06 13]]>
Anonymous User Mon, 13 Jun 2005 10:19:45 GMThttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-use-microsoft-graph-to-generate-charts-dynamically#commentsAnchor
Progressive Perl for Windows: Teaching Perl How to Speakhttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-teaching-perl-how-to-speak#commentsAnchorFri, 03 Jun 2005 11:34:47 GMT
i found the only way to successfuly change SAPI4 voices with perl was to edit the registry. Rather ugly solution but it works. I found that by recursing the list of available voices, each voice has a ModeID tag in it. The ModeID of the voice you want to use needs to be saved to the registry as a REG_BINARY value at this location... HKEY_CURRENT_USER\\Software\\Voice\\VoiceText\\Local PC\\Mode Here’s how to see a list of voices available, after you initialize $vt... my $ttl = $vt->CountEngines(); for(my $x=1;$x <= $ttl;$x++){ my $mode_name = $vt->ModeName($x); my $mode_id = $vt->ModeID($x); } I’ve been looking for this solution for years. Not sure why Dave said it would work with the Voice command, it never has with me. ]]>
Anonymous User Fri, 03 Jun 2005 11:34:47 GMThttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-teaching-perl-how-to-speak#commentsAnchor
Handy Scripts for Administratorshttp://www.windowsitpro.com/article/perl/handy-scripts-for-administrators#commentsAnchorWed, 04 May 2005 14:29:48 GMT
I find your inline advertising links very intrusive and deceptive. ]]>
Anonymous User Wed, 04 May 2005 14:29:48 GMThttp://www.windowsitpro.com/article/perl/handy-scripts-for-administrators#commentsAnchor
Progressive Perl for Windows: Strolling Down Win32 Pathshttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-strolling-down-win32-paths#commentsAnchorMon, 02 May 2005 11:51:14 GMT
gregw123: Just escape the $, as in: "\\\\localhost\\c\$" or ’\\\localhost\c$’ Steve]]>
Anonymous User Mon, 02 May 2005 11:51:14 GMThttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-strolling-down-win32-paths#commentsAnchor
How to Script In-Your-Face Alertshttp://www.windowsitpro.com/article/perl/how-to-script-in-your-face-alerts#commentsAnchorMon, 14 Mar 2005 08:39:45 GMT
I could not manage to run perl script... ]]>
Anonymous User Mon, 14 Mar 2005 08:39:45 GMThttp://www.windowsitpro.com/article/perl/how-to-script-in-your-face-alerts#commentsAnchor
How to Script In-Your-Face Alertshttp://www.windowsitpro.com/article/perl/how-to-script-in-your-face-alerts#commentsAnchorThu, 10 Mar 2005 01:14:18 GMT
This article is really useful... Unfortunately I’m getting an Error 404 when I click on the link to download the source ZIP file :(]]>
Anonymous User Thu, 10 Mar 2005 01:14:18 GMThttp://www.windowsitpro.com/article/perl/how-to-script-in-your-face-alerts#commentsAnchor
Progressive Perl for Windows: Messing with Instant Messaginghttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-messing-with-instant-messaging#commentsAnchorWed, 23 Feb 2005 02:34:10 GMT
ChangeName.pl doesn’t work on my machine (XP SP2, msngr 6.2) $Service->{ServiceName} returns an empty string. I can see from OLEView that: my $Service = $Object->{Services}->{PrimaryService}; returns an IDispatch* rather than an IMessengerService. Could that be the issue ?]]>
Anonymous User Wed, 23 Feb 2005 02:34:10 GMThttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-messing-with-instant-messaging#commentsAnchor
Progressive Perl for Windows: Using WMI to Request Data About Disk Driveshttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-using-wmi-to-request-data-about-disk-drives#commentsAnchorSun, 20 Feb 2005 23:55:33 GMT
no comment]]>
Anonymous User Sun, 20 Feb 2005 23:55:33 GMThttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-using-wmi-to-request-data-about-disk-drives#commentsAnchor
How to Script In-Your-Face Alertshttp://www.windowsitpro.com/article/perl/how-to-script-in-your-face-alerts#commentsAnchorFri, 18 Feb 2005 09:10:23 GMT
Has anyone been unable to get it to run with the following error? C:\NotifyTSA>perl hostmonitor.pl 192.168.30.119 Loading icon named ’Error’ Loading icon named ’Normal’ icmp socket error - at hostmonitor.pl line 104 "ppm install win32-pingicmp" installed fine and when i run it now it says its already installed.]]>
Anonymous User Fri, 18 Feb 2005 09:10:23 GMThttp://www.windowsitpro.com/article/perl/how-to-script-in-your-face-alerts#commentsAnchor
Progressive Perl for Windows: Teaching Perl How to Speakhttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-teaching-perl-how-to-speak#commentsAnchorSun, 24 Oct 2004 15:02:05 GMT
dad, what’s up]]>
Anonymous User Sun, 24 Oct 2004 15:02:05 GMThttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-teaching-perl-how-to-speak#commentsAnchor
Progressive Perl for Windows: Strolling Down Win32 Pathshttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-strolling-down-win32-paths#commentsAnchorThu, 16 Sep 2004 11:23:10 GMT
How about Admin shares like C$. "$" stands for scalar in perl.]]>
gregw123 Thu, 16 Sep 2004 11:23:10 GMThttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-strolling-down-win32-paths#commentsAnchor
Progressive Perl for Windows: Teaching Perl How to Speakhttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-teaching-perl-how-to-speak#commentsAnchorSun, 29 Aug 2004 07:53:44 GMT
Could anyone suggest how to to change the voice, say, to use AT&T NaturalVoices? Even changing the listed Gender switch in the given script doesn’t seem to have any effect. ]]>
PraxitelesSun, 29 Aug 2004 07:53:44 GMThttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-teaching-perl-how-to-speak#commentsAnchor
Progressive Perl for Windows: Messing with Instant Messaginghttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-messing-with-instant-messaging#commentsAnchorMon, 05 Jul 2004 23:11:05 GMT
Dear Sir, I want to use instatnt messaging only on private network please segess me wht can i do.]]>
malikMon, 05 Jul 2004 23:11:05 GMThttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-messing-with-instant-messaging#commentsAnchor
Progressive Perl for Windows: Using WMI to Request Data About Disk Driveshttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-using-wmi-to-request-data-about-disk-drives#commentsAnchorThu, 24 Jun 2004 12:08:33 GMT
We can find the drives on a machine using Win32_LogicalDisk and can find target lun bus numbers using Win32_DiskDrive . but how to find the mapping between the drive letters and targets/lun/bus .]]>
Rahul Bhiide Thu, 24 Jun 2004 12:08:33 GMThttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-using-wmi-to-request-data-about-disk-drives#commentsAnchor
Progressive Perl for Windows: Cookies, the Cache, and You, Part 2http://www.windowsitpro.com/article/perl/progressive-perl-for-windows-cookies-the-cache-and-you-part-2#commentsAnchorWed, 05 May 2004 09:53:11 GMT

Very helpful info. It helped me start looking in the right area to solve a scripting issue.

]]>
Walter Sutton Wed, 05 May 2004 09:53:11 GMThttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-cookies-the-cache-and-you-part-2#commentsAnchor
Progressive Perl for Windows: Strolling Down Win32 Pathshttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-strolling-down-win32-paths#commentsAnchorFri, 09 Apr 2004 20:52:18 GMT
update the document! forward slashes are completely legal in paths using perl. Also for UNC paths. I’m just having a problem using UNC paths on unix systems!]]>
RobertFri, 09 Apr 2004 20:52:18 GMThttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-strolling-down-win32-paths#commentsAnchor
Progressive Perl for Windows: Using Win32::Service to Programmatically Manage Win32 Serviceshttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-using-win32-service-to-programmatically-manage-win32-services#commentsAnchorMon, 29 Mar 2004 00:21:44 GMT
Absolutely great!!!]]>
Ashish O Gharde Mon, 29 Mar 2004 00:21:44 GMThttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-using-win32-service-to-programmatically-manage-win32-services#commentsAnchor
Managing Autorun Applicationshttp://www.windowsitpro.com/article/perl/managing-autorun-applications#commentsAnchorThu, 11 Mar 2004 03:49:00 GMT
A simpler solution: Download the free autoruns from www.sysinternals.com]]>
Áðüóôïëïò ÖþôáêÝëçò Thu, 11 Mar 2004 03:49:00 GMThttp://www.windowsitpro.com/article/perl/managing-autorun-applications#commentsAnchor
Progressive Perl for Windows: Use Microsoft Graph to Generate Charts Dynamicallyhttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-use-microsoft-graph-to-generate-charts-dynamically#commentsAnchorFri, 05 Mar 2004 03:26:57 GMT

Great script! An instant graph! But one problem. A whole string of OLE errors like this: "Unable to set the Rotation property of the Chart class." Rotation, Perspective, and even the Title trigger this error. (Although the title does appear.) Changing rotation and perspective seems to have no effect. Anyone have any suggestions or solutions?

]]>
Michael Gillam Fri, 05 Mar 2004 03:26:57 GMThttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-use-microsoft-graph-to-generate-charts-dynamically#commentsAnchor
Managing Autorun Applicationshttp://www.windowsitpro.com/article/perl/managing-autorun-applications#commentsAnchorWed, 03 Mar 2004 12:13:20 GMT
I do not have perl installed. Is there a VBScript edition of the script. Thanks]]>
Ralph Elmerick Wed, 03 Mar 2004 12:13:20 GMThttp://www.windowsitpro.com/article/perl/managing-autorun-applications#commentsAnchor
Progressive Perl for Windows: Taking Advantage of the Windows Event Logshttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-taking-advantage-of-the-windows-event-logs#commentsAnchorFri, 13 Feb 2004 13:00:24 GMT

Nothing works with Perl Active Perl version 5.8.

]]>
Sylvain Grenon Fri, 13 Feb 2004 13:00:24 GMThttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-taking-advantage-of-the-windows-event-logs#commentsAnchor
Progressive Perl for Windows: Using Win32::Service to Programmatically Manage Win32 Serviceshttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-using-win32-service-to-programmatically-manage-win32-services#commentsAnchorMon, 22 Dec 2003 03:21:15 GMT

I am new to both Perl and Windows programming and found this article very useful.

I do have a question relating to Windows service names that contain spaces. I can see that spaces are very uncommon, but the application I am working with does contains spaces.

When using the reser services script, I pass the group name called "ost" which is defined as follows:

my %ServiceGroup = (

ost => [ qw(
OST Process Monitor Server 5.01 build 7
) ],
);

and each space is interpreted as a separate service name. I have tried adding single and double quotes and tried to escape them to no avail.

Below is an example of the output generated:

E:\ost_interfaces\scripts>perl restartOST.pl ost
Stopping ’’
Stopping ’’
Stopping ’’
Stopping ’’
Stopping ’’
Stopping ’’
Stopping ’’

OST failed to stop. Giving up on it.
Process failed to stop. Giving up on it.
Monitor failed to stop. Giving up on it.
Server failed to stop. Giving up on it.
5.01 failed to stop. Giving up on it.
build failed to stop. Giving up on it.
7 failed to stop. Giving up on it.

Can you help?

]]>Mark Hamshaw Mon, 22 Dec 2003 03:21:15 GMThttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-using-win32-service-to-programmatically-manage-win32-services#commentsAnchorProgressive Perl for Windows: Teaching Perl How to Speakhttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-teaching-perl-how-to-speak#commentsAnchorTue, 04 Nov 2003 00:57:08 GMT

Before this line:

$DirectSS->Speak( $Phrase );

add the following line:


$DirectSS->{FileName} = ’output.wav’;

This results in the TTS audio being written to the file named "output.wav"

]]>
Weston Ruter Tue, 04 Nov 2003 00:57:08 GMThttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-teaching-perl-how-to-speak#commentsAnchor
Progressive Perl for Windows: Use Microsoft Graph to Generate Charts Dynamicallyhttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-use-microsoft-graph-to-generate-charts-dynamically#commentsAnchorWed, 17 Sep 2003 07:23:58 GMT

I have used this article to help me produce a great chart but I have one problem. If I use the chart type xl3DColumnStacked, it does not work. There seem to be several other tyes of chart that also do not work. Can anyone explain why or point out what I may have done wrong.

]]>
Jim Barrett Wed, 17 Sep 2003 07:23:58 GMThttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-use-microsoft-graph-to-generate-charts-dynamically#commentsAnchor
Progressive Perl for Windows: Using WMI to Request Data About Disk Driveshttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-using-wmi-to-request-data-about-disk-drives#commentsAnchorFri, 23 Aug 2002 23:28:30 GMT

You can use the ExecQuery() method off of the WMI Services script object to solve this. The query is very similar to SQL and would allow you to specify that you want all Win32_LogicalDisk instances where the DeviceID is greater than or equal to "C:". You could make more sophisticated queries such as collect all instances between drives D: and L:, if you like. Try this Perl code:

use strict;
use Win32::OLE qw( in );
$Machine = ".";
my $WMIServices = Win32::OLE->GetObject
( "winmgmts:{impersonationLevel=impersonate,
(security)}//$Machine/root/cimv2" ) || die;
my $DriveCollection = $WMIServices->ExecQuery
( ’select * from Win32_LogicalDisk where
DeviceID >= "C:"’ ) || die "Query Failed";
foreach my $Drive ( in( $DriveCollection ) )
{
my $FreePercent = int( ( $Drive->{FreeSpace} / $Drive->{Size} ) * 100 );
print "$Drive->{DeviceID}\n";
print "\tVolume: $Drive->{VolumeName}\n";
print "\tDisk Size: " . FormatNumber( $Drive->{Size} ) . "\n";
print "\tAvailable: " . FormatNumber( $Drive->{FreeSpace} ) . "
($FreePercent%)\n";
print "\n";
}

sub FormatNumber
{
my($Number) = @_;
my $Suffix = "";
if( $Number > 1024 * 1024 * 1024 )
{
$Number /= (1024 * 1024 * 1024);
$Suffix = "G";
}
elsif( $Number > 1024 * 1024 )
{
$Number /= (1024 * 1024);
$Suffix = "M";
}
elsif( $Number > 1024 )
{
$Number /= 1024;
$Suffix = "K";
}
$Number = sprintf( "%0.2f", $Number );
while( $Number =~ s/^(-?\d+)(\d{3})/$1,$2/ ){};
return( $Number . $Suffix );
}

]]>
Dave RothFri, 23 Aug 2002 23:28:30 GMThttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-using-wmi-to-request-data-about-disk-drives#commentsAnchor
Progressive Perl for Windows: Teaching Perl How to Speakhttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-teaching-perl-how-to-speak#commentsAnchorFri, 26 Jul 2002 21:27:15 GMT

Can anybody offer any advice as to how to get the TTS output saved as a .WAV file for later use rather than announced in this example (ala like the demo VB Scripts allow in SAPI5.1)?

Excellent article though and saved me wading my way through VB!

]]>Hamish Tweedie Fri, 26 Jul 2002 21:27:15 GMThttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-teaching-perl-how-to-speak#commentsAnchorProgressive Perl for Windows: Using WMI to Request Data About Disk Driveshttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-using-wmi-to-request-data-about-disk-drives#commentsAnchorMon, 17 Jun 2002 09:52:30 GMT

I am using WMI with Perl, but whenever I access the logical disks using Logical_disk class, the script scans the floppy drives as well. I am trying to find a way so that I can get data only about logical disk without scanning floppy drives every time script runs (as this may damage floppy drives on the server, if I run the script very frequently).

]]>
Sanjeev Shukla Mon, 17 Jun 2002 09:52:30 GMThttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-using-wmi-to-request-data-about-disk-drives#commentsAnchor
Progressive Perl for Windows: Using Win32::Service to Programmatically Manage Win32 Serviceshttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-using-win32-service-to-programmatically-manage-win32-services#commentsAnchorThu, 03 Jan 2002 09:50:04 GMT

Yes, it is normal to be able to enumerate services on machines even though you don’t have administrator (or otherwise) access on the machine. The reason is because of how Win32 performs this enumeration. It is technical, but here it goes....

A program must call into the Win32 API OpenSCManager() function. This makes a connection (via RPC) to the remote machine’s Service Control Manager. According to MSDN, all processes are permitted to connect, list the services, and query if a service is locked or not. MSDN states, "This enables any process to open a service control manager database handle that it can use in the OpenService, EnumServicesStatus, and QueryServiceLockStatus functions. Only processes with Administrator privileges are able to open a database handle used by the CreateService and LockServiceDatabase functions." In other words, to control (start, stop, etc.), create, remove, or otherwise manage a service, you need to be an admin. But to list them is free to anyone.

]]>
Dave RothThu, 03 Jan 2002 09:50:04 GMThttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-using-win32-service-to-programmatically-manage-win32-services#commentsAnchor
Progressive Perl for Windows: Using Win32::Service to Programmatically Manage Win32 Serviceshttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-using-win32-service-to-programmatically-manage-win32-services#commentsAnchorWed, 02 Jan 2002 09:45:57 GMT
Thank you for your insight into Windows services. I’m new to the world of Perl scripting. I’ve tried your examples against other Windows machines where I don’t have authentication and I received the queried list of services! Is that normal? If yes, where can I find any complementary information that justifies this functionality in terms of networking protocols (RPC)? Obviously remotely starting/stopping services requires a valid account.]]>
Alberto Rocha Wed, 02 Jan 2002 09:45:57 GMThttp://www.windowsitpro.com/article/perl/progressive-perl-for-windows-using-win32-service-to-programmatically-manage-win32-services#commentsAnchor