Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 285
  • Last Modified:

Need to get the Computer names and users name whose Location tab's are empty

Hi,

Need to get the Computer names and users name whose Location tab's are empty.Any way to get them to a file.
From ADS.
Regards
Sharath
0
bsharath
Asked:
bsharath
  • 6
  • 3
1 Solution
 
RainUKCommented:
Use ADSI interface in VB6 for IADsUser and computer object

0
 
Farhan KaziSystems EngineerCommented:
Hi Sharath,
Following statement will list the names of Computers where location text box is empty. I didn't find such tab or text box in User properties.

Click Start -> Run -> Cmd.exe -> OK

DSQuery * -Filter "(&(objectCategory=computer)(!location=*))" -Attr Name -Limit 0 -L

Hope this helps!
Farhan
0
 
bsharathAuthor Commented:
Users tab i meant the Office box in the General tab
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
bsharathAuthor Commented:
Can you help me in some of the posts...
0
 
Farhan KaziSystems EngineerCommented:
Sure can you post the links here...

Following statement will list the names of Users where Office text box (inside General tab) is empty.

DSQuery * -Filter "(&(sAMAccountType=805306368)(!physicalDeliveryOfficeName=*))" -Attr Name -Limit 0 -L
0
 
bsharathAuthor Commented:
Thanks a lot.....
Farhan how can i get users and computers who have the Location filled.In users the Office box filled with the filled data.
0
 
Farhan KaziSystems EngineerCommented:
Thanks Sharath,

>> How can i get users and computers who have the Location filled...

For Computers:
DSQuery * -Filter "(&(objectCategory=computer)(location=*))" -Attr Name -Limit 0 -L

For Users:
DSQuery * -Filter "(&(sAMAccountType=805306368)(physicalDeliveryOfficeName=*))" -Attr Name -Limit 0 -L
0
 
bsharathAuthor Commented:
Thanks Farhan...
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 6
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now