setuser2 - UserID Replacement
Setuser2 - UserID replacement
To Install do the following;
1. Open Notepad
2. Copy and Paste the content from the Begin to the End marker.
3. Save the document as setuser2.bat
4. Type "setuser2 Abdul", which will replace the last logged on user. Needs to be done from where the file is located.
----Begin--------------
if "%1"=="" goto error
set tmpfile=C:\temp.reg
echo REGEDIT4>%tmpfile%
echo.>>%tmpfile%
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]>>%tmpfile%
echo "DefaultUserName"="%1">>%tmpfile%
call regedit %tmpfile%
del %tmpfile%
goto exit
:error
echo You must specify the username
pause
:exit
-------------End---------
Silent mode
1. Open Notepad
2. Copy and Paste the content from the Begin to the End marker.
3. Save the document as setuser.bat
4. Type "setuser Abdul", which will replace the last logged on user. Needs to be done from where the file is located.
----Begin--------------
if "%1"=="" goto error
set tmpfile=C:\temp.reg
echo REGEDIT4>%tmpfile%
echo.>>%tmpfile%
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]>>%tmpfile%
echo "DefaultUserName"="%1">>%tmpfile%
call regedit /s %tmpfile%
del %tmpfile%
goto exit
:error
echo You must specify the username
pause
:exit
-------------End---------