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)

Solution:

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

References:

http://support.microsoft.com/kb/189105

http://zacky.cleverits.com/IT/printer.htm

http://www.robvanderwoude.com/2kprintcontrol.php

http://www.unattendit.com/2009/10/17/unattended-installation-of-network-printers-using-printui-dll-for-all-users/

Unblocking numerous files with sysinternals streams.exe

Problem
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”

Resolution
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
http://technet.microsoft.com/en-us/sysinternals/bb897440

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