Fix “Failed to open Group Policy Object. You might not have the appropriate rights” error

I was facing this error in one of my servers while trying to open gpedit, with additional message “The volume for a file has been externally altered so that the opened file is no longer valid”. Here is how  I fixed it. 1) Enable view hidden files from explorer. 2) Navigate to C:\Windows\System32\GroupPolicy\Machine 3)Rename the […]

How to export group memberships of Active Directory users into CSV format..

So I started a new job recently, and I am working on a as-is migration. I needed to export the list of AD users and their group memberships into human readable format. So this is how I did it. $users = Get-ADUser -Filter * foreach ($user in $users) { $Groups = (Get-ADPrincipalGroupMembership -Identity $user.SamAccountName | […]

How to fix puppet certificate errors

When we recently took over some client’s infrastructure, we started to get the following error. I just had to renew the cert to fix this. To renew, follow the steps below: 1.Delete the old certificate from client. root@agent1:/etc/puppetlabs/puppet# mv ssl ssl.20171115 2.Delete the old certificate from server. root@ip-172-31-7-177:/home/ubuntu# puppet cert clean agent1.ap-southeast-1.compute.internal   //make sure to change the […]