Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

@network functions

Mar
26
0
I have a network consisting of 2 workstations and a server. The server has the Windows server 2019 operating system and also has Microsoft SQL Server 2017 with 2 instances. No domain is defined, only peer-to-peer links. The server has more than 10 shares defined. I tried to use some network functions. The results are at least curious.
@DOMAIN returns echo off. As there is no defined domain, the answer is normal.
So i tried with @GROUP. If I define as server the computer from which I launch the query, the answer is 1. That means I am part of my group defined on my PC. The answer is useless, although it is correct. But if I change the server definition and want to search on a real server, the answer is zero. As the group I'm looking for actually exists on the server, also the users, the answer is incorrect. I expected not to find information in a domain if there is no domain. But I expected to be able to use the group reference. Which in my network does not work.
I'm also trying @ENUMSERVERS. In a query like <<for %i in (0 1 2) echo %@enumservers[%i,*]>> the result is echo off. If I add the computer type to the search, I get the same result. Both for WORKSTATION and SQL SERVER.

I wonder if I am not wrong somewhere.

Thank you,
Florin
 
Back
Top