Home All Groups Group Topic Archive Search About

Remote script permissions?!



Author
26 Nov 2007 1:56 PM
_rossen_
Hi,
I'm using this code to write user loggin activitie in the EventLog:

Set WSHShell = WScript.CreateObject("WScript.Shell")
host =  WSHNetwork.ComputerName
user  = WSHNetwork.UserName
WSHShell.LogEvent EVENT_SUCCESS, user & "  " & host  & "  " & "Logon",
"\\RemoteSrv"

It works fine with admin user, but gives "Permission Denied" to all regular
users :(
Any ideas of where I need to give corresponding rights to the users?

AddThis Social Bookmark Button