Ask your PowerShell-related questions, including questions on cmdlet development!
Forum rules Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 7 years and 2 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
I am trying to audit the use of Scheduled Tasks within my organization. Company policy says we must use a prefix for all scheduled tasks followed by the purpose. "XYZ-{TaskName}"
Since we are unable to use wildcards in retrieving the Tasks, is there a way to use a tool like schtasks and import that as an object into PoSH? Ultimately, I want a list of custom scripts running in the company and the path of the script (so we can back it up).
If you happen to be working on a system with an older version of PowerShell that doesn't include the ScheduledTasks module, you can use schtasks.exe in PowerShell and produce object based output with it.
This topic is 7 years and 2 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.