Monday, April 25, 2011

Home /Active Directory /AD /Group Policy /Microsoft / Group Policy Report- Last time Group Policy was applied

Group Policy Report- Last time Group Policy was applied

I have created this post based on the question post on the TechNet forum. Here is a simple procedure you can use to generate a report with “Last time Group Policy was applied” information remotely.

The idea to run GPResult remotely using /S command and filter it using a FIND command. Here is the sample script:

echo off

FOR /f %%i in (C:\Computers.txt) do (

echo %%i >> C:\GPOutput.txt

gpresult /R /S %%i | find “Last time Group Policy was applied:”

>>C:\GPOutput.txt

)

The computers.txt files in an input file which contains all computer names. The Last time Group Policy was applied date will be in the GPOoutput.txt file

SS

Santhosh Sivarajan

Microsoft MVP · Identity & Cybersecurity Architect

Santhosh has 30+ years of hands-on enterprise experience in Identity and Access Management, Microsoft Entra ID, Active Directory, Microsoft 365 and Zero Trust architecture. He is the author of two books on Windows Server and security, and leads consulting, assessments and training at SAG Business Group.

3 comments:

I understand that. As you know, there are many other third party products available in the market that can perform these tasks. These are not free tools :)

To generate a report on the last time Group Policy was applied remotely, you can use a simple procedure. First, create a text file called "Computers.txt" with the computer names. Then, run the provided script. It will collect the information and save it in a file called "GPOutput.txt". This way, you can easily track and analyze the last time Group Policy was applied for each computer. Recycling schedules play a crucial role in maintaining a clean and environmentally friendly household. By following a well-planned recycling schedule, you can effectively manage waste and contribute to a healthier planet. It ensures that recyclable materials are sorted and disposed of correctly, reducing the amount of waste that ends up in landfills. Additionally, recycling conserves valuable resources, reduces pollution, and helps combat climate change.

Are you getting married in Edinburgh and in need of a professional hairstylist? Well, you're in luck! We have an amazing wedding hair stylist who is ready to work their magic on your hair. Our stylist is experienced in creating beautiful and elegant hairstyles that will complement your wedding dress and overall look.

They will take the time to understand your vision and ensure that you feel confident and gorgeous on your big day. So, sit back, relax, and let our wedding hair stylist Edinburgh transform your hair into a work of art.

Post a Comment

Popular Posts
Workstation Trust Relationship Issue Issue: You receive the following error message, when you try to login to the domain.  The security database on the server does not have ... ADMT Service Account - Permission and Configuration The ADMT service account needs to have proper permission in source and target domains.  You don’t need to use 2 separate accounts.  You can ... My First Peek into Microsoft Exchange 2010 By Santhosh Sivarajan Before I really dive into Exchange 2010, I thought I would install and play with it first. I took some screen shots and notes during the ins... ObjectSID and Active Directory What is an objectSID in Active Directory? When a new object is created in Active Directory, Domain Controller assigns a unique value used ... AD Group Report - List Group Members in Active Directory–PowerShell Script Updated Script - http://portal.sivarajan.com/2011/10/search-ad-collect-local-admin-group.html Script #1 This script... Add Users to a Group–PowerShell Script Purpose – Add users to a group from an input file – PowerShell V2 Script.  Input file – Input file (Users.csv) contains samAccountName in... User Account Migration and Merging – Part I (ADMT) Part I - User Account Migration and Merging Using ADMT Part II - User Account Migration and Merging Using QMM pre-creating user account ... User Account Migration and Merging – Part II (Quest Migration Manager) Part I - User Account Migration and Merging Using ADMT Part II - User Account Migration and Merging Using QMM Pre-creating user account in... Delete Stale or Inactive Computer Accounts from Active Directory Here is an easy way to identify and delete inactive or stale computers in an Active Directory environment.  Using the dsquery command you c... Converting PowerShell (PS1) to EXE / Standalone Application As we know, there many applications available to convert a PowerShell file to a standalone executable file.  Based on my experience, PowerSh...