Difference between revisions of "Delete Roaming Profiles"
From WPKG | Open Source Software Deployment and Distribution
(grammar correction, minor) |
|||
Line 1: | Line 1: | ||
− | Delete Roaming Profiles: | + | 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"> | <source lang="xml"> | ||
Line 5: | Line 7: | ||
<check type="registry" condition="equals" | <check type="registry" condition="equals" | ||
path="HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\DeleteRoamingCache" value="1" /> | path="HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\DeleteRoamingCache" value="1" /> | ||
− | <install cmd='cmd /C regedit.exe /s "%PACKAGES%\registry\ | + | <install cmd='cmd /C regedit.exe /s "%PACKAGES%\registry\deleteroamingprofile.reg"'></install> |
</package> | </package> | ||
</source> | </source> | ||
Line 11: | Line 13: | ||
Where deleteroamingprofile.reg contains: | Where deleteroamingprofile.reg contains: | ||
<source lang="reg"> | <source lang="reg"> | ||
+ | Windows Registry Editor Version 5.00 | ||
+ | |||
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon] | [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon] | ||
"DeleteRoamingCache"=dword:00000001 | "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> | </source> | ||
[[Category: Silent Installers]] | [[Category: Silent Installers]] | ||
[[Category: Changing Windows settings]] | [[Category: Changing Windows settings]] |
Revision as of 11:59, 23 September 2009
Delete Cached Roaming Profiles:
This will enable Windows to delete a cached profile of a roaming user when logging off the system.
<package id="delroamingprofile" name="Delete Roaming Profile" revision="1" reboot="false" priority="1000" timeout="10">
<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\deleteroamingprofile.reg"'></install>
</package>
Where deleteroamingprofile.reg contains:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DeleteRoamingCache"=dword:00000001
By replacing the install command in the package above to the following, the need of an external registry file is eliminated:
<install cmd='reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DeleteRoamingCache /t REG_DWORD /d 1 /f' />