We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, thanks for sharing. I was wondering whether you could add something to identify newly created accounts to the effects of:
$DateCutOff = (Get-Date).AddDays(-30) Get-ADUser -Filter * -Properties whenCreated | where {$_.whenCreated -gt $DateCufOff} | FT Name, whenCreated
The text was updated successfully, but these errors were encountered:
Feel free to add this and create a pull request and we'll merge it. Many thanks
Sorry, something went wrong.
Can be done directly with a filter (and also on groups!)
$DateCutOff = ((Get-Date).AddDays(-30)).Date $newUsers = Get-ADUser -Filter {whenCreated -ge $DateCutOff} -Properties whenCreated | select whenCreated,SamAccountName $newGroups = Get-ADGroup -Filter {whenCreated -ge $DateCutOff} -Properties whenCreated | select whenCreated,SamAccountName
#21
No branches or pull requests
Hi, thanks for sharing. I was wondering whether you could add something to identify newly created accounts to the effects of:
$DateCutOff = (Get-Date).AddDays(-30)
Get-ADUser -Filter * -Properties whenCreated | where {$_.whenCreated -gt $DateCufOff} | FT Name, whenCreated
The text was updated successfully, but these errors were encountered: