Здравствуйте D,

Friday, May 12, 2006, 2:41:12 PM, Вы написали:

DDA> Thank you for your response.   I get the same access denied error whether 
DDA> I use the double blackslashes ("\\") or the single forward slashes ("/") 
DDA> -- running under Windows XP Professional SP1 (with all applied security 
DDA> patches).   But when I run this under WSH (windows scripting hosting)  as 
DDA> "cscript netmon.pls" as pointed out by Jan Dubois, both styles work.

DDA> If you are able to run this as a perl script (perl netmon.pl) then there 
DDA> must be something different about your Windows configuration that allows 
DDA> it to run as "perl" versus a WSH perl script.  Any ideas?

DDA> Regards,

DDA> ... Dewey


     Yes, I was wrong. No matter either I use slashes or backslashes.
     At first I decided it's security issue and made search in various
     settings Changing them one by one and run the script. But nothing
     good happened. I was confused and have tried those backslashes and
     script start to work! I decided erroneously that backslashes is
     the solution. But after Dewey's answer I change backslashes back
     to slashes but script continues to work! Confused twice!

     Well, it really is security issue. To avoid "Access denied"
     message it is necessary run Component Services console from
     Administrative Tools, right-click on Component
     Services\Computers\My Computer, click on Properties in context
     menu and on Default Properties tab set Default impersonation
     level in "impersonate". After that script works for me (Windows
     2003 server, member of Administartors group (I mean user)).

-- 
С уважением,
 Сергей                            mailto:[EMAIL PROTECTED]


_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to