From: mcmallar on

Greetings.

I have a specific problem, which I cannot find solution to. I need to
find logon server, on which computers in my domain authenticated. I
tried to solve this with WMI:

Set colItems = objWMIService.ExecQuery("SELECT * FROM
Win32_NetworkLoginProfile")

WScript.Echo "LogonServer: " & objItem.LogonServer

The response is \\*. I used Google and find out, that this means the
computer can logon to any domain controller. I need actual name of the
server, on which computer is authenticated. If you type SET in CMD
window it echoes %LOGONSERVER% variable. How can I get the value of this
variable on remote computer.

Any help really appreciated.

Peter



--
mcmallar
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

From: Al Dunbar [MS-MVP] on
I understand that domain member workstations communicate with the domain
controllers, however, I do not believe that the process is completely
equivalent to the authentication that takes place when a user logs in. For
one thing, security group membership cannot be used equivalently for
computers as for users.

Consider the following sequence of events:

- Workstation starts up, and interacts with DC001.
- DC001 is inaccessible due to a short network outage.
- user U1 logs in and authenticates against DC002.
- DC001 comes back online
- user U1 logs out
- DC001 is decommissioned and removed permanently from the network.
- user U2 attempts to logon.

at this point, what would be the point of the workstation having any
knowledge of a computer that no longer exists in the domain? Would it make
any sense for the lack of that particular DC to have any effect on what
happens on the workstation now?

/Al

"mcmallar" <mcmallar.2k9vlq(a)mail.codecomments.com> wrote in message
news:mcmallar.2k9vlq(a)mail.codecomments.com...
>
> Greetings.
>
> I have a specific problem, which I cannot find solution to. I need to
> find logon server, on which computers in my domain authenticated. I
> tried to solve this with WMI:
>
> Set colItems = objWMIService.ExecQuery("SELECT * FROM
> Win32_NetworkLoginProfile")
>
> WScript.Echo "LogonServer: " & objItem.LogonServer
>
> The response is \\*. I used Google and find out, that this means the
> computer can logon to any domain controller. I need actual name of the
> server, on which computer is authenticated. If you type SET in CMD
> window it echoes %LOGONSERVER% variable. How can I get the value of this
> variable on remote computer.
>
> Any help really appreciated.
>
> Peter
>
>
>
> --
> mcmallar
> ------------------------------------------------------------------------
> Posted via http://www.codecomments.com
> ------------------------------------------------------------------------
>