Forum Discussion
AzureAvenger
May 23, 2023Copper Contributor
Need a 5.1 script that will show the last login date, days since, and the SG's it belongs to
Here is my code so far. I don't know what I'm doing wrong, Can you please help me fix it. I plan to schedule it so it runs once per day on a server that has the proper modules installed for users tha...
May 24, 2023
AzureAvenger You could use the Windows Task Scheduler with a gMSA account (https://learn.microsoft.com/en-us/windows-server/security/group-managed-service-accounts/group-managed-service-accounts-overview) and strip all the Credential things from the script. It will run as that account and do the AD read actions and emailing with it.