We can stop all the services on our local VM for Doccumentum or in Production by saving the below Content as.bat file and we can run it.
@echo off
:: BatchGotAdminRight
:-------------------------------------
REM --> Check for permissions
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
REM --> If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' (
echo Requesting administrative privileges...
goto UACPrompt
) else ( goto gotAdmin )
:UACPrompt
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
set params = %*:"=""
echo UAC.ShellExecute "cmd.exe", "/c %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs"
"%temp%\getadmin.vbs"
del "%temp%\getadmin.vbs"
exit /B
:gotAdmin
pushd "%CD%"
CD /D "%~dp0"
:--------------------------------------
NET STOP tcruntime-c-tcserver-xmsAgentInstance
NET STOP tcruntime-C-tcserver-xcpInstance
NET STOP tcruntime-C-tcserver-appInstance
NET STOP DmWatchdog-C-xPlore
NET STOP DmIndexagent
NET STOP DmPrimaryDsearch
NET STOP DctmThumbnailServer
NET STOP CTSMonitor
NET STOP DocumentumCTS
NET STOP CtsAdminAgent
NET STOP DmMethodServer
NET STOP DmServercorp
NET STOP DmDocBroker
NET STOP OracleServiceCORP
pause
DEL /Q /F "C:\Documentum\jboss7.1.1\server\DctmServer_MethodServer\tmp\*.*"
DEL /Q /F "C:\Documentum\jboss7.1.1\server\DctmServer_MethodServer\logs\*.*"
DEL /Q /F "C:\Documentum\logs\*.*"
DEL /Q /F "C:\Documentum\jboss7.1.1\server\DctmServer_MethodServer\log\*.*"
RD /Q /S "C:\Documentum\cache"
MD "C:\Documentum\cache"
DEL /Q /F "C:\xPlore\jboss7.1.1\server\DctmServer_PrimaryDsearch\log\*.*"
DEL /Q /F "C:\xPlore\jboss7.1.1\server\DctmServer_PrimaryDsearch\logs\*.*"
DEL /Q /F "C:\xPlore\jboss7.1.1\server\DctmServer_PrimaryDsearch\tmp\*.*"
DEL /Q /F "C:\xPlore\jboss7.1.1\server\DctmServer_Indexagent\log\*.*"
DEL /Q /F "C:\xPlore\jboss7.1.1\server\DctmServer_Indexagent\logs\*.*"
DEL /Q /F "C:\xPlore\jboss7.1.1\server\DctmServer_Indexagent\tmp\*.*"
DEL /Q /F "C:\tcserver\appInstance\logs\*.*"
RD /Q /S "C:\tcserver\appInstance\work"
RD /Q /S "C:\tcserver\appInstance\temp"
MD "C:\tcserver\appInstance\temp"
RD /Q /S "C:\tcserver\appInstance\bin\winx86_64\documentum\cache"
MD "C:\tcserver\appInstance\bin\winx86_64\documentum\cache
DEL /Q /F "C:\tcserver\xmsAgentInstance\logs\*.*"
RD /Q /S "C:\tcserver\xmsAgentInstance\work"
RD /Q /S "C:\tcserver\xmsAgentInstance\temp"
MD "C:\tcserver\xmsAgentInstance\temp"
RD /Q /S "C:\tcserver\xmsAgentInstance\bin\winx86_64\documentum\cache"
MD "C:\tcserver\xmsAgentInstance\bin\winx86_64\documentum\cache
RD /Q /S "C:\tcserver\xmsAgentInstance\webapps\xms-agent\WEB-INF\work"
DEL /Q /F "C:\tcserver\xcpInstance\logs\*.*"
RD /Q /S "C:\tcserver\xcpInstance\work\Catalina\localhost"
RD /Q /S "C:\tcserver\xcpInstance\temp"
MD "C:\tcserver\xcpInstance\temp"
RD /Q /S "C:\tcserver\xcpInstance\bin\winx86_64\documentum\cache"
MD "C:\tcserver\xcpInstance\bin\winx86_64\documentum\cache"
DEL /Q /F "C:\Documentum\CTS\logs\*.*"
RD /Q /S "C:\Users\dmadmin\AppData\Local\Temp\1\*.*"
RD /Q /S "C:\temp\*.*"
RD /Q /S "E:\Install Software\xCPDesignerP05\logs\*.*"
RD /Q /S "C:\Users\dmadmin\.m2\*.*"
RD /Q /S "C:\Users\dmadmin\AppData\Local\eclipse\Cache\*.*"
@echo off
:: BatchGotAdminRight
:-------------------------------------
REM --> Check for permissions
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
REM --> If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' (
echo Requesting administrative privileges...
goto UACPrompt
) else ( goto gotAdmin )
:UACPrompt
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
set params = %*:"=""
echo UAC.ShellExecute "cmd.exe", "/c %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs"
"%temp%\getadmin.vbs"
del "%temp%\getadmin.vbs"
exit /B
:gotAdmin
pushd "%CD%"
CD /D "%~dp0"
:--------------------------------------
NET STOP tcruntime-c-tcserver-xmsAgentInstance
NET STOP tcruntime-C-tcserver-xcpInstance
NET STOP tcruntime-C-tcserver-appInstance
NET STOP DmWatchdog-C-xPlore
NET STOP DmIndexagent
NET STOP DmPrimaryDsearch
NET STOP DctmThumbnailServer
NET STOP CTSMonitor
NET STOP DocumentumCTS
NET STOP CtsAdminAgent
NET STOP DmMethodServer
NET STOP DmServercorp
NET STOP DmDocBroker
NET STOP OracleServiceCORP
pause
DEL /Q /F "C:\Documentum\jboss7.1.1\server\DctmServer_MethodServer\tmp\*.*"
DEL /Q /F "C:\Documentum\jboss7.1.1\server\DctmServer_MethodServer\logs\*.*"
DEL /Q /F "C:\Documentum\logs\*.*"
DEL /Q /F "C:\Documentum\jboss7.1.1\server\DctmServer_MethodServer\log\*.*"
RD /Q /S "C:\Documentum\cache"
MD "C:\Documentum\cache"
DEL /Q /F "C:\xPlore\jboss7.1.1\server\DctmServer_PrimaryDsearch\log\*.*"
DEL /Q /F "C:\xPlore\jboss7.1.1\server\DctmServer_PrimaryDsearch\logs\*.*"
DEL /Q /F "C:\xPlore\jboss7.1.1\server\DctmServer_PrimaryDsearch\tmp\*.*"
DEL /Q /F "C:\xPlore\jboss7.1.1\server\DctmServer_Indexagent\log\*.*"
DEL /Q /F "C:\xPlore\jboss7.1.1\server\DctmServer_Indexagent\logs\*.*"
DEL /Q /F "C:\xPlore\jboss7.1.1\server\DctmServer_Indexagent\tmp\*.*"
DEL /Q /F "C:\tcserver\appInstance\logs\*.*"
RD /Q /S "C:\tcserver\appInstance\work"
RD /Q /S "C:\tcserver\appInstance\temp"
MD "C:\tcserver\appInstance\temp"
RD /Q /S "C:\tcserver\appInstance\bin\winx86_64\documentum\cache"
MD "C:\tcserver\appInstance\bin\winx86_64\documentum\cache
DEL /Q /F "C:\tcserver\xmsAgentInstance\logs\*.*"
RD /Q /S "C:\tcserver\xmsAgentInstance\work"
RD /Q /S "C:\tcserver\xmsAgentInstance\temp"
MD "C:\tcserver\xmsAgentInstance\temp"
RD /Q /S "C:\tcserver\xmsAgentInstance\bin\winx86_64\documentum\cache"
MD "C:\tcserver\xmsAgentInstance\bin\winx86_64\documentum\cache
RD /Q /S "C:\tcserver\xmsAgentInstance\webapps\xms-agent\WEB-INF\work"
DEL /Q /F "C:\tcserver\xcpInstance\logs\*.*"
RD /Q /S "C:\tcserver\xcpInstance\work\Catalina\localhost"
RD /Q /S "C:\tcserver\xcpInstance\temp"
MD "C:\tcserver\xcpInstance\temp"
RD /Q /S "C:\tcserver\xcpInstance\bin\winx86_64\documentum\cache"
MD "C:\tcserver\xcpInstance\bin\winx86_64\documentum\cache"
DEL /Q /F "C:\Documentum\CTS\logs\*.*"
RD /Q /S "C:\Users\dmadmin\AppData\Local\Temp\1\*.*"
RD /Q /S "C:\temp\*.*"
RD /Q /S "E:\Install Software\xCPDesignerP05\logs\*.*"
RD /Q /S "C:\Users\dmadmin\.m2\*.*"
RD /Q /S "C:\Users\dmadmin\AppData\Local\eclipse\Cache\*.*"
No comments:
Post a Comment