Solved

Retrieve a Specific GPO Permission from a set of GUIDs

Posted on 2016-08-17
1
24 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 39

Accepted Solution

by:
footech earned 500 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Microsoft Windows Server Update Service (WSUS) is free for everyone, but it lacks of some desirable features like send an e-mail to the administrator with the status of all computers on the WSUS server. This article is based on my PowerShell script …
Set OWA language and time zone in Exchange for individuals, all users or per database.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video discusses moving either the default database or any database to a new volume.

747 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now