On the network/in the domain

Is there a way to determine whether a computer is on the network, but maybe not in the domain? I know Test-Connection would tell me the computer is on the network and I think Test-Wsman would tell me if it’s in the domain or not. Or Test-ComputerSecureChannel. Basically I want to output something like this:

ComputerName: OnNetwork: InDomain: vnvmw-daugh True True

ComputerName: OnNetwork: InDomain: vnvmw-matt True False

submitted by /u/sleightof52
[link] [comments]

Leave a Reply