Archive for the ‘VBScript’ Category

LogonHours

Below is a script to find any users who have logon hours restricted (i.e. not set to “Allow Any Time”)
 
Don’t forget to generate an objects.txt by doing a “dsquery –user –l 0 > objects.txt” as per any of my other scripts.
 

strtextfile = "objects.txt" [...]

Continue reading »

OALGen will skip user entry ‘USER’ in address list "\Global Address List’ because the SMTP address " is invalid

This old flame popped up again the other day. Now I seem to remember there was some pre-SP1 issues regarding this, however I wasn’t aware that post-SP1 you could still have problems.
Basically the OAB wont generate entries for users who’s "Email" field in AD is blank (or, in fact, not the same as the "Reply [...]

Continue reading »

Finding users who are not Inheriting Rights

Got a request from a support company, they have found multiple users who are not inheriting rights from above. These users are random, and he wanted a quick way to find (and therefore fix) the users effected. Screenshot below of the checkbox the users have mysteriously "unchecked";

So I created a little [...]

Continue reading »