?
Solved

Retrieve a Specific GPO Permission from a set of GUIDs

Posted on 2016-08-17
1
Medium Priority
?
48 Views
Last Modified: 2016-08-24
Hi Powershell gurus,

I have been back and forth with this and has been unsuccessful. Could someone please shed some light and provide assistance, it would be greatly greatly appreciated.

I need to find out if DOMAIN\Group 1 permissions exists from a group of GUIDs (guid.txt) and error if it does not exist.

Thank you!
0
Comment
Question by:IT_Admin XXXX
1 Comment
 
LVL 41

Accepted Solution

by:
footech earned 2000 total points
ID: 41759569
It's almost exactly like your last.  Just don't have the -ErrorAction parameter set to SilentlyContinue (or the $ErrorActionPreference variable) and the error will display.
$GPOs = Get-Content "guid.txt"
foreach ( $GPO in $GPOs )
{
    Get-GPPermissions -domain mycompany.com -GUID $GPO -TargetName "MYCOMPANY\Group_A" -TargetType Group
}

Open in new window

0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Previously, on our Nano Server Deployment series, we've created a new nano server image and deployed it on a physical server in part 2. Now we will go through configuration.
There are times when we need to generate a report on the inbox rules, where users have set up forwarding externally in their mailbox. In this article, I will be sharing a script I wrote to generate the report in CSV format.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question