Last active
February 12, 2016 15:42
-
-
Save MyITGuy/9333174 to your computer and use it in GitHub Desktop.
SQL/SMP: List Automation Policies
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- List Automation Policies | |
SET NOCOUNT ON | |
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED | |
SELECT * | |
FROM [vItem] | |
WHERE [ClassGuid] = 'BEC44BD0-F31C-43C2-9391-52F176D67A04' -- Altiris.Automation.AutomationPolicies.AutomationPolicy | |
ORDER BY [Name] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- List Automation Policies | |
SELECT | |
[Automation Policy] = [vi1].[Name] | |
, [Automation Policy Guid] = [vi1].[Guid] | |
, [Owner] = [vi2].[Name] | |
, [Owner Guid] = [vi2].[Guid] | |
FROM | |
[vItem] [vi1] | |
left join [vSecurityEntity] [vse1] on [vi1].[Guid] = [vse1].[Guid] | |
LEFT JOIN [vItem] [vi2] ON [vse1].[Owner] = [vi2].[Guid] | |
WHERE | |
-- Altiris.Automation.AutomationPolicies.AutomationPolicy | |
[vi1].[ClassGuid] = 'BEC44BD0-F31C-43C2-9391-52F176D67A04' | |
ORDER BY [vi1].[Name] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- List Automation Policies | |
SELECT | |
[_ItemGuid] = [vi1].[Guid] | |
, [Automation Policy] = [vi1].[Name] | |
, [Automation Policy Guid] = [vi1].[Guid] | |
, [Owner] = [vi2].[Name] | |
, [Owner Guid] = [vi2].[Guid] | |
FROM | |
[vItem] [vi1] | |
left join [vSecurityEntity] [vse1] on [vi1].[Guid] = [vse1].[Guid] | |
LEFT JOIN [vItem] [vi2] ON [vse1].[Owner] = [vi2].[Guid] | |
WHERE | |
-- Altiris.Automation.AutomationPolicies.AutomationPolicy | |
[vi1].[ClassGuid] = 'BEC44BD0-F31C-43C2-9391-52F176D67A04' | |
ORDER BY [vi1].[Name] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment