0 votes

I need to run a PowerShell on accounts that are 90 days or older.

Would that be "if the 'When Created' is greater then or queal to '%datetime,-90d%'" or "if the 'When Created' is less then or queal to '%datetime,-90d%'"

by (1.3k points)

1 Answer

0 votes
by (277k points)

Hello,

As the condition should be met for users that were created more than 90 days ago, it should be if the 'When Created' property is less then or equal to '%datetime,-90d%.

Related questions

0 votes
1 answer

Is there a way to have a Scheduled Task with 4 different condition? I want to create a scheduled task start every Monday and the condition see: The next Saturday of the week ... of the week is the fifth of the month then no action Thanks in advance, Simone

asked Jan 18, 2022 by Simone.Vailati (430 points)
0 votes
1 answer

Is there a report, or a way to make a custom report, to show when a custom command was run and who it was run against? The Operation in the log is "Execute Deprovision User Account"

asked Apr 11, 2023 by stlouischiefs (20 points)
0 votes
1 answer

We have business rules active for creating (Office365)accounts. When a new account is created and activated for Office365 the mailbox is not available straight away ... how others are handeling the creation for Office365 accounts without on-premise Exchange.

asked Sep 25, 2017 by Maarten (100 points)
0 votes
1 answer

I have a feild called Decommissioned Date and I can not figure out how to run a scheduled task the day after that date. So If an account got decommissioned today I want the task to run tomorrow.

asked Jan 9, 2020 by hgletifer (1.3k points)
0 votes
1 answer

Receive "Index operation failed; the array index evaluated to null. Stack trace: at <ScriptBlock>, <No file>: line 104>" and "Index operation failed; the ... $GroupName, $GroupDN." } } #foreach write-output "" Write-Output "" Stop-Transcript

asked Apr 14, 2022 by jbahou (20 points)
3,410 questions
3,106 answers
7,902 comments
545,798 users