Author Topic: How to get informations from a Windows-System  (Read 1081 times)


  • Newbie
  • *
  • Posts: 12
    • Camping Saland
How to get informations from a Windows-System
« on: May 19, 2018, 11:32:12 am »
Hello all together,
First of all I'm sorry for my bad English.
At the moment I try to collect many information about some system in our network, which are not or maybe not in our Domain.
No problem to get info like ComputerName and WindowsVerion ect.

But I don't find a sexy way to get DomainName or WorkgroupName with a WinBatch function.

Of course it possible to use the environment "USERDOMAIN" but I don't know how it work if the computer is not in a domain.
Thaks for help
si tacuisses, philosophus mansisses!! ;-)
if you had remained silent, you would have continued to be a philosopher!!
Wenn du geschwiegen hättest, wärst du ein Philosoph geblieben!!


  • Tech Support
  • *****
  • Posts: 3985
    • WinBatch
Re: How to get informations from a Windows-System
« Reply #1 on: May 21, 2018, 07:28:33 am »
There are a few caveats but take a look at the following brief article:

For what it is worth, "USERDOMAIN" is normally set to the computer's name on Workgroup computers.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade