GPO: Custom ADM to redirect Favorites for Windows XP

Custom ADM template to redirect Favorites for Windows XP workstations. Copy the text below to a notepad file and save with .adm extension. Import the ADM file into your GPO and change the path for your environment.

 

 

–Copy start below-

CLASS MACHINE

CLASS USER

    CATEGORY “Custom Policies”

    KEYNAME “Software\Microsoft\Windows\CurrentVersion\Policies”

        POLICY “Favorites”

            PART “Redirect Favorites” EDITTEXT

            KEYNAME “Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders”

            VALUENAME “Favorites”

            DEFAULT “H:\MY DOCUMENTS\Favorites”

            MAXLEN 50

            END PART

        END POLICY

    END CATEGORY

–Copy end above–

VBScript: List MS hotfixes installed

Script below will echo out hotfixes installed on current system.  Change strComputer name to display for remote system.
Usage: cscript.exe script.vbs

==Code start==

strComputer = “.”

Set objWMIService = GetObject(“winmgmts:” _

& “{impersonationLevel=impersonate}!\\” & strComputer & “\root\cimv2”)

Set colQuickFixes = objWMIService.ExecQuery _

(“Select * from Win32_QuickFixEngineering”)

For Each objQuickFix in colQuickFixes

‘ Wscript.Echo “Computer: ” & objQuickFix.CSName

Wscript.Echo “Description: ” & objQuickFix.Description

if objQuickFix.HotFixID<>”File 1″ then Wscript.Echo objQuickFix.HotFixID

wscript.Echo “Installation Date: ” & objQuickFix.InstallDate

Wscript.Echo “Installed By: ” & objQuickFix.InstalledBy

Next

==Code End==