How to display what...
 
Notifications
Clear all

We had a major storm through here recently and we suffered damage to the house roof and ceilings. I just received the quote to repair. I’m hoping that a small fraction of the 80,000 odd people that download SDIO and/or Desktop Info every month won’t mind chipping in a few dollars to help out. Click on the big blue button at the bottom of the page to help us keep a roof over our heads, literally!

Guests have read-only access to our forums. If you wish to participate you will need to register. Be sure to activate your account from the email sent to you when you register.

How to display what domain a computer is joined to.

7 Posts
3 Users
1 Reactions
548 Views
Blue88ns
(@blue88ns)
Eminent Member Registered
Joined: 9 months ago
Posts: 12
Topic starter  

Hi,

 

I have searched the forum but can't find the right syntax to show the domain that the computer is joined to. Any help appreciated.

 

Thanks.


   
Quote
Topic Tags
Glenn
(@glenn)
Member Admin
Joined: 7 years ago
Posts: 1444
 

does DOMAIN not work?


   
ReplyQuote
Blue88ns
(@blue88ns)
Eminent Member Registered
Joined: 9 months ago
Posts: 12
Topic starter  

@glenn I get 'Domain name    <n/a>'

 

Do I need any other commands with DOMAIN?


   
ReplyQuote
Blue88ns
(@blue88ns)
Eminent Member Registered
Joined: 9 months ago
Posts: 12
Topic starter  

It works! I was doing my main testing on my home PC which is not domain joined. I tested on a domain computer and yes, it works.


   
Glenn reacted
ReplyQuote
(@sts-mike)
Active Member Registered
Joined: 9 months ago
Posts: 10
 

DOMAIN=text:Domain Name,set:userdomain

 

Bonus tip: you can use this:

[text]
noresults=Workgroup

...at the beginning of your config to declare what a null value will return. Otherwise it will display <n/a>.

 


   
ReplyQuote
Glenn
(@glenn)
Member Admin
Joined: 7 years ago
Posts: 1444
 

@sts-mike that will display for every item that shows no results. A better option is to include the no-result option in the item itself:

DOMAIN=text:Domain Name, set:userdomain, no-result=Workgroup

   
ReplyQuote
(@sts-mike)
Active Member Registered
Joined: 9 months ago
Posts: 10
 

That is true.  We have ours set to <N/A>, but I wanted to mention "workgroup" for this instance.  I shoulda mentioned that.  Thanks.


   
ReplyQuote
Glenn's Page