![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
![]() |

|
| Microsoft Windows xp error all errors and bugs related to Microsoft winxp error |
![]() |
|
Need local admin account on thousands of 2000/XP desktops in a non-active directory e
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Fixed Error!
Posts: 1,497
Join Date: Mar 2007
Rep Power: 3
IM:
|
Does anyone have an idea how to solve this problem without having to visit each machine physically? |
|
|
|
|
|
|
|
|
#2 (permalink) |
|
Fixed Error!
Posts: 1,497
Join Date: Mar 2007
Rep Power: 3
IM:
|
REM ------------------------------------------------- REM Process all computers in a list REM list consists of a text file with a PC name (or IP address) on each line) REM call process.cmd with computer name as paramter for each computer listed REM -------------------------------------------------------------------------------- FOR /F %%c in (computers.txt) DO call process.cmd %%c REM ------------------------------------------------- Next you need a batch script called process.cmd to perform actions on each PC: REM ------------------------------------------------- REM Check host on the network, end if not. ping -n 1 %1 >nul if errorlevel 1 goto notthere net use \\%1 /USER:Administrator password1 if not errorlevel 1 goto connected net use \\%1 /USER:Administrator password2 if not errorlevel 1 goto connected net use \\%1 /USER:Administrator password3 if not errorlevel 1 goto connected echo %1 : No passwords accepted goto end :connected echo %1 : Connected successfully REM What to do once connected to the PC with the correct password goes here. goto end :notthere echo %1 : Host not contacted :end REM ------------------------------------------------- This second script should ping the machine to check it's on the network, then try and connect using one of three passwords for Administrator. Once connected it can perform required actions (not yet specified in the script). It should report the outcome for each PC in the list so you know what it managed to do for each PC. This script isn't complete as I've not yet found the command to reset the administrator's command remotely, I'm sure it must be possible so I'll come back when I found this out. In the meantime at least this script give you something to test to verify what I've given so far works okay. I've based this on existing scripts for Windows XP systems, so it has a good chance of working okay first time, let me know if there are any problems so far. |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|