Hello Guys,
Please Follow Me on Facebook As well For New Videos. Below is the Fan page URL.
/ windowsitexperts
Please watch: "[Fixed] - windows cannot find the microsoft software license terms windows 10"
• [Fixed] - Windows cann...
~-~~-~~~-~~-~
Powershell script to get report for all GPO settings.Group policy Object is actively used for security prospective in the organizations. And to keep records or reports for all these GPO’s is very important task for IT Administrator.
Scenario:
We are having 2000 Group policy objects in our Domain i.e. contoso.com which is in Windows Server 2008 R2 and our company has decided to upgrade to Windows Server 2012 R2. But, we got to think of reducing some of the administrative tasks and load on GPO’s. So management has decided to figure out that, how many GPO’s we have in our organization and how to reduce those numbers. As I said earlier we have 2000 group policy, we have to reduce them to by at least 20 %.
To achieve this task management has ask IT administrator of contoso.com to get report for all the GPO’s and their settings. Compare GPO’s for duplicate group policy settings and how we can make those settings into another GPO’s.
So below are the some questions can be raise at IT administrator mind and task can be achieved with Power shell
Questions:
How to get HTML or XML Report for single Group Policy Object
We can use group policy management console to get HTML report for single GPO. To achieve this task you can go to Group Policy Objects Container, right click on desired GPO, Save Report. And select location and save the report in HTML format.
How to get HTML or XML report for Multiple Group Policy Objects?
Group policy management console would not be helpful to get report for multiple GPO’s and hence Power shell would be helpful and easy to perform.
Power shell to get HTML or XML report for single windows GPO
Get-GPReport -Name “Disable_Shutdown_GPO” -ReportType HTML -Path C:\GPOReport\ Disable_Shutdown_GPO.html
Power shell to get HTML or XML report for multiple group policy
Get-GPOReport -All -Domain contoso.com -Server DC2-Contoso -ReportType HTML -Path C:\GPOReport\GPOReport_all.html
Get a Report with Power shell using GUID
There are cases when you could have duplicate name for 2 GPO’s and in that case unique parameter for group policy object is GUID. We can use GPO’s GUID to retrieve this report.
Get-GPReport -GUID {2F5AF121-86F0-43F4-8C7C-ECD5643A5F6A} -ReportType HTML -Path C:\GPOReport\GPO_Audit_Changes.html
If you like the videos uploaded on my channel, please do like them, subscribe & share with your friends. Thanks.
Facebook:- / windowsitexperts
Twitter:- / windowsitexp
Website:- windowsitexperts.com
Subscribe Link :- / @windowsitexperts #nileshkamble #windows10
#activedirectory
#windowsdefender
#dhcp
#dns
#tipsandtricks
#windows10tipsandtricks
#howto
Негізгі бет Get-GPOReport | Powershell to get GPO report for multiple GPO's - 2020
Пікірлер: 12