Monthly Archives: May 2011

TMG and Internet Explorer 9 – file:///C:/Program%20Files/Microsoft%20Forefront%20Threat%20Management%20Gateway/UI_HTMLs/Generic.htm?guid=

Hello

If you have Internet Explorer 9 and TMG / UAG installed on the same machine you need to apply this patch, else you will get:

file:///C:/Program%20Files/Microsoft%20Forefront%20Threat%20Management%20Gateway/UI_HTMLs/Generic.htm?guid=%7B1FC3773B-C941-450C-BA39-224904EFD093%7D

  1. * Open “C:\Program Files\Microsoft Forefront Threat Management Gateway\UI_HTMLs\TabsHandler\TabsHandler.htc”
  2. Search for the 3 lines which contain “paddingTop”, and remark-out each of them by adding “//” in the begining.
    Example: Change the line:
    m_aPages [niPage].m_tdMain.style.paddingTop = ((m_nBoostUp < 0) ? -m_nBoostUp : 0) ;
    into:
    // m_aPages [niPage].m_tdMain.style.paddingTop = ((m_nBoostUp < 0) ? -m_nBoostUp : 0) ;
  3. Save the file, and re-open TMG management console.

Windows cannot print due to a problem with the current printer setup

I have this error on my Citrix servers, where one user cannot print to one printers, while others user could.
“Windows cannot print due to a problem with the current printer setup”

The Danish error:
windows kan ikke udskrive pga. problemer med den nuværende printerindstilling

The fix was:

  1. Log on as the user have the problems
  2. Delete all printers in: devices and printers.
  3. Start regedit
  4. Navigate to: HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Devices
  5. And delete all entry here, beware of not delete any entry that there still exist in devices and printers

The problems was that some printers are created with:

“\\\\server.domain\printname”=”winspool,Ne-01:”

will others are created with:

“\\\server.domain\printname”=”winspool,Ne35:” without the hyphen, and that seam to be the problems.

Get list of installed programs from dead disk ubuntu debian

If you have a dead installation, some will not boot you can use this commands, to get the list of installed programs.
grep -B 1 \
"^Status: install ok installed$" /media/recovery2/var/lib/dpkg/status | \
awk '/^Package:.*$/{print $2"\t\tinstall"}' | \
sort > package.list
And this command to install it on a new installation:
dpkg --set-selections < package.list
apt-get dselect-upgrade