Home » automation

Tag: automation

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/

Automation of Font Installation Windows and XenApp

We Needed a process to automate the installation of non standard fonts for our XenApp Servers.

Whilst there are probably better ways to do this – here is our basic method to automate the installation of Fonts for Windows

  • Copy the specific fonts to the server locally > C:windowsfonts

Copy /Y C:masterFonts*.ttf C:windowsFonts
Copy /Y C:masterFonts*.fon C:windowsFonts
Copy /Y C:masterFonts*.otf C:windowsFonts

  • Run a regedit to register the font

[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionFonts]
“Copperplate Gothic Thirty-One BC (TrueType)”=”cp31c___.ttf”
“MF Full Screen Font VGA.640×480.CP437.v1″=”Mfvga01.fon”