Category Archives: Uncategorized

A Script to create a a Scheduled Task that runs under the SYSTEM account

By | September 23, 2016
Share

echo start /w “” notepad.exe > “%WinDir%\Temp\temp.bat” echo del /f/q “%%WinDir%%\Temp\temp.bat” >> “%WinDir%\Temp\temp.bat” schtasks /create /ru “NT AUTHORITY\SYSTEM” /tn “sysrun” /tr “cmd.exe /c “”%WinDir%\Temp\temp.bat””” /f /sc “ONIDLE” /i “999” schtasks /run /tn “sysrun” /i :loop for /f “tokens=2 delims=: ” %%f in (‘schtasks /query /tn “sysrun” /fo list ^| find “Status:”‘ ) do ( if… Read More »

Batch code snippet to query, then update dynamic values in registry

By | September 21, 2016
Share

FOR /F “tokens=1,2*” %%a in (‘reg.exe query “HKLM\SYSTEM\CurrentControlSet\Control\Class”‘) DO call :FindAndReplace %%a goto cleanup :FindAndReplace reg.exe query “%1\0000” /f “COM3” /d > nul if “%ErrorLevel%”==”0” reg.exe add “%1\0000” /v “AttachedTo” /t REG_SZ /d “COM1” /f exit /b :cleanup echo “This is a test” pause The snippet pulls sub-keys from the “HKLM\SYSTEM\CurrentControlSet\Control\Class” and passing each to a… Read More »

Direct Link for Ghost Explorer ..

By | September 20, 2016
Share

Incase, anyone still has old .GHO files laying around. ftp://ftp.symantec.com/public/english_us_canada/products/symantec_ghost_solution_suite/2.5/updates/Ghostexp-B1597.zip /BG

Export and Import LGPOs and MLGPOs for Windows 10 in MDT 2013 Update 2 or SCCM

By | August 10, 2016
Share

Scenario: Customer needed to lock down a specific user account in Windows 10, without effecting the local Administrator account. Unit was not going to be joining a Domain. LGPO was the only available free alternative. The new LGPO tool (https://blogs.technet.microsoft.com/secguide/2016/01/21/lgpo-exe-local-group-policy-object-utility-v1-0/) does NOT support MLGPOs (Multiple Local Group Policy Objects). The old LocalGPO.wsf script (https://gallery.technet.microsoft.com/LocalGPOmsi-Excellent-MS-2593b2eb) does,… Read More »

Hung at “Checking for updates…” on Windows 7 x64

By | July 16, 2016
Share

* 2016-7-27 Updated with 7 x86 download links Scenario: Installed Windows 7 x64 Professional using ISO from MSDN. Windows Update hung indefinitely “Searching for Updates”. Solution: Applied the following 3x patches: 9,575,735 Windows6.1-KB3020369-x64.msu 11,313,360 WindowsUpdateAgent-7.6-x64.exe 500,046,015 AMD64-all-windows6.1-kb3125574-v4-x64_2dafb1d203c8964239af3048b5dd4b1264cd93b9.msu Download: https://drive.google.com/open?id=0BwHI1r8k8A75SHl3Q01zSFktYkk Download for x86 patches: https://drive.google.com/open?id=0BwHI1r8k8A75RjAzTHhJejlQRkU Lastly, If running 7 Pro run Never10 to ensure Windows 10 is not cached… Read More »