batch file to manage Microsoft Windowsuse batch file across the local network to:
REM batch file to gather information and clean temporary directories REM john meister - 1 Apr 2014 - gather user data - update - save in c:\bin REM john meister - 29 Aug 2014 - updated to include build dates REM john meister - 27 Sep 2014 - updated to include app info REM erase /F /S /Q \\WindowsWorkstation-xx\C$\Users\pt830a\AppData\Local\Temp\* REM erase /F /S /Q \\WindowsWorkstation-xx\C$\Windows\Temp\* REM erase /F /S /Q \\WindowsWorkstation-xx\C$\TEMP\* rem jm - 13jan2015 update to get systeminfo and add new systems - fix logfile REM ECHO ========================================================================= >> %logfile% REM ECHO dir "c:\Users" >> %logfile% REM dir "\\hostname\C$\Users\" >> %logfile% REM ECHO ========== Build Date ==================== >> %logfile% REM dir "\\WindowsWorkstation-xx\C$\Windows\Setup\State\State.ini" >> %logfile% REM ECHO ========== CAD info ==================== >> %logfile% REM dir "\\WindowsWorkstation-xx\C$\Cad" >> %logfile% REM dir "\\WindowsWorkstation-xx\C$\Cad\Vendor" >> %logfile% REM ECHO ========== other program info ==================== >> %logfile% REM dir "\\WindowsWorkstation-xx\C$\Program Files (x86)" >> %logfile% REM dir "\\WindowsWorkstation-xx\C$\Program Files" >> %logfile% REM erase /F /S /Q \\WindowsWorkstation-xx\C$\Users\pt830a\AppData\Local\Temp\* REM erase /F /S /Q \\WindowsWorkstation-xx\C$\Windows\Temp\* REM erase /F /S /Q \\WindowsWorkstation-xx\C$\TEMP\* REM systeminfo.exe /s WindowsWorkstation-xx >> %logfile% REM ECHO ========================================================================= >> %logfile% set logfile=c:\bin\labusers\2015-Jan-14-workstation-systeminfo-users-MAC-IP.txt ECHO ========================================================================= >> %logfile% echo %logfile% ECHO ========================================================================= >> %logfile% echo directory listed: %DATE% - %fulltime% >> %logfile% echo The following list is of users and applications on lab systems. >> %logfile% ECHO ========================================================================= >> %logfile% ECHO "dir \\WindowsWorkstation-A1\C$\Users\" >> %logfile% copy C:\LAB-FILES\LAB-FILES-stats.bat "\\WindowsWorkstation-A1\C$\LAB-FILES\" dir "\\WindowsWorkstation-A1\C$\Users\" >> %logfile% dir "\\WindowsWorkstation-A1\C$\Windows\Setup\State\State.ini" >> %logfile% ECHO ========== CAD info ==================== >> %logfile% dir "\\WindowsWorkstation-A1\C$\Cad" >> %logfile% dir "\\WindowsWorkstation-A1\C$\Cad\Vendor" >> %logfile% ECHO ========== other program info ==================== >> %logfile% dir "\\WindowsWorkstation-A1\C$\Program Files (x86)" >> %logfile% dir "\\WindowsWorkstation-A1\C$\Program Files" >> %logfile% erase /F /S /Q \\WindowsWorkstation-A1\C$\Users\pt830a\AppData\Local\Temp\* erase /F /S /Q \\WindowsWorkstation-A1\C$\Windows\Temp\* erase /F /S /Q \\WindowsWorkstation-A1\C$\TEMP\* systeminfo.exe /s WindowsWorkstation-A1 >> %logfile% ECHO ========================================================================= >> %logfile% ECHO dir "\\WindowsWorkstation-A2\C$\Users\" >> %logfile% copy C:\LAB-FILES\LAB-FILES-stats.bat "\\WindowsWorkstation-A2\C$\LAB-FILES\" dir "\\WindowsWorkstation-A2\C$\Users\" >> %logfile% dir "\\WindowsWorkstation-A2\C$\Windows\Setup\State\State.ini" >> %logfile% ECHO ========== CAD info ==================== >> %logfile% dir "\\WindowsWorkstation-A2\C$\Cad" >> %logfile% dir "\\WindowsWorkstation-A2\C$\Cad\Vendor" >> %logfile% ECHO ========== other program info ==================== >> %logfile% dir "\\WindowsWorkstation-A2\C$\Program Files (x86)" >> %logfile% dir "\\WindowsWorkstation-A2\C$\Program Files" >> %logfile% erase /F /S /Q \\WindowsWorkstation-A2\C$\Users\pt830a\AppData\Local\Temp\* erase /F /S /Q \\WindowsWorkstation-A2\C$\Windows\Temp\* erase /F /S /Q \\WindowsWorkstation-A2\C$\TEMP\* systeminfo.exe /s WindowsWorkstation-A2 >> %logfile% ECHO ========================================================================= >> %logfile% ECHO dir "\\WindowsWorkstation-A3\C$\Users\" >> %logfile% copy C:\LAB-FILES\LAB-FILES-stats.bat "\\WindowsWorkstation-A3\C$\LAB-FILES\" dir "\\WindowsWorkstation-A3\C$\Users\" >> %logfile% dir "\\WindowsWorkstation-A3\C$\Windows\Setup\State\State.ini" >> %logfile% ECHO ========== CAD info ==================== >> %logfile% dir "\\WindowsWorkstation-A3\C$\Cad" >> %logfile% dir "\\WindowsWorkstation-A3\C$\Cad\Vendor" >> %logfile% ECHO ========== other program info ==================== >> %logfile% dir "\\WindowsWorkstation-A3\C$\Program Files (x86)" >> %logfile% dir "\\WindowsWorkstation-A3\C$\Program Files" >> %logfile% erase /F /S /Q \\WindowsWorkstation-A3\C$\Users\pt830a\AppData\Local\Temp\* erase /F /S /Q \\WindowsWorkstation-A3\C$\Windows\Temp\* erase /F /S /Q \\WindowsWorkstation-A3\C$\TEMP\* systeminfo.exe /s WindowsWorkstation-A3 >> %logfile% ECHO ========================================================================= >> %logfile% ECHO dir "\\WindowsWorkstation-B1\C$\Users\" >> %logfile% copy C:\LAB-FILES\LAB-FILES-stats.bat "\\WindowsWorkstation-B1\C$\LAB-FILES\" dir "\\WindowsWorkstation-B1\C$\Users\" >> %logfile% dir "\\WindowsWorkstation-B1\C$\Windows\Setup\State\State.ini" >> %logfile% ECHO ========== CAD info ==================== >> %logfile% dir "\\WindowsWorkstation-B1\C$\Cad" >> %logfile% dir "\\WindowsWorkstation-B1\C$\Cad\Vendor" >> %logfile% ECHO ========== other program info ==================== >> %logfile% dir "\\WindowsWorkstation-B1\C$\Program Files (x86)" >> %logfile% dir "\\WindowsWorkstation-B1\C$\Program Files" >> %logfile% erase /F /S /Q \\WindowsWorkstation-B1\C$\Users\pt830a\AppData\Local\Temp\* erase /F /S /Q \\WindowsWorkstation-B1\C$\Windows\Temp\* erase /F /S /Q \\WindowsWorkstation-B1\C$\TEMP\* systeminfo.exe /s WindowsWorkstation-B1 >> %logfile% ECHO ========================================================================= >> %logfile% ECHO dir "\\WindowsWorkstation-B2\C$\Users\" >> %logfile% copy C:\LAB-FILES\LAB-FILES-stats.bat "\\WindowsWorkstation-B2\C$\LAB-FILES\" dir "\\WindowsWorkstation-B2\C$\Users\" >> %logfile% dir "\\WindowsWorkstation-B2\C$\Windows\Setup\State\State.ini" >> %logfile% ECHO ========== CAD info ==================== >> %logfile% dir "\\WindowsWorkstation-B2\C$\Cad" >> %logfile% dir "\\WindowsWorkstation-B2\C$\Cad\Vendor" >> %logfile% ECHO ========== other program info ==================== >> %logfile% dir "\\WindowsWorkstation-B2\C$\Program Files (x86)" >> %logfile% dir "\\WindowsWorkstation-B2\C$\Program Files" >> %logfile% erase /F /S /Q \\WindowsWorkstation-B2\C$\Users\pt830a\AppData\Local\Temp\* erase /F /S /Q \\WindowsWorkstation-B2\C$\Windows\Temp\* erase /F /S /Q \\WindowsWorkstation-B2\C$\TEMP\* systeminfo.exe /s WindowsWorkstation-B2 >> %logfile% ECHO ========================================================================= >> %logfile% ECHO dir "\\WindowsWorkstation-C1\C$\Users\" >> %logfile% copy C:\LAB-FILES\LAB-FILES-stats.bat "\\WindowsWorkstation-C1\C$\LAB-FILES\" dir "\\WindowsWorkstation-C1\C$\Users\" >> %logfile% dir "\\WindowsWorkstation-C1\C$\Windows\Setup\State\State.ini" >> %logfile% ECHO ========== CAD info ==================== >> %logfile% dir "\\WindowsWorkstation-C1\C$\Cad" >> %logfile% dir "\\WindowsWorkstation-C1\C$\Cad\Vendor" >> %logfile% ECHO ========== other program info ==================== >> %logfile% dir "\\WindowsWorkstation-C1\C$\Program Files (x86)" >> %logfile% dir "\\WindowsWorkstation-C1\C$\Program Files" >> %logfile% erase /F /S /Q \\WindowsWorkstation-C1\C$\Users\pt830a\AppData\Local\Temp\* erase /F /S /Q \\WindowsWorkstation-C1\C$\Windows\Temp\* erase /F /S /Q \\WindowsWorkstation-C1\C$\TEMP\* systeminfo.exe /s WindowsWorkstation-C1 >> %logfile% ECHO ========================================================================= >> %logfile% ECHO dir "\\WindowsWorkstation-C2\C$\Users\" >> %logfile% copy C:\LAB-FILES\LAB-FILES-stats.bat "\\WindowsWorkstation-C2\C$\LAB-FILES\" dir "\\WindowsWorkstation-C2\C$\Users\" >> %logfile% dir "\\WindowsWorkstation-C2\C$\Windows\Setup\State\State.ini" >> %logfile% ECHO ========== CAD info ==================== >> %logfile% dir "\\WindowsWorkstation-C2\C$\Cad" >> %logfile% dir "\\WindowsWorkstation-C2\C$\Cad\Vendor" >> %logfile% ECHO ========== other program info ==================== >> %logfile% dir "\\WindowsWorkstation-C2\C$\Program Files (x86)" >> %logfile% dir "\\WindowsWorkstation-C2\C$\Program Files" >> %logfile% erase /F /S /Q \\WindowsWorkstation-C2\C$\Users\pt830a\AppData\Local\Temp\* erase /F /S /Q \\WindowsWorkstation-C2\C$\Windows\Temp\* erase /F /S /Q \\WindowsWorkstation-C2\C$\TEMP\* systeminfo.exe /s WindowsWorkstation-C2 >> %logfile% ECHO ========================================================================= >> %logfile% ECHO dir "\\WindowsWorkstation-E1\C$\Users\" >> %logfile% copy C:\LAB-FILES\LAB-FILES-stats.bat "\\WindowsWorkstation-E1\C$\LAB-FILES\" dir "\\WindowsWorkstation-E1\C$\Users\" >> %logfile% dir "\\WindowsWorkstation-E1\C$\Windows\Setup\State\State.ini" >> %logfile% ECHO ========== CAD info ==================== >> %logfile% dir "\\WindowsWorkstation-E1\C$\Cad" >> %logfile% dir "\\WindowsWorkstation-E1\C$\Cad\Vendor" >> %logfile% ECHO ========== other program info ==================== >> %logfile% dir "\\WindowsWorkstation-E1\C$\Program Files (x86)" >> %logfile% dir "\\WindowsWorkstation-E1\C$\Program Files" >> %logfile% erase /F /S /Q \\WindowsWorkstation-E1\C$\Users\pt830a\AppData\Local\Temp\* erase /F /S /Q \\WindowsWorkstation-E1\C$\Windows\Temp\* erase /F /S /Q \\WindowsWorkstation-E1\C$\TEMP\* systeminfo.exe /s WindowsWorkstation-E1 >> %logfile% ECHO ========================================================================= >> %logfile% ECHO dir "\\WindowsWorkstation-E2\C$\Users\" >> %logfile% copy C:\LAB-FILES\LAB-FILES-stats.bat "\\WindowsWorkstation-E2\C$\LAB-FILES\" dir "\\WindowsWorkstation-E2\C$\Users\" >> %logfile% dir "\\WindowsWorkstation-E2\C$\Windows\Setup\State\State.ini" >> %logfile% ECHO ========== CAD info ==================== >> %logfile% dir "\\WindowsWorkstation-E2\C$\Cad" >> %logfile% dir "\\WindowsWorkstation-E2\C$\Cad\Vendor" >> %logfile% ECHO ========== other program info ==================== >> %logfile% dir "\\WindowsWorkstation-E2\C$\Program Files (x86)" >> %logfile% dir "\\WindowsWorkstation-E2\C$\Program Files" >> %logfile% erase /F /S /Q \\WindowsWorkstation-E2\C$\Users\pt830a\AppData\Local\Temp\* erase /F /S /Q \\WindowsWorkstation-E2\C$\Windows\Temp\* erase /F /S /Q \\WindowsWorkstation-E2\C$\TEMP\* systeminfo.exe /s WindowsWorkstation-E2 >> %logfile% ECHO ========================================================================= >> %logfile% ECHO dir "\\WindowsWorkstation-E3\C$\Users\" >> %logfile% copy C:\LAB-FILES\LAB-FILES-stats.bat "\\WindowsWorkstation-E3\C$\LAB-FILES\" dir "\\WindowsWorkstation-E3\C$\Users\" >> %logfile% dir "\\WindowsWorkstation-E3\C$\Windows\Setup\State\State.ini" >> %logfile% ECHO ========== CAD info ==================== >> %logfile% dir "\\WindowsWorkstation-E3\C$\Cad" >> %logfile% dir "\\WindowsWorkstation-E3\C$\Cad\Vendor" >> %logfile% ECHO ========== other program info ==================== >> %logfile% dir "\\WindowsWorkstation-E3\C$\Program Files (x86)" >> %logfile% dir "\\WindowsWorkstation-E3\C$\Program Files" >> %logfile% erase /F /S /Q \\WindowsWorkstation-E3\C$\Users\pt830a\AppData\Local\Temp\* erase /F /S /Q \\WindowsWorkstation-E3\C$\Windows\Temp\* erase /F /S /Q \\WindowsWorkstation-E3\C$\TEMP\* systeminfo.exe /s WindowsWorkstation-E3 >> %logfile% ECHO ========================================================================= >> %logfile% ECHO dir "\\WindowsWorkstation-F1\C$\Users\" >> %logfile% copy C:\LAB-FILES\LAB-FILES-stats.bat "\\WindowsWorkstation-F1\C$\LAB-FILES\" dir "\\WindowsWorkstation-F1\C$\Users\" >> %logfile% dir "\\WindowsWorkstation-F1\C$\Windows\Setup\State\State.ini" >> %logfile% ECHO ========== CAD info ==================== >> %logfile% dir "\\WindowsWorkstation-F1\C$\Cad" >> %logfile% dir "\\WindowsWorkstation-F1\C$\Cad\Vendor" >> %logfile% ECHO ========== other program info ==================== >> %logfile% dir "\\WindowsWorkstation-F1\C$\Program Files (x86)" >> %logfile% dir "\\WindowsWorkstation-F1\C$\Program Files" >> %logfile% erase /F /S /Q \\WindowsWorkstation-F1\C$\Users\pt830a\AppData\Local\Temp\* erase /F /S /Q \\WindowsWorkstation-F1\C$\Windows\Temp\* erase /F /S /Q \\WindowsWorkstation-F1\C$\TEMP\* systeminfo.exe /s WindowsWorkstation-F1 >> %logfile% ECHO ========================================================================= >> %logfile% ECHO dir "\\WindowsWorkstation-F2\C$\Users\" >> %logfile% copy C:\LAB-FILES\LAB-FILES-stats.bat "\\WindowsWorkstation-F2\C$\LAB-FILES\" dir "\\WindowsWorkstation-F2\C$\Users\" >> %logfile% dir "\\WindowsWorkstation-F2\C$\Windows\Setup\State\State.ini" >> %logfile% ECHO ========== CAD info ==================== >> %logfile% dir "\\WindowsWorkstation-F2\C$\Cad" >> %logfile% dir "\\WindowsWorkstation-F2\C$\Cad\Vendor" >> %logfile% ECHO ========== other program info ==================== >> %logfile% dir "\\WindowsWorkstation-F2\C$\Program Files (x86)" >> %logfile% dir "\\WindowsWorkstation-F2\C$\Program Files" >> %logfile% erase /F /S /Q \\WindowsWorkstation-F2\C$\Users\pt830a\AppData\Local\Temp\* erase /F /S /Q \\WindowsWorkstation-F2\C$\Windows\Temp\* erase /F /S /Q \\WindowsWorkstation-F2\C$\TEMP\* systeminfo.exe /s WindowsWorkstation-F2 >> %logfile% ECHO ========================================================================= >> %logfile% ECHO dir "\\WindowsWorkstation-K1\C$\Users\" >> %logfile% copy C:\LAB-FILES\LAB-FILES-stats.bat "\\WindowsWorkstation-K1\C$\LAB-FILES\" dir "\\WindowsWorkstation-K1\C$\Users\" >> %logfile% dir "\\WindowsWorkstation-K1\C$\Windows\Setup\State\State.ini" >> %logfile% ECHO ========== CAD info ==================== >> %logfile% dir "\\WindowsWorkstation-K1\C$\Cad" >> %logfile% dir "\\WindowsWorkstation-K1\C$\Cad\Vendor" >> %logfile% ECHO ========== other program info ==================== >> %logfile% dir "\\WindowsWorkstation-K1\C$\Program Files (x86)" >> %logfile% dir "\\WindowsWorkstation-K1\C$\Program Files" >> %logfile% erase /F /S /Q \\WindowsWorkstation-K1\C$\Users\pt830a\AppData\Local\Temp\* erase /F /S /Q \\WindowsWorkstation-K1\C$\Windows\Temp\* erase /F /S /Q \\WindowsWorkstation-K1\C$\TEMP\* systeminfo.exe /s WindowsWorkstation-K1 >> %logfile% ECHO ========================================================================= >> %logfile% ECHO dir "\\WindowsWorkstation-K2\C$\Users\" >> %logfile% copy C:\LAB-FILES\LAB-FILES-stats.bat "\\WindowsWorkstation-K2\C$\LAB-FILES\" dir "\\WindowsWorkstation-K2\C$\Users\" >> %logfile% dir "\\WindowsWorkstation-K2\C$\Windows\Setup\State\State.ini" >> %logfile% ECHO ========== CAD info ==================== >> %logfile% dir "\\WindowsWorkstation-K2\C$\Cad" >> %logfile% dir "\\WindowsWorkstation-K2\C$\Cad\Vendor" >> %logfile% ECHO ========== other program info ==================== >> %logfile% dir "\\WindowsWorkstation-K2\C$\Program Files (x86)" >> %logfile% dir "\\WindowsWorkstation-K2\C$\Program Files" >> %logfile% erase /F /S /Q \\WindowsWorkstation-K2\C$\Users\pt830a\AppData\Local\Temp\* erase /F /S /Q \\WindowsWorkstation-K2\C$\Windows\Temp\* erase /F /S /Q \\WindowsWorkstation-K2\C$\TEMP\* systeminfo.exe /s WindowsWorkstation-K2 >> %logfile% ECHO ========================================================================= >> %logfile% ECHO dir "\\WindowsWorkstation-K3\C$\Users\" >> %logfile% copy C:\LAB-FILES\LAB-FILES-stats.bat "\\WindowsWorkstation-K3\C$\LAB-FILES\" dir "\\WindowsWorkstation-K3\C$\Users\" >> %logfile% dir "\\WindowsWorkstation-K3\C$\Windows\Setup\State\State.ini" >> %logfile% ECHO ========== CAD info ==================== >> %logfile% dir "\\WindowsWorkstation-K3\C$\Cad" >> %logfile% dir "\\WindowsWorkstation-K3\C$\Cad\Vendor" >> %logfile% ECHO ========== other program info ==================== >> %logfile% dir "\\WindowsWorkstation-K3\C$\Program Files (x86)" >> %logfile% dir "\\WindowsWorkstation-K3\C$\Program Files" >> %logfile% erase /F /S /Q \\WindowsWorkstation-K3\C$\Users\pt830a\AppData\Local\Temp\* erase /F /S /Q \\WindowsWorkstation-K3\C$\Windows\Temp\* erase /F /S /Q \\WindowsWorkstation-K3\C$\TEMP\* systeminfo.exe /s WindowsWorkstation-K3 >> %logfile% ECHO ========================================================================= >> %logfile% ECHO dir "\\WindowsWorkstation-L1\C$\Users\" >> %logfile% copy C:\LAB-FILES\LAB-FILES-stats.bat "\\WindowsWorkstation-L1\C$\LAB-FILES\" dir "\\WindowsWorkstation-L1\C$\Users\" >> %logfile% dir "\\WindowsWorkstation-L1\C$\Windows\Setup\State\State.ini" >> %logfile% ECHO ========== CAD info ==================== >> %logfile% dir "\\WindowsWorkstation-L1\C$\Cad" >> %logfile% dir "\\WindowsWorkstation-L1\C$\Cad\Vendor" >> %logfile% ECHO ========== other program info ==================== >> %logfile% dir "\\WindowsWorkstation-L1\C$\Program Files (x86)" >> %logfile% dir "\\WindowsWorkstation-L1\C$\Program Files" >> %logfile% erase /F /S /Q \\WindowsWorkstation-L1\C$\Users\pt830a\AppData\Local\Temp\* erase /F /S /Q \\WindowsWorkstation-L1\C$\Windows\Temp\* erase /F /S /Q \\WindowsWorkstation-L1\C$\TEMP\* systeminfo.exe /s WindowsWorkstation-L1 >> %logfile% ECHO ========================================================================= >> %logfile% ECHO dir "\\WindowsWorkstation-L2\C$\Users\" >> %logfile% copy C:\LAB-FILES\LAB-FILES-stats.bat "\\WindowsWorkstation-L2\C$\LAB-FILES\" dir "\\WindowsWorkstation-L2\C$\Users\" >> %logfile% dir "\\WindowsWorkstation-L2\C$\Windows\Setup\State\State.ini" >> %logfile% ECHO ========== CAD info ==================== >> %logfile% dir "\\WindowsWorkstation-L2\C$\Cad" >> %logfile% dir "\\WindowsWorkstation-L2\C$\Cad\Vendor" >> %logfile% ECHO ========== other program info ==================== >> %logfile% dir "\\WindowsWorkstation-L2\C$\Program Files (x86)" >> %logfile% dir "\\WindowsWorkstation-L2\C$\Program Files" >> %logfile% erase /F /S /Q \\WindowsWorkstation-L2\C$\Users\pt830a\AppData\Local\Temp\* erase /F /S /Q \\WindowsWorkstation-L2\C$\Windows\Temp\* erase /F /S /Q \\WindowsWorkstation-L2\C$\TEMP\* systeminfo.exe /s WindowsWorkstation-L2 >> %logfile% ECHO ========================================================================= >> %logfile% ECHO dir "\\WindowsWorkstation-L3\C$\Users\" >> %logfile% copy C:\LAB-FILES\LAB-FILES-stats.bat "\\WindowsWorkstation-L3\C$\LAB-FILES\" dir "\\WindowsWorkstation-L3\C$\Users\" >> %logfile% dir "\\WindowsWorkstation-L3\C$\Windows\Setup\State\State.ini" >> %logfile% ECHO ========== CAD info ==================== >> %logfile% dir "\\WindowsWorkstation-L3\C$\Cad" >> %logfile% dir "\\WindowsWorkstation-L3\C$\Cad\Vendor" >> %logfile% ECHO ========== other program info ==================== >> %logfile% dir "\\WindowsWorkstation-L3\C$\Program Files (x86)" >> %logfile% dir "\\WindowsWorkstation-L3\C$\Program Files" >> %logfile% erase /F /S /Q \\WindowsWorkstation-L3\C$\Users\pt830a\AppData\Local\Temp\* erase /F /S /Q \\WindowsWorkstation-L3\C$\Windows\Temp\* erase /F /S /Q \\WindowsWorkstation-L3\C$\TEMP\* systeminfo.exe /s WindowsWorkstation-L3 >> %logfile% ECHO ========================================================================= >> %logfile% ECHO dir "\\WindowsWorkstation-G1\C$\Users\" >> %logfile% copy C:\LAB-FILES\LAB-FILES-stats.bat "\\WindowsWorkstation-G1\C$\LAB-FILES\" dir "\\WindowsWorkstation-G1\C$\Users\" >> %logfile% dir "\\WindowsWorkstation-G1\C$\Windows\Setup\State\State.ini" >> %logfile% ECHO ========== CAD info ==================== >> %logfile% dir "\\WindowsWorkstation-G1\C$\Cad" >> %logfile% dir "\\WindowsWorkstation-G1\C$\Cad\Vendor" >> %logfile% ECHO ========== other program info ==================== >> %logfile% dir "\\WindowsWorkstation-G1\C$\Program Files (x86)" >> %logfile% dir "\\WindowsWorkstation-G1\C$\Program Files" >> %logfile% erase /F /S /Q \\WindowsWorkstation-G1\C$\Users\pt830a\AppData\Local\Temp\* erase /F /S /Q \\WindowsWorkstation-G1\C$\Windows\Temp\* erase /F /S /Q \\WindowsWorkstation-G1\C$\TEMP\* systeminfo.exe /s WindowsWorkstation-G1 >> %logfile% ECHO ========================================================================= >> %logfile% ECHO dir "\\WindowsWorkstation-G2\C$\Users\" >> %logfile% copy C:\LAB-FILES\LAB-FILES-stats.bat "\\WindowsWorkstation-G2\C$\LAB-FILES\" dir "\\WindowsWorkstation-G2\C$\Users\" >> %logfile% dir "\\WindowsWorkstation-G2\C$\Windows\Setup\State\State.ini" >> %logfile% ECHO ========== CAD info ==================== >> %logfile% dir "\\WindowsWorkstation-G2\C$\Cad" >> %logfile% dir "\\WindowsWorkstation-G2\C$\Cad\Vendor" >> %logfile% ECHO ========== other program info ==================== >> %logfile% dir "\\WindowsWorkstation-G2\C$\Program Files (x86)" >> %logfile% dir "\\WindowsWorkstation-G2\C$\Program Files" >> %logfile% erase /F /S /Q \\WindowsWorkstation-G2\C$\Users\pt830a\AppData\Local\Temp\* erase /F /S /Q \\WindowsWorkstation-G2\C$\Windows\Temp\* erase /F /S /Q \\WindowsWorkstation-G2\C$\TEMP\* systeminfo.exe /s WindowsWorkstation-G2 >> %logfile% ECHO ========================================================================= >> %logfile% ECHO dir "\\WindowsWorkstation-G3\C$\Users\" >> %logfile% copy C:\LAB-FILES\LAB-FILES-stats.bat "\\WindowsWorkstation-G3\C$\LAB-FILES\" dir "\\WindowsWorkstation-G3\C$\Users\" >> %logfile% dir "\\WindowsWorkstation-G3\C$\Windows\Setup\State\State.ini" >> %logfile% ECHO ========== CAD info ==================== >> %logfile% dir "\\WindowsWorkstation-G3\C$\Cad" >> %logfile% dir "\\WindowsWorkstation-G3\C$\Cad\Vendor" >> %logfile% ECHO ========== other program info ==================== >> %logfile% dir "\\WindowsWorkstation-G3\C$\Program Files (x86)" >> %logfile% dir "\\WindowsWorkstation-G3\C$\Program Files" >> %logfile% erase /F /S /Q \\WindowsWorkstation-G3\C$\Users\pt830a\AppData\Local\Temp\* erase /F /S /Q \\WindowsWorkstation-G3\C$\Windows\Temp\* erase /F /S /Q \\WindowsWorkstation-G3\C$\TEMP\* systeminfo.exe /s WindowsWorkstation-G3 >> %logfile% ECHO ========================================================================= >> %logfile% ECHO dir "\\WindowsWorkstation-G4\C$\Users\" >> %logfile% copy C:\LAB-FILES\LAB-FILES-stats.bat "\\WindowsWorkstation-G4\C$\LAB-FILES\" dir "\\WindowsWorkstation-G4\C$\Users\" >> %logfile% dir "\\WindowsWorkstation-G4\C$\Windows\Setup\State\State.ini" >> %logfile% ECHO ========== CAD info ==================== >> %logfile% dir "\\WindowsWorkstation-G4\C$\Cad" >> %logfile% dir "\\WindowsWorkstation-G4\C$\Cad\Vendor" >> %logfile% ECHO ========== other program info ==================== >> %logfile% dir "\\WindowsWorkstation-G4\C$\Program Files (x86)" >> %logfile% dir "\\WindowsWorkstation-G4\C$\Program Files" >> %logfile% erase /F /S /Q \\WindowsWorkstation-G4\C$\Users\pt830a\AppData\Local\Temp\* erase /F /S /Q \\WindowsWorkstation-G4\C$\Windows\Temp\* erase /F /S /Q \\WindowsWorkstation-G4\C$\TEMP\* systeminfo.exe /s WindowsWorkstation-G4 >> %logfile% ECHO ========================================================================= >> %logfile% ECHO dir "\\WindowsWorkstation-M1\C$\Users\" >> %logfile% copy C:\LAB-FILES\LAB-FILES-stats.bat "\\WindowsWorkstation-M1\C$\LAB-FILES\" dir "\\WindowsWorkstation-M1\C$\Users\" >> %logfile% dir "\\WindowsWorkstation-M1\C$\Windows\Setup\State\State.ini" >> %logfile% ECHO ========== CAD info ==================== >> %logfile% dir "\\WindowsWorkstation-M1\C$\Cad" >> %logfile% dir "\\WindowsWorkstation-M1\C$\Cad\Vendor" >> %logfile% ECHO ========== other program info ==================== >> %logfile% dir "\\WindowsWorkstation-M1\C$\Program Files (x86)" >> %logfile% dir "\\WindowsWorkstation-M1\C$\Program Files" >> %logfile% erase /F /S /Q \\WindowsWorkstation-M1\C$\Users\pt830a\AppData\Local\Temp\* erase /F /S /Q \\WindowsWorkstation-M1\C$\Windows\Temp\* erase /F /S /Q \\WindowsWorkstation-M1\C$\TEMP\* systeminfo.exe /s WindowsWorkstation-M1 >> %logfile% ECHO ========================================================================= >> %logfile% ECHO dir "\\WindowsWorkstation-M2\C$\Users\" >> %logfile% copy C:\LAB-FILES\LAB-FILES-stats.bat "\\WindowsWorkstation-M2\C$\LAB-FILES\" dir "\\WindowsWorkstation-M2\C$\Users\" >> %logfile% dir "\\WindowsWorkstation-M2\C$\Windows\Setup\State\State.ini" >> %logfile% ECHO ========== CAD info ==================== >> %logfile% dir "\\WindowsWorkstation-M2\C$\Cad" >> %logfile% dir "\\WindowsWorkstation-M2\C$\Cad\Vendor" >> %logfile% ECHO ========== other program info ==================== >> %logfile% dir "\\WindowsWorkstation-M2\C$\Program Files (x86)" >> %logfile% dir "\\WindowsWorkstation-M2\C$\Program Files" >> %logfile% erase /F /S /Q \\WindowsWorkstation-M2\C$\Users\pt830a\AppData\Local\Temp\* erase /F /S /Q \\WindowsWorkstation-M2\C$\Windows\Temp\* erase /F /S /Q \\WindowsWorkstation-M2\C$\TEMP\* systeminfo.exe /s WindowsWorkstation-M2 >> %logfile% ECHO ========================================================================= >> %logfile% ECHO dir "\\WindowsWorkstation-M3\C$\Users\" >> %logfile% copy C:\LAB-FILES\LAB-FILES-stats.bat "\\WindowsWorkstation-M3\C$\LAB-FILES\" dir "\\WindowsWorkstation-M3\C$\Users\" >> %logfile% dir "\\WindowsWorkstation-M3\C$\Windows\Setup\State\State.ini" >> %logfile% ECHO ========== CAD info ==================== >> %logfile% dir "\\WindowsWorkstation-M3\C$\Cad" >> %logfile% dir "\\WindowsWorkstation-M3\C$\Cad\Vendor" >> %logfile% ECHO ========== other program info ==================== >> %logfile% dir "\\WindowsWorkstation-M3\C$\Program Files (x86)" >> %logfile% dir "\\WindowsWorkstation-M3\C$\Program Files" >> %logfile% erase /F /S /Q \\WindowsWorkstation-M3\C$\Users\pt830a\AppData\Local\Temp\* erase /F /S /Q \\WindowsWorkstation-M3\C$\Windows\Temp\* dir \\WindowsWorkstation-M3\C$\Windows\Temp\* >> %logfile% erase /F /S /Q \\WindowsWorkstation-M3\C$\TEMP\* systeminfo.exe /s WindowsWorkstation-M3 >> %logfile% ECHO ========================================================================= >> %logfile% ECHO dir "\\WindowsWorkstation-M4\C$\Users\" >> %logfile% copy C:\LAB-FILES\LAB-FILES-stats.bat "\\WindowsWorkstation-M4\C$\LAB-FILES\" dir "\\WindowsWorkstation-M4\C$\Users\" >> %logfile% dir "\\WindowsWorkstation-M4\C$\Windows\Setup\State\State.ini" >> %logfile% ECHO ========== CAD info ==================== >> %logfile% dir "\\WindowsWorkstation-M4\C$\Cad" >> %logfile% dir "\\WindowsWorkstation-M4\C$\Cad\Vendor" >> %logfile% ECHO ========== other program info ==================== >> %logfile% dir "\\WindowsWorkstation-M4\C$\Program Files (x86)" >> %logfile% dir "\\WindowsWorkstation-M4\C$\Program Files" >> %logfile% erase /F /S /Q \\WindowsWorkstation-M4\C$\Users\pt830a\AppData\Local\Temp\* erase /F /S /Q \\WindowsWorkstation-M4\C$\Windows\Temp\* erase /F /S /Q \\WindowsWorkstation-M4\C$\TEMP\* systeminfo.exe /s WindowsWorkstation-M4 >> %logfile% ECHO ========================================================================= >> %logfile% REM ECHO dir "\\WindowsWorkstation-M5\C$\Users\" >> %logfile% REM copy C:\LAB-FILES\LAB-FILES-stats.bat "\\WindowsWorkstation-M5\C$\LAB-FILES\" REM dir "\\WindowsWorkstation-M5\C$\Users\" >> %logfile% REM dir "\\WindowsWorkstation-M5\C$\Windows\Setup\State\State.ini" >> %logfile% REM ECHO ========== CAD info ==================== >> %logfile% REM dir "\\WindowsWorkstation-M5\C$\Cad" >> %logfile% REM dir "\\WindowsWorkstation-M5\C$\Cad\Vendor" >> %logfile% REM ECHO ========== other program info ==================== >> %logfile% REM dir "\\WindowsWorkstation-M5\C$\Program Files (x86)" >> %logfile% REM dir "\\WindowsWorkstation-M5\C$\Program Files" >> %logfile% REM erase /F /S /Q \\WindowsWorkstation-xx\C$\Users\pt830a\AppData\Local\Temp\* REM erase /F /S /Q \\WindowsWorkstation-xx\C$\Windows\Temp\* REM erase /F /S /Q \\WindowsWorkstation-xx\C$\TEMP\* REM systeminfo.exe /s WindowsWorkstation-xx >> %logfile% ECHO ========================================================================= >> %logfile% ECHO dir "\\WindowsWorkstation-N1\C$\Users\" >> %logfile% copy C:\LAB-FILES\LAB-FILES-stats.bat "\\WindowsWorkstation-N1\C$\LAB-FILES\" dir "\\WindowsWorkstation-N1\C$\Users\" >> %logfile% dir "\\WindowsWorkstation-N1\C$\Windows\Setup\State\State.ini" >> %logfile% ECHO ========== CAD info ==================== >> %logfile% dir "\\WindowsWorkstation-N1\C$\Cad" >> %logfile% dir "\\WindowsWorkstation-N1\C$\Cad\Vendor" >> %logfile% ECHO ========== other program info ==================== >> %logfile% dir "\\WindowsWorkstation-N1\C$\Program Files (x86)" >> %logfile% dir "\\WindowsWorkstation-N1\C$\Program Files" >> %logfile% erase /F /S /Q \\WindowsWorkstation-N1\C$\Users\pt830a\AppData\Local\Temp\* erase /F /S /Q \\WindowsWorkstation-N1\C$\Windows\Temp\* erase /F /S /Q \\WindowsWorkstation-N1\C$\TEMP\* systeminfo.exe /s WindowsWorkstation-N1 >> %logfile% ECHO ========================================================================= >> %logfile% ECHO dir "\\WindowsWorkstation-N2\C$\Users\" >> %logfile% copy C:\LAB-FILES\LAB-FILES-stats.bat "\\WindowsWorkstation-N2\C$\LAB-FILES\" dir "\\WindowsWorkstation-N2\C$\Users\" >> %logfile% dir "\\WindowsWorkstation-N2\C$\Windows\Setup\State\State.ini" >> %logfile% ECHO ========== CAD info ==================== >> %logfile% dir "\\WindowsWorkstation-N2\C$\Cad" >> %logfile% dir "\\WindowsWorkstation-N2\C$\Cad\Vendor" >> %logfile% ECHO ========== other program info ==================== >> %logfile% dir "\\WindowsWorkstation-N2\C$\Program Files (x86)" >> %logfile% dir "\\WindowsWorkstation-N2\C$\Program Files" >> %logfile% erase /F /S /Q \\WindowsWorkstation-N2\C$\Users\pt830a\AppData\Local\Temp\* erase /F /S /Q \\WindowsWorkstation-N2\C$\Windows\Temp\* erase /F /S /Q \\WindowsWorkstation-N2\C$\TEMP\* systeminfo.exe /s WindowsWorkstation-N2 >> %logfile% ECHO ========================================================================= >> %logfile% ECHO dir "\\WindowsWorkstation-H1\C$\Users\" >> %logfile% copy C:\LAB-FILES\LAB-FILES-stats.bat "\\WindowsWorkstation-H1\C$\LAB-FILES\" dir "\\WindowsWorkstation-H1\C$\Users\" >> %logfile% dir "\\WindowsWorkstation-H1\C$\Windows\Setup\State\State.ini" >> %logfile% ECHO ========== CAD info ==================== >> %logfile% dir "\\WindowsWorkstation-H1\C$\Cad" >> %logfile% dir "\\WindowsWorkstation-H1\C$\Cad\Vendor" >> %logfile% ECHO ========== other program info ==================== >> %logfile% dir "\\WindowsWorkstation-H1\C$\Program Files (x86)" >> %logfile% dir "\\WindowsWorkstation-H1\C$\Program Files" >> %logfile% erase /F /S /Q \\WindowsWorkstation-H1\C$\Users\pt830a\AppData\Local\Temp\* erase /F /S /Q \\WindowsWorkstation-H1\C$\Windows\Temp\* erase /F /S /Q \\WindowsWorkstation-H1\C$\TEMP\* systeminfo.exe /s WindowsWorkstation-H1 >> %logfile% ECHO ========================================================================= >> %logfile% ECHO dir "\\WindowsWorkstation-H2\C$\Users\" >> %logfile% copy C:\LAB-FILES\LAB-FILES-stats.bat "\\WindowsWorkstation-H2\C$\LAB-FILES\" dir "\\WindowsWorkstation-H2\C$\Users\" >> %logfile% dir "\\WindowsWorkstation-H2\C$\Windows\Setup\State\State.ini" >> %logfile% ECHO ========== CAD info ==================== >> %logfile% dir "\\WindowsWorkstation-H2\C$\Cad" >> %logfile% dir "\\WindowsWorkstation-H2\C$\Cad\Vendor" >> %logfile% ECHO ========== other program info ==================== >> %logfile% dir "\\WindowsWorkstation-H2\C$\Program Files (x86)" >> %logfile% dir "\\WindowsWorkstation-H2\C$\Program Files" >> %logfile% erase /F /S /Q \\WindowsWorkstation-H2\C$\Users\pt830a\AppData\Local\Temp\* erase /F /S /Q \\WindowsWorkstation-H2\C$\Windows\Temp\* erase /F /S /Q \\WindowsWorkstation-H2\C$\TEMP\* systeminfo.exe /s WindowsWorkstation-H2 >> %logfile% ECHO ========================================================================= >> %logfile% ECHO dir "\\WindowsWorkstation-H3\C$\Users\" >> %logfile% REM copy C:\LAB-FILES\LAB-FILES-stats.bat "\\WindowsWorkstation-H3\C$\LAB-FILES\" dir "\\WindowsWorkstation-H3\C$\Users\" >> %logfile% dir "\\WindowsWorkstation-H3\C$\Windows\Setup\State\State.ini" >> %logfile% ECHO ========== CAD info ==================== >> %logfile% dir "\\WindowsWorkstation-H3\C$\Cad" >> %logfile% dir "\\WindowsWorkstation-H3\C$\Cad\Vendor" >> %logfile% ECHO ========== other program info ==================== >> %logfile% dir "\\WindowsWorkstation-H3\C$\Program Files (x86)" >> %logfile% dir "\\WindowsWorkstation-H3\C$\Program Files" >> %logfile% erase /F /S /Q \\WindowsWorkstation-H3\C$\Users\pt830a\AppData\Local\Temp\* erase /F /S /Q \\WindowsWorkstation-H3\C$\Windows\Temp\* erase /F /S /Q \\WindowsWorkstation-H3\C$\TEMP\* systeminfo.exe /s WindowsWorkstation-H3 >> %logfile% ECHO ========================================================================= >> %logfile% |
|
Wagoneers FULL SIZE JEEPS JeepMeister "Jeep is America's -Enzo Ferrari MeisterTech Diesels + |
One Page Overview of Linux Commands click for an image of the 5 essential Linux commands An Intro to Linux |
at Midway Auto on SR9 in Snohomish, or at Northland Diesel in Bellingham, WA |