Ok have this Bat file and it may hang on the second part of the install how to time this out and allow this to continue.
@echo off
set /p adminid=Enter admin ID:
if "%adminid%"=="" goto error1
set /p passw=Enter admin ID password:
if "%passw%"=="" goto error2
echo Fixing SCCM Clients...
for /f "tokens=*" %%w in (ListofPCs.txt) do (
psexec \\%%w -u one\%adminid% -p %passw% "\\server\smsclient\CCMSetup.exe" /Uninstall
psexec \\%%w -u one\%adminid% -p %passw% "\\server\smsclient\CCMSetup.exe" /NOSERVICE SMSSITECODE=P02 SMSSLP=ITSSSA188 SMSCACHESIZE=5120 CCMHTTPPORT=47001 DISABLECACHEOPT=TRUE
DISABLESITEOPT=TRUE FSP=server
echo %%w completed!
)
goto end
:error1
echo Invalid admin ID!
goto end
:error2
echo Invalid admin ID password!
goto end
:end
pause
After the first uninstall runs it gives a \\server\smsclient\ccmsetup.exe exited on computer with error code 1
then PSexec will run the install and it can hang on the pc for whatever reason I want to give it like 10 min and then let it continue if the computer does not return a exit.