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

Beat

  • Newbie
  • *
  • Posts: 4
    • 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
Beat

td

  • Tech Support
  • *****
  • Posts: 2538
    • 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:

http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/Networks~-~Servers/Microsoft~Client/wNT+Determine~if~Computer~is~in~a~Workgroup~or~Domain.txt

For what it is worth, "USERDOMAIN" is normally set to the computer's name on Workgroup computers.
"Success is a lousy teacher. It seduces smart people into thinking they can't lose."
  - Bill Gates