Full Screen Mode in VMWare

I just setup a new VM using a Windows 2008 R2 server to do some SharePoint 2010 development. To really get started I switched my VM to fill-screen-mode, in order to get more desk-space.

But that just gave me a blank, black screen. Resizing the window works perfectly fine, but not full-screen. Even manually triggering the “fit client” event didn’t do anything good.

The solution was trivial (as usual with this kind of errors): you have to enable 3D acceleration in the VM settings. What a bummer.

Printer mapping in script

On a side note, a quick way to add printer mappings in a logon script. Even though logon-scripts seem a little out-dated with the power of group policies … non the less.

OK, to map a printer to a local machine you can leverage the rundll32.

rundll32 printui.dll,PrintUIEntry /in /n \\[server]\[printer_share]

IFilter for TIFF

Windows Server 2008 R2 comes OOTB with an IFilter, which allow the indexing of TIFFs. During the indexing the IFilter performs an OCR to recognize the actual content of the TIFF for the index.

This combined with a corresponding scanner introduces a small-sized DMS, where you can scan paper based documents to a document-library and let them being index and thus fully searchable by SharePoint.

Showing them all

In Windows Vista as well as in Windows 7 the Control Panel has had a major redesign, compared to Windows XP. All items are now organized into categories, and the actual dialogs might not be accessible right from the control panel.

To overcome this “shortage” you can start-up a new explorer window, and type in the address-bar shell:::{ED7BA470-8E54-465E-825C-99712043E01C}. This will open up a new view, showing about 250 entries for all dialogs within the control panel; happy tuning.

3.300,91

SMART monitoring on Windows

Well, there is most likely no way to know before-hand that a disk will fail. But you could try to read the signs. And what a surprise, there is help already available. This S.M.A.R.T. thingy could be of help; SMART collects a lot of data of your disks, which can be used to evaluate how “well” your disk is doing. This could show some up-coming trouble.

To read the SMART-Data, there exists quite a few programs. For Linux you would most likely use smartmontool, and fortunatly, these tools are also available for Windows!

Getting and Installing smartmontool

  1. Just download the latest Windows-Installer from sourceforge, which will install all needed binaries.
  2. Edit the smartd.conf to meet your needs
  3. Either run smartd in daemon-mode, or as a Windows Service

Configuration

The DEVICESCAN option allows to detect all available devices and add them to the monitoring list; but I like to tailor my config-files a little. So I comment-out the DEVICESCAN and add some options of my own:

   hda -a -o on -S on -I 194 -I 231 -I 9 -m sysmsgbox

This will monitor my 1st disk, and ignore some measures (-I 194 -I 231 -I 9) like thermal stuff. Besides that I would like to carry out all of the typical tests (-a), do selftests (-o on) and collect statical data (-S on). Finally I would like to get a popup (‘-m sysmsgbox’; this is just available in the windows version) if something is going wrong

Pimp my Windows!

Themes

Bereits seit Windows 2000 gibt es die Möglichkeit das Look&Feel von Windows mit Themes anzupassen.

Das von Microsoft entwickelte msstyle-Format erlaubt es, das Erscheinungsbild von Windows komplett anzupassen. Leider müssen dafür die msstyle-Vorlagen digital signiert sein, und das ist das Problem an der ganzen Sachen.

Eine Lösung dafür ist es, die uxtheme.dll von Microsoft auszutauschen, so daß auch nicht signierte Styles verwendet werden können. Grundsätzlich gibt es zwei Möglichkeiten um die uxtheme.dll zu patchen: manuell oder mit einem Multi-Patcher. Der Vorteil des Multi-Patchers ist, daß er das Betriebssystem automatisch erkennt und die DLL entsprechend austauscht. Bei dem manuellen Weg muss zunächst de Windows Dateischutz (Windows File Protection) umgangen werden, um die uxtheme.dll auszutauschen.

Der Weg über den Multi-Patcher ist recht einfach. Zunächst den aktuellen Patcher downloaden und dann ausführen. Dieser erkennt Windows XP RTM/SP1/SP2 und Windows 2003 automatisch und tauscht die entsprechende DLL aus. Wenn das Programm ausgeführt und der Button “Patch” getätigt wurde, muss so lange gewartet werden, bis der Windows-Dateischutz anspringt und meldet, dass Dateien durch unbekannte Dateien ersetzt wurden. Das Ersetzen der geänderten Datei durch den Windows-Dateischutz mit den Originaldateien muss über den Button “Abbrechen” verhindert werden, da sonst der Patchvorgang nicht erfolgreich abgeschlossen werden kann. Nach einem Neustart können nicht signierte Visual Styles verwendet werden.

Um das ganze manuell durchzuführen sind ein paar mehr Schritte notwendig. Zunächst muss die für das Betriebssystem passendende uxtheme.dll heruntergeladen werden (uxtheme für Windows 2003 Server, uxtheme für Windows XP SP2).

  1. Um den Windows Dateischutz zu umgehen muss zunächst im VerzeichnisC:\WINDOWS\System32\dllcache die Datei UXTheme.dll durch die heruntergeladene ausgetauscht werden.
  2. Das System muss als nächstes im abgesicherten Zustand gestartet werden (F8 beim Starten drücken)
  3. anschließend kann die uxtheme.dll im ‘system32’-Verzeichnis ausgetauscht werden. Dazu am besten folgendes in einer DOS-Box ausführen:
       ren %SystemRoot%\system32\uxtheme.dll uxtheme.bak
       copy %SystemRoot%\system32\dllcache\uxtheme.dll %SystemRoot%\system32\

Nachdem die uxtheme.dll gepatched wurde können nun beliebige visuelle Styles geladen werden. Dabei gibt es eine Vielzahl von Styles, die Windows XP bereits einen Hauch von Vista geben. Dazu zählt zum Beispiel ein Hauch von dem neuen Glas-Effekt.

Mehr Pimpin’

Wohin geht der Weg beim Pimpen von Windows?

Aber das Pimpin’ des Desktops geht noch weiter, hier sind ein paar Links, die Ausblicke auf das noch Mögliche geben.

Ganz besonders begeistert bin ich von BumpTop. Auf YouTube gibt es auch ein Video mit einer Demo des Desktops. Bei BumpTop geht es um eine ganz neue Art von Desktop-Organisation.

Für wen BumpTop noch zu abgehoben ist (zumal es ja auch bisher nur einen Prototypen gibt), der kann sich vielleicht mit einem Zwischending zwischen Vista und BumpTop anfreunden. Bei SphereSite geht es um die 3D-Darstellung von Windows.

Sehr ultimativ ist auch das Bery Project für Linux. Dabei handelt es sich ähnlich wie bei Vista auch um jede Menge visuelle Designs wie Glas und 3D Effekte.

Symbolische Links

Die Möglichkeit Junction Points in NTFS anzulegen existiert bereits seit Windows 2000. Allerdings geht das nicht direkt mit Bordmitteln, sondern es wird ein zusätzliches Tool von Microsoft benötigt.

Um NTFS Junction Points anzulegen wird das Programm linkd.exe benötigt, welches jeweils im Windows Resource Kit enthalten ist.

Mit linkd Zielverzeichnis Quellverzeichnis kann ein Link erstellt werden.

NOTE: Microsoft strongly recommends:

Use NTFS ACLs to protect junction points from inadvertent deletion.

Use NTFS ACLs to protect files and directories targeted by junction points from inadvertent deletion or other file system operations.

Never delete a junction point using Explorer, a del /s command, or other file system utilities that walk recursively into directory trees. These utilities will affect the target directory and all subdirectories. Instead, use the utilities described below to delete junction points.

Use caution when applying ACLs or changing file compression in a directory tree that includes NTFS Junction Points.

Do not create namespace cycles with NTFS or DFS junction points.

Place all your junction points at a secure location in a namespace where you can test them out in safety, and other users will not mistakenly delete them or walk through them.

Link: Windows 2003 Resource Kit Tools

Windows NT schneller starten

Windows NT erwartet bekanntlich beim Hochfahren immer die Eingabe von Username und Passwort. In vielen Bereichen ist dieses Sicherheitsfeature aber eher hinderlich. Durch entsprechende Einträge in der Registry können Sie die Anmeldung automatisieren. Legen Sie dazu folgende Schlüssel an: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\WinLogonmit diesen Werten:

 AutoAdminLogon (REG_SZ) = "1"
 DefaultPassword (REG_SZ) = "<Betreffendes Passwort>"
 DefaultUserName (REG_SZ) = "<Betreffenden Username>"
 DefaultDomain (REG_SZ) = "<Betreffende Domain>"

Der Eintrag Default Domain wird nur benötigt, wenn Sie sich tatsächlich an einer Domain anmelden

Service Pack 2 in Windows-XP-CD integrieren

Für die Integration wird zum einen das SP2 für XP als auch die original Installations-CD benötigt.

  1. Als erstes muss die Original-CD auf die Festplatte kopiert werden. Es wird davon ausgegangen, daß die CD in nach E:\XP_INST kopiert wird.
  2. Anschließend wird das SP2 mit dem Parameter /integrate:<Pfad>. Pfad ist dabei der Ordner, in dem sich die Original-Dateien der Installations-CD befinden, in diesem Fall also E:\XP_INST. Dabei darf kein Leerzeichen zwischen integrate: und dem Pfad stehen. Als Ergebnis erhält im Wurzelverzeichnes des SP2 eine Datei win51ip.SP2.
  3. Mit Nero kann das Image nun auf CD gebrannt werden. Dazu wird ein neue Projekt vom Typ CD-ROM (Boot) erstellt. Der benötigte Bootblock kann hier heruntergeladen werden. Als Emulation sollte Keine Emulation verwendet werden, der Name für den Bootblock ist beliebig, Ladesegment 0C70 und 4 Bootblocks.

Link: Service Pack 2 in Windows-XP-CD integrieren