Now before anyone thinks I did not research, please hear me out.
I need to write something that will scan a list of machines and see if a particular account is being used to run resources, like services, scheduled jobs, etc.
I think I have the part complete to check services. My problem is now with tasks. I know that win32_scheduledjobs scans the "AT" tasks but it seem that anything scheduled in the windows GUI will NOT be displayed in that class. Any ideas how I can get this info? Am I missing any other resources to check as well? This is a service account that needs to go away.
I know schtasks is a command tool, but I cannot filter it to show just the ones for this svc account.
Thanks in advance.
I need to write something that will scan a list of machines and see if a particular account is being used to run resources, like services, scheduled jobs, etc.
I think I have the part complete to check services. My problem is now with tasks. I know that win32_scheduledjobs scans the "AT" tasks but it seem that anything scheduled in the windows GUI will NOT be displayed in that class. Any ideas how I can get this info? Am I missing any other resources to check as well? This is a service account that needs to go away.
I know schtasks is a command tool, but I cannot filter it to show just the ones for this svc account.
Thanks in advance.