Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

finding the logon server of remote computer

$
0
0

hello there, I hope someone can guide me on this. I would like to know if there is a command that I can run from the power-shell console that will give me the LOGON SERVER of  the PCs I'm researching without having to remote each PC and interrupt the users. I will then create the script to do this for multiple remote computers. 

I'm doing the following by remote connecting to each PC. I'm looking to get the same results as %logonserver%

example:

c:\> echo %logonserver%

\\DC1

I know there got to be way that I can do this remotely to all the PCs in question. I believe in the power of power-shell Big Smile

Thanks in advanced. 

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles