Put the following in a Windows batch file and execute with AD Domain Admin priviledges
@echo off
echo Enter hostname or IP...
set /p input=
wmic.exe /node:"%input%" ComputerSystem Get UserName
pause
Put the following in a Windows batch file and execute with AD Domain Admin priviledges
@echo off
echo Enter hostname or IP...
set /p input=
wmic.exe /node:"%input%" ComputerSystem Get UserName
pause
Copyright © 2022. All rights reserved.