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 […]