"jc" <[EMAIL PROTECTED]> writes: > Hi lists. > I wrote a script to list the services of a machine andf I want to run it > from a web site by clicking a button. It appears that it doesn't work > for remote PCs (but for mine it's ok) although I've got a network > administrator account with all the rights that can exist in the world > and though I've declared this account as PCs' administrator too. > Do I fail somewhere ???
Does it work when you run it by hand, rather than from the Web page? Is it running as a CGI script? If so, the problem is probably that the the Web server process does not have the necessary permissions. On a side note, WMI provides a very nice object-oriented interface for dealing with services: http://msdn.microsoft.com/library/en-us/wmisdk/wmi/win32_service.asp You might or might not like it better. For sample code, see the instances.pl script attached to: http://aspn.activestate.com/ASPN/Mail/Message/perl-win32-admin/1644207 Try running it like this: instances.pl -r <hostname> Win32_Service - Pat _______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
