Coming soon - Get a detailed view of why an account is flagged as spam!
view details
2
Modifying script to return empty scriptpath users in AD
Post Body

So I have the below code

Get-ADUser -Filter  'enabled -eq $true' -Properties scriptpath, homedrive, homedirectory | Select-Object Name, scriptpath, homedrive, homedirectory | Out-Gridview

But I'm not getting how to get it to return users with empty logon scripts. I tried changing the -Filter 'enabled -eq $true' to -Filter 'scriptpath -eq $null' and that didn't work. So then I changed it to -Filter 'scriptpath -ne logon.vbs' and that didn't work either. What am I doing wrong?

Author
Account Strength
100%
Account Age
12 years
Verified Email
Yes
Verified Flair
Yes
Total Karma
66,614
Link Karma
30,920
Comment Karma
35,639
Profile updated: 3 days ago
Posts updated: 9 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
8 years ago