Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 30534

Re: Auditing Scheduled Proceedures/Scripts

$
0
0

When you delete the user the script is moved to the deleter and for scheduled scripts they stay scheduled and the name changes to the deleter

Go into SQL and create a new query and run this. change "maclean/michaeld" to be the user you want the results for 

SELECT     dbo.orgCalendarSchedule.UserName, dbo.orgCalendarSchedule.rowDesc AS ScriptName, dbo.vMachine.machName, dbo.machGroup.groupName, 
dbo.machGroup.reverseName, dbo.orgCalendarSchedule.startDateFrom
FROM dbo.machGroup INNER JOIN
dbo.vMachine ON dbo.machGroup.reverseName = dbo.vMachine.groupName INNER JOIN
dbo.orgCalendarSchedule ON dbo.vMachine.agentGuid = dbo.orgCalendarSchedule.agentGuid
WHERE (dbo.orgCalendarSchedule.UserName IS NOT NULL) AND (dbo.orgCalendarSchedule.UserName <> '*System*') AND
(dbo.orgCalendarSchedule.UserName = 'maclean/michaeld')

Viewing all articles
Browse latest Browse all 30534

Trending Articles