Basically I want to create a pop up when the users logs on if the users account is within 30 days of the expiration date. I know how to create the pop up and I know the command $env:UserName pulls the current users username. I also know how to query a list of users from AD but I cant figure out how to query a specific user in AD and pull there properties. More specifically I want to query the logged on users properties.
submitted by /u/ItsSgtMarv
[link] [comments]
The post How to pull logged on users active directory information? appeared first on How to Code .NET.