This is pretty simple. Install the NTBackup for Windows 7 on to a Windows 7 computer. Then copy the appropriate file to their respective places on your WinPE image. The files:
I’m in a situation where the network we have doesn’t pass the UDP 9 magic packet to WoL (wake-on-LAN) remote computers. I’m not sure why this is, but I’ve developed a solution around it. It requires you to be a domain administrator (or local admin) because it uses PSEXEC and you need to copy a small command-line program to the local machine to execute. To do this in such a way that you can do multiple computers in one pass, you need to create a text file in the same folder as the batch file (upcoming). The text file has the following format:
1234 :This script wakes up computers using a tertiary computer on the same LAN.for /F "tokens=1-2 delims= " %%A IN ('type computer-list.txt') do psexec \\%%A -i -c mc-wol.exe %%Bpause
CAC00700JQ 18A9051BFE68CAC00700HT 18A9051E2894CAC00700HQ 18A9051E2B90
I’m not sure why MS doesn’t allow this to work with their reg.exe program. On most workstations only a single user is logged in anyways…
for /f %%A IN ('type domain-list.txt') DO (
ECHO %%A >> list1.txt
reg query "\\%%A\HKU" > ".\temp.txt"
findstr /R /C:"HKEY_USERS\\S-1-5-21.*[0-9]$" ".\temp.txt" > ".\temp2.txt"
FOR /F %%Z IN ('TYPE .\temp2.txt') DO reg query "\\%%A\%%Z\Software\Unicus Medical Systems" /s /v ReportPrinterName | findstr /R /C:"ReportPrinterName" >> list1.txt