Home » tools

Tag: tools

Automation of Printer settings for PVS images

Scenario: A password protected printer, where the password changes every month. We had to manually enter the new password when our PVS images were rebooted, as we didnt want to update the PVS image with just a password change (we hadnt introduced DFS-R for the PVS image management so it was manual and time consuming)


EXPORT the settings to a file for the specific printer – rundll32 printui.dll,PrintUIEntry /Ss /n “MYLAMEPRINTER” /a “file.dat” u

IMPORT the settings to any server that needed it – rundll32 printui.dll,PrintUIEntry /Sr /n “MYLAMEPRINTER” /a “file.dat” u

Add this as a startup script GPO






Unblocking numerous files with sysinternals streams.exe

After extracting a number of files from a ZIP file windows kept track of these files as dangerous by means of the files ‘stream’ (ie tracking where the file originated from)

Typically to allow these files to execute you need to

Right click the file > properties > UNBLOCK

“This file came from another computer and might be blocked to help protect this computer”

The problem was all files were blocked. Resulting in 500 individual changes or…..

To change this (effectivly deleting the stream tracking) to remove the block for all files
Download streams.exe from SYSINTERNALS from here

and then run the following command
streams.exe -s -d %FOLDERPATH%