
IntErr = objReg. Private Function KeyExists(objReg, strSubTree, strKeyPath) ' Returns: True if the registry key exists, False otherwise ' - the registry key we want to search for. ' - Which subtree to we want to search, ie HLKM, HKCU etc. ' Function to test for the existance for a registry key ObjReg.SetDWORDValue HKEY_CURRENT_USER, strKeyPath, strValueName, &H00000224 ' dword:0x00000225 = Auto Arange on, Align to Grid on ' dword:0x00000224 = Auto Arrange off - align to Grid On ' dword:0x00000220 = Auto Arrange off, Align to Grid off ' Set the icon auto arrangement / grid settings ObjReg.SetDWORDValue HKEY_CURRENT_USER, strKeyPath, strValueName, &H00000000 ObjReg.DeleteValue HKEY_CURRENT_USER, strKeyPath, strValueName If (Left(strValueName,7) = "ItemPos") Then ObjReg.EnumValues HKEY_CURRENT_USER, strKeyPath, arrValueNames ' Delete stored icon positions (ItemPos values) If KeyExists(objReg,HKEY_CURRENT_USER,strKeyPath) Then Heres another idea if you use a Start Menu like Classic Shell. You can see them any time again by doing the same operation. This will hide all Desktop icons at once. In the context menu, untick the following item: View - Show Desktop Icons. ' First test to see the the registry key exists Right click the desktop background, meaning, the empty space on the Desktop. StrKeyPath = "Software\Microsoft\Windows\Shell\Bags\1\Desktop" ' Set which registry key we want to modify Set objReg = GetObject("winmgmts:!\\.\root\default:StdRegProv") ' Create a registry object for the local computer ' Hex value for HKEY_CURRENT_USER sub-tree (Appologies about the length of the script, but I've added a few comments to try and explain what is going on)Ĭode: ' =ĭim strComputer, objReg, strKeyPath, arrValueNames, strValueName

The following vbs script should achieve this, if it is run as a logon script. So in order to reset a users desktop layout you would need to remove any ItemPos values and optionally set the FFlags and Sort values depending on your requirements. ItemPos800圆00), which contol the user defined positions of the icons for different screen resolutions. The sort value controls the sort order of the icons (by name, by type, by size etc.), the FFlags value controls the arrangement of the icons (align to grid, auto align etc.)įinally there may be any number of ItemPos values (appended with different screen resolutions eg. This registry key contains a number of values, the most relevant if which are the ItemPos values, the Sort value and the FFlags value. Step 2: In the prompted window, open Sources folder to reveal another three files.

WINDOWS XP DESKTOP ICON RESIZE ARCHIVE
Instead, you should browse to the executable, and then right-click and choose 7-Zip > Open archive > cab from the context menu.
WINDOWS XP DESKTOP ICON RESIZE INSTALL
The settings for desktop icon placement in Windows XP are located in the the HKCU\Software\Microsoft\Windows\Shell\Bags\1\Deskt op registry key. Step 1: After downloading the Windows XP Mode virtual hard disk, don’t install it.
