GGHC
asked on
Batch script to scan and echo the result if .pst exist
Looking to do a script that will
1) Use Dsquery to get list of users from the AD OU > "OU=Blah Users,DC=blah,DC=com"
2) Then for each user above check to see if a .PST exist.
Example path: \\%username%W10\c$\Users\% username%\ AppData\Lo cal\Google \Google Apps Sync\
3) If exist Echo Username to a file.
Note: some users in OU may not have a PC so script should not get halted for those.
Thanks in advance.
1) Use Dsquery to get list of users from the AD OU > "OU=Blah Users,DC=blah,DC=com"
2) Then for each user above check to see if a .PST exist.
Example path: \\%username%W10\c$\Users\%
3) If exist Echo Username to a file.
Note: some users in OU may not have a PC so script should not get halted for those.
Thanks in advance.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER