Changes

Delete Roaming Profiles

446 bytes added, 11:59, 23 September 2009
no edit summary
Delete Cached Roaming Profiles: This will enable Windows to delete a cached profile of a roaming user when logging off the system.
<source lang="xml">
<check type="registry" condition="equals"
path="HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\DeleteRoamingCache" value="1" />
<install cmd='cmd /C regedit.exe /s "%PACKAGES%\registry\deleteroaminprofiledeleteroamingprofile.reg"'></install>
</package>
</source>
Where deleteroamingprofile.reg contains:
<source lang="reg">
Windows Registry Editor Version 5.00
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DeleteRoamingCache"=dword:00000001
</source>
 
By replacing the install command in the package above to the following, the need of an external registry file is eliminated:
<source lang="xml">
<install cmd='reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DeleteRoamingCache /t REG_DWORD /d 1 /f' />
</source>
[[Category: Silent Installers]]
[[Category: Changing Windows settings]]
Anonymous user