Ustawianie Active Desktop#

 Często się zdarza że użytkownikom sie rozjerzdża pulpit Active Desktop. Aby temu zapobiec, ustawiamy na jednym użytkowniku pulpit tak jak ma wygłądać, a następnie robimy zrzut pliku z rejestru z gałęzi HKCU\Software\Microsoft\Internet Explorer\Desktop\Components. Zrzut wygląda np. tak:

[HKEY_USERS\S-1-5-21-1220945662-362288127-1606980848-10081\Software\Microsoft\Internet Explorer\Desktop\Components]
"DeskHtmlVersion"=dword:00000110
"DeskHtmlMinorVersion"=dword:00000003
"Settings"=dword:00000001
"GeneralFlags"=dword:00000004

[HKEY_USERS\S-1-5-21-1220945662-362288127-1606980848-10081\Software\Microsoft\Internet Explorer\Desktop\Components\0]
"Source"="http://activebss/"
"SubscribedURL"="http://activebss/"
"FriendlyName"=""
"Flags"=dword:00002002
"Position"=hex:2c,00,00,00,4b,00,00,00,00,00,00,00,35,04,00,00,44,03,00,00,00,\
  00,00,00,01,00,00,00,01,00,00,00,01,00,00,00,00,00,00,00,00,00,00,00
"CurrentState"=dword:00000004
"OriginalStateInfo"=hex:18,00,00,00,ff,ff,00,00,ff,ff,00,00,ff,ff,ff,ff,ff,ff,\
  ff,ff,04,00,00,80
"RestoredStateInfo"=hex:18,00,00,00,50,02,00,00,35,01,00,00,00,01,00,00,f6,00,\
  00,00,01,00,00,00

[HKEY_USERS\S-1-5-21-1220945662-362288127-1606980848-10081\Software\Microsoft\Internet Explorer\Desktop\Components\1]
"Source"="About:Home"
"SubscribedURL"="About:Home"
"FriendlyName"="My Current Home Page"
"Flags"=dword:00000002
"Position"=hex:2c,00,00,00,10,03,00,00,15,01,00,00,e0,00,00,00,d6,00,00,00,ea,\
  03,00,00,01,00,00,00,01,00,00,00,01,00,00,00,00,00,00,00,00,00,00,00
"CurrentState"=dword:00000001
"OriginalStateInfo"=hex:18,00,00,00,ff,ff,00,00,ff,ff,00,00,ff,ff,ff,ff,ff,ff,\
  ff,ff,04,00,00,00
"RestoredStateInfo"=hex:18,00,00,00,ff,ff,00,00,ff,ff,00,00,ff,ff,ff,ff,ff,ff,\
  ff,ff,01,00,00,00

[HKEY_USERS\S-1-5-21-1220945662-362288127-1606980848-10081\Software\Microsoft\Internet Explorer\Desktop\Components\2]
"Source"="http://n:8080/ActiveBss/index.html"
"SubscribedURL"="http://n:8080/ActiveBss/index.html"
"FriendlyName"="BssActive"
"Flags"=dword:00000002
"Position"=hex:2c,00,00,00,10,02,00,00,1f,00,00,00,e0,00,00,00,d6,00,00,00,ec,\
  03,00,00,01,00,00,00,01,00,00,00,01,00,00,00,00,00,00,00,00,00,00,00
"CurrentState"=dword:00000001
"OriginalStateInfo"=hex:18,00,00,00,ff,ff,00,00,ff,ff,00,00,ff,ff,ff,ff,ff,ff,\
  ff,ff,04,00,00,80
"RestoredStateInfo"=hex:18,00,00,00,10,02,00,00,1f,00,00,00,e0,00,00,00,d6,00,\
  00,00,01,00,00,00

Teraz tworzxymy szybki skrypcik batchowy który doda nam te wpisy do default usera i użytkownika mandatoryjnego:

reg load HKU\TempUser "\\%1\c$\Documents and Settings\Default User\ntuser.dat"

reg delete "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components" /f

reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components" /v DeskHtmlVersion /t REG_DWORD /d 272 /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components" /v DeskHtmlMinorVersion /t REG_DWORD /d 3 /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components" /v Settings /t REG_DWORD /d 1 /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components" /v GeneralFlags /t REG_DWORD /d 4 /f

reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\0" /v Source /t REG_SZ /d http://activebss/ /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\0" /v SubscribedURL /t REG_SZ /d http://activebss/ /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\0" /v FriendlyName /t REG_SZ /d "" /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\0" /v Flags /t REG_DWORD /d 8194 /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\0" /v Position /t REG_BINARY /d 2c0000004b000000000000003504000044030000000000000100000001000000010000000000000000000000 /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\0" /v CurrentState /t REG_DWORD /d 4 /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\0" /v OriginalStateInfo /t REG_BINARY /d 18000000ffff0000ffff0000ffffffffffffffff04000080 /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\0" /v RestoredStateInfo /t REG_BINARY /d 18000000500200003501000000010000f600000001000000 /f

reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\1" /v Source /t REG_SZ /d About:Home /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\1" /v SubscribedURL /t REG_SZ /d About:Home /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\1" /v FriendlyName /t REG_SZ /d My Current Home Page /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\1" /v Flags /t REG_DWORD /d 2 /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\1" /v Position /t REG_BINARY /d 2c0000001003000015010000e0000000d6000000ea0300000100000001000000010000000000000000000000 /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\1" /v CurrentState /t REG_DWORD /d 1 /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\1" /v OriginalStateInfo /t REG_BINARY /d 18000000ffff0000ffff0000ffffffffffffffff04000000 /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\1" /v RestoredStateInfo /t REG_BINARY /d 18000000ffff0000ffff0000ffffffffffffffff01000000 /f

reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\2" /v Source /t REG_SZ /d http://n:8080/ActiveBss/index.html /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\2" /v SubscribedURL /t REG_SZ /d http://n:8080/ActiveBss/index.html /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\2" /v FriendlyName /t REG_SZ /d "BssActive" /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\2" /v Flags /t REG_DWORD /d 2 /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\2" /v Position /t REG_BINARY /d 2c000000100200001f000000e0000000d6000000ec0300000100000001000000010000000000000000000000 /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\2" /v CurrentState /t REG_DWORD /d 1 /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\2" /v OriginalStateInfo /t REG_BINARY /d 18000000ffff0000ffff0000ffffffffffffffff04000080 /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\2" /v RestoredStateInfo /t REG_BINARY /d 18000000100200001f000000e0000000d600000001000000 /f
reg unload HKU\TempUser

reg load HKU\TempUser "\\%1\c$\Documents and Settings\mandatory\ntuser.man"


reg delete HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components /f

reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components" /v DeskHtmlVersion /t REG_DWORD /d 272 /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components" /v DeskHtmlMinorVersion /t REG_DWORD /d 3 /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components" /v Settings /t REG_DWORD /d 1 /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components" /v GeneralFlags /t REG_DWORD /d 4 /f

reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\0" /v Source /t REG_SZ /d http://activebss/ /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\0" /v SubscribedURL /t REG_SZ /d http://activebss/ /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\0" /v FriendlyName /t REG_SZ /d "" /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\0" /v Flags /t REG_DWORD /d 8194 /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\0" /v Position /t REG_BINARY /d 2c0000004b000000000000003504000044030000000000000100000001000000010000000000000000000000 /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\0" /v CurrentState /t REG_DWORD /d 4 /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\0" /v OriginalStateInfo /t REG_BINARY /d 18000000ffff0000ffff0000ffffffffffffffff04000080 /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\0" /v RestoredStateInfo /t REG_BINARY /d 18000000500200003501000000010000f600000001000000 /f

reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\1" /v Source /t REG_SZ /d About:Home /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\1" /v SubscribedURL /t REG_SZ /d About:Home /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\1" /v FriendlyName /t REG_SZ /d My Current Home Page /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\1" /v Flags /t REG_DWORD /d 2 /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\1" /v Position /t REG_BINARY /d 2c0000001003000015010000e0000000d6000000ea0300000100000001000000010000000000000000000000 /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\1" /v CurrentState /t REG_DWORD /d 1 /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\1" /v OriginalStateInfo /t REG_BINARY /d 18000000ffff0000ffff0000ffffffffffffffff04000000 /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\1" /v RestoredStateInfo /t REG_BINARY /d 18000000ffff0000ffff0000ffffffffffffffff01000000 /f

reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\2" /v Source /t REG_SZ /d http://n:8080/ActiveBss/index.html /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\2" /v SubscribedURL /t REG_SZ /d http://n:8080/ActiveBss/index.html /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\2" /v FriendlyName /t REG_SZ /d "BssActive" /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\2" /v Flags /t REG_DWORD /d 2 /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\2" /v Position /t REG_BINARY /d 2c000000100200001f000000e0000000d6000000ec0300000100000001000000010000000000000000000000 /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\2" /v CurrentState /t REG_DWORD /d 1 /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\2" /v OriginalStateInfo /t REG_BINARY /d 18000000ffff0000ffff0000ffffffffffffffff04000080 /f
reg add "HKU\Tempuser\Software\Microsoft\Internet Explorer\Desktop\Components\2" /v RestoredStateInfo /t REG_BINARY /d 18000000100200001f000000e0000000d600000001000000 /f
reg unload HKU\TempUser


Monday, September 19, 2005 7:50:12 PM (Central European Standard Time, UTC+01:00) #    Comments [0]  |  Trackback

 

Name
E-mail
Home page

Comment (HTML not allowed)  

Enter the code shown (prevents robots):

Live Comment Preview
All content © 2010, Krzysztof Pietrzak
On this page
This site
Calendar
<September 2010>
SunMonTueWedThuFriSat
2930311234
567891011
12131415161718
19202122232425
262728293012
3456789
Archives
Sitemap
Blogroll OPML
  Tokyo by night
blog WiTa
  W-Files
blog n€x¤Ra
 .:fotoblog:.
blog Kfaza
 \\archon\blog$
blog archona
 Czasowstrzymywacz
Blog Fookyego
 Jog Pstryka
Jog Pstryka
 Mac OS X vs. Active Directory
techniczny blog kfaza

Maps
Locations of visitors to this page