; Global PM Script
; SIJ 11/08/08
;
; -------------------------
;
; All Users
SETCONSOLE ("HIDE")
WriteValue ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion", "RegisteredOwner", "SIJ", "REG_SZ")
WriteValue ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion", "RegisteredOrganization", "SIJ", "REG_SZ")
WriteValue
("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Active
Setup Temp Folders", "StateFlags0001", "00000002", "REG_DWORD")
WriteValue
("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Compress
old files", "StateFlags0001", "00000002", "REG_DWORD")
WriteValue
("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Content
Indexer Cleaner", "StateFlags0001", "00000002", "REG_DWORD")
WriteValue
("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Downloaded
Program Files", "StateFlags0001", "00000002", "REG_DWORD")
WriteValue
("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Internet
Cache Files", "StateFlags0001", "00000002", "REG_DWORD")
WriteValue
("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Memory
Dump Files", "StateFlags0001", "00000002", "REG_DWORD")
WriteValue
("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Microsoft_Event_Reporting_2.0_Temp_Files",
"StateFlags0001", "00000002", "REG_DWORD")
WriteValue
("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Old
ChkDsk Files", "StateFlags0001", "00000002", "REG_DWORD")
WriteValue
("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Remote
Desktop Cache Files", "StateFlags0001", "00000002", "REG_DWORD")
WriteValue
("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Setup
Log Files", "StateFlags0001", "00000002", "REG_DWORD")
WriteValue
("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Temporary
Files", "StateFlags0001", "00000002", "REG_DWORD")
WriteValue
("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\WebClient
and WebPublisher Cache", "StateFlags0001", "00000002", "REG_DWORD")
IF @Day='Friday'
RUN "chkdsk.exe C: /F"
RUN "cleanmgr.exe /dc /sagerun:1"
RUN "defrag.exe C:"
RUN "shutdown.exe -s"
ENDIF