@RichMatheisen-8856 Thank you.
I like the look of your script and I just ran it on my machine but it didn't manage to find anything.
Here is what the other version returned.

Thanks
thanks DS,
I was looking for something that could scan a group of pcs in my domain and returns the service accounts that were running under a particular user account.
For example something like this :
AllComputersInDomain = Get-AllComputersInDomain
Get-WmiObject win32_service -AllComputersInDomain | Where-Object {$_.startupname -like “user1”} | Format-Table name,startname,
Is that possible.
Thanks
Hi Stefan,
Thanks for the reply.
My main concern is that MS are going to leave Orchestrator behind and focus on Azure when there is still so much On-Premise infrastructure out there.
For example we have over 500 Servers and I can't see them being migrated to Azure anytime soon and attempting to manage them from the Cloud seems a bit over the top when we have so much to do.
I can see the hybrid model working for a couple of machines, but I don't know if it would be any good in my case where we need something a more robust and dependable.
Hi Ian
Thanks that works well and it has formatted it for what I need.
I have one more question.
How can I subtract 24hrs from the returned value of the DateTime object and format it in the same way?
Here is an example of what I mean.
Where-Object
{
$_.Created -ge Get-Date -24hrs -format "MM/dd/yyyy HH:mm:ss"
}
Thanks
Hi thgibard,
Yes but I would have to write the logic and then have azure automation run the script or workbook on a scheduled basis and it costs.
I was hoping that MS would have built the logic into dynamic groups already because some of my users only need to be in there for a couple of days and it would be neat if they could drop out at a pre-defined time without me having to go in there and maintain it.
Thanks
Hi Aman,
I have never used Access Review before and it looks quite good. I have been after something like this for some time too.
It may not meet the requirements for what I am looking for here. But at least I can get the owner to go through the membership and add/remove users on their own without having to do it myself.
I will explore this avenue for now until I can find a way for users to drop out of a group based on a date/time value.
Thanks
Ok I see.
It only works when people are trying to make a connections to my accounts.
But I cant stop someone from sending me an email from a non legacy clients.
It's only works on authentication.
Thanks