I want to write a script for auditing the machines in the network. I
was planning to use the systeminfo command, but had some problems.
Using this syntax:
systeminfo /s RemotePC /u domain\admin /p password >report.txt
Get this error: ERROR: Logon failure: unknown user name or bad
password.
I have administrative rights on the RemotePC with this account. After
a few attempts checked if the user is locked (for wrong password
entering) but it was not. This means that AD was not asked for
checking user, may be.
Any ideas?
tnx,
Ivan
where I have an account on remotepc without problem.
Can't test domain\user in lack of a domain ;-)
--
Greetings
Matthias
Nice workaround :) Haven't tought of it.
I think it will do the work, but nevertheless if we solve the problem,
even just for the sport, would be nice. After all this function is
part of systeminfo, but not functioning.
Thanks again for the advice, Matthias.
br,
Ivan
A recent change here may apply there too. For some MS commands, it is
now necessary to use machine\user or user@domain, but domain\user no
longer works.
--
T.E.D. (tda...@gearbox.maem.umr.edu)
Remove "gearbox.maem." from address - that one is dead
Just have test it, same result!
SET IP=1
:SCAN
psexec \\10.1.1.%IP% /u domain\user /p password systeminfo /fo table
>>audit.txt
SET /A IP=IP+1
IF "%IP%" == "254" GOTO :EOF
GOTO SCAN
Of course change 10.1.1.%IP% with your current network settings.
Define domain\user and password.
Hope it will be useful.
Respect,
Ivan