Who is installed Software's ?

Collection for computers that failed to run an advertisement 

https://blog.coretech.dk/confmgr07/collection-for-computers-that-failed-to-run-an-advertisement/  

Who is installed Software’s ?

https://blog.coretech.dk/confmgr07/config-mgr-inventory-and-reporting/audit-software-installations/

Troubleshooting SCCM Software Updates

  https://www.myitforum.com/myITToolbar/frame-click.asp? https://blogs.technet.com/b/sudheesn/archive/2010/11/10/troubleshooting-sccm-part-iii-software-updates.aspx  

VB Script to Clear SCCM Client Cache (C:WindowsSystem32CCMCache)

——-

on error resume next dim oUIResManager
dim oCache
dim oCacheElement
dim oCacheElements set oUIResManager = createobject(“UIResource.UIResourceMgr”) if oUIResManager is nothing then
      wscript.echo “Couldn’t create Resource Manager – quitting”
      wscript.quit
end if set oCache=oUIResManager.GetCacheInfo() if oCache is nothing then
      set oUIResManager=nothing
      wscript.echo “Couldn’t get cache info – quitting”
      wscript.quit
end if set oCacheElements=oCache.GetCacheElements for each oCacheElement in oCacheElements
oCache.DeleteCacheElement(oCacheElement.CacheElementID)
next set oCacheElements=nothing
set oUIResManager=nothing
set oCache=nothing   ———-  

Do you want to collect all clients LOG files to send it to some one ?

use this script below …

1. Create a folder and place the following batch files and txt file on it: Collect.bat, TestAll.bat, TestPC.bat, and Computers.txt. The codes for the batch files are given below. Place the name or ip address of the machines in computers.txt (one computer name/ip address per line) 2. Run TestAll.bat 3. A folder named “Result” will be created inside the folder where the batch files are located. This folder will contain the log files of the machines that you entered in computers.txt A. Collect.bat MD .Result%1
MD .Result%1CCMLog
MD .Result%1CCMSETUPLog
xcopy %1admin$system32ccmlogs*.* .Result%1CCMLog /E /Y
xcopy %1admin$system32ccmsetup*.log .Result%1CCMSETUPLog /E /Y B. TestAll.bat rd  /Q /S .Result_OLD
Move /Y .Result .Result_OLD
rd  /Q /S .Result
MD .Result del FailPing.txt
del FailConnect.txt
del Succeed.txt
for /f %%i in (computers.txt) do call TestPC %%i C. TestPC.bat @echo off
REM usage: TestPC PCName if not %1. == . goto INSTALL
Echo Usage: TestPC PCName
goto END :INSTALL
REM @echo on
Echo Now test %1 Echo Now try to ping %1
ping %1 -n 1 | find /i “ttl=” && Goto ONLINE
Goto OFFLINE :ONLINE
Echo can ping %1
Echo Now try to connect to %1Admin$
Dir %1Admin$ >nul
If ERRORLEVEL=1 goto ConnectionFailed
Echo Connection test succeeded for %1. Can connect to %1admin$.
Echo %1 >>.resultSucceed.txt
Echo Now collecting data
call Collect.bat %1
goto END :OFFLINE
echo cannot ping %1
Echo %1 >>.resultFailPing.txt
goto Failed :ConnectionFailed
Echo cannot connect to %1admin$.
Echo %1 >>.resultFailConnect.txt
goto Failed :Failed
Echo Connection test failed for %1 :END
Echo. D. Computers.txt

Leave a Comment