Jumat, 30 Juli 2010

TUGAS | Sistem Operasi


Pengertian registry adalah pusat susunan database yg digunakan oleh Windows 9x ke atas untuk menyimpan informasi ataupun mengkonfigurasi aplikasi, perangkat keras, dan sejumlah pengguna.
Informasi dari registry terus diakses oleh Windows untuk mengetahui profil pengguna, aplikasi yang diinstal di komputer dan dokumen apa saja yang bisa dibuat oleh aplikasi tersebut, pengaturan dari folder atau icon, perangkat lunak yang sedang dipasang, dan port yang sedang dipakai.
Registry menggantikan hampir semua file .ini
file yang digunakan oleh configurasi Windows 3.x dan MS-DOS, seperti autoexec.bat dan config.sys .
Bagian Registry
Di Windows XP, Registry dibagi menjadi 6 bagian pokok, yaitu
1. HKEY_CLASSES_ROOT
HKEY_CLASSES_ROOT adalah bagian paling utama pada registry. Bagian ini merupakan kumpulan yang mengepalai kunci akar. Windows menggunakan kumpulan ini untuk mengurus semua jenis file. Sebagai contoh, tempat di mana jenis file BMP di kenal pasti dan akan di buka dengan program Windows “Paint”. Karena banyaknya file yang berlainan jenis, daftar kunci di bawah HKEY_CLASSES_ROOT akan kelihatan begitu panjang. Jika Anda memasang program baru, daftar ini akan menjadi semakin panjang.
2. HKEY_CURRENT_USER
HKEY_CURRENT_USER merupakan tempat untuk menyimpan pengaturan tentang pengguna yang sedang mengoperasikan computer. HKEY_CURRENT_USER adalah nama lain (alias) bagi HKEY_USERS. Jika pengguna sekarang mengubah sesuatu seperti wallpaper, misalnya, atau program akan menyimpan terlebih dahulu pengaturan tersebut di bawah HKEY_CURRENT_USER. Setelah pengguna sekarang log-off dari computer, windows akan menyimpan semua konfigurasi tadi ke dalm profil di bawah HKEY_USERS secara permanent. Tujuannya ialah untuk memastikan setiap perubahan yang di lakukan hanya akan memberi kesan pada pengguna sekarang saja dan tidak pada setting bagi pengguna-pengguna lain.
3. HKEY_LOCAL_MACHINE
HKEY_LOCAL_MACHINE mengandung semua pengaturan tentang hardware yang di pasang. Semua pengaturan yang tersimpan adalah untuk semua pengguna.
4. HKEY_USERS
HKEY_USERS memiliki semua data pengaturan pengguna computer. Pengaturan setiap pengguna (jika Anda memasang lebih dari satu pengguna) akan di simpan dalam profil masing-masing. Profil-profil ini memiliki perbedaan pengaturan pada wallpaper, sound, warna yang di gunakan, screen saver, dan lain-lain.
5. HKEY_CURRENT_CONFIG
HKEY_CURRENT_CONFIG adalah nama lain (alias) bagi HKEY_LOCAL_MACHINE>Config>nnnn. Nnnn adalah nomor profil yang mengandung profil hardware yang di pasang. Setiap profil mempunyai kunci tersendiri yang di panggil 0001, 0002, dan sebagainya, berdasarkan di mana kita menyimpan konfigurasi profil.
6. HKEY_DYN_DATA
HKEY_DYN_DATA (tidak terdapat dalm windows NT/2000/XP) berfungsi sedikit berbeda dengan kunci-kunci yang lain. Kuinci ini adalah salinan sementara yang di perlukan supaya windows dapat megakses data registry dengan cepat. Ia di buat pada waktu computer di hidupkan (boot) dan akan di singkirkan setelah computer di matikan (shutdown). Terdapat 2 anak kunci yang terdapat di bawahnya yaitu Config Manager yang meyimpan pengaturan konfigurasi hardware seperti yang dapat di lihat pada Plug-and-Play Configuration Manager. Anak kunci yang satu lagi di panggil perf-Stats yang mengandung pengaturan tentang komponen network.
sumber fungsi registry :http://httpz.webege.com/archives/pengertian-registry-windows/


Contoh Registry :
Mendisable TaskManager
{tambahkan Registry pada klause uses}

Procedure TForm1.Form.Create(Sender:TObject);
var
reg:Registry;
Begin
reg:=TRegistry.Create;
Try
reg.RootKey:=HKEY_CURRENT_USER;
reg.OpenKey(‘\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System’,true);
reg.WriteInteger(‘DisableTaskMgr’,1);
reg1.CloseKey;
Finally
reg.free;
end;
end;
Agar Aplikasi jalan saat window pertama aktif
User_key:[HKEY_LOCAL_MACHINE\Software\Microsoft\Wind ows\CurrentVersion\Run
Name:String nama applikasi{sperti contoh make virus with delphi
Type:REG_SZ(String_Value)
Value:
Disable TaskManager
User Key: [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\
System]
Name: DisableTaskMgr
Type: REG_DWORD (DWORD Value)
Value: (0 = default, 1 = disable Task Manager)
jika typenya DWORD maka reg.writenya integer.
diatas adalah Value2/nilai untuk mendisable TaskManger,sobat juga bisa memanipulasi value-value yang lain dengan melihatnya di Regedit tool yang penting adalah parameter-parameternya…
Mendisable regedit
User Key: [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\
System]
Name: DisableRegistryTools
Type: REG_DWORD (DWORD Value)
Value: (0 = allow regedit, 1 = disable regedit)
Menghilangkan “RUN” dari Start Menu
User Key: [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\
Explorer]
System Key: [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\
Explorer]
Name: NoRun
Type: REG_DWORD (DWORD Value)
Value: (0 = disabled, 1 = enabled)
System Key: [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon]
Name: IgnoreShiftOveride
Type: REG_DWORD (DWORD Value)
Value: (0 = default, 1 = ignore shift)
menDisable Taskbar Context Menu
User Key: [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\
Explorer]
System Key: [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\
Explorer]
Name: NoTrayContextMenu
Type: REG_DWORD (DWORD Value)
Value: (0 = disabled, 1 = enabled)
Menyembunyikan subfolder Start Menu
User Key: [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\
Explorer]
System Key: [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\
Explorer]
Name: NoStartMenuSubFolders
Type: REG_DWORD (DWORD Value)
Value: (0 = default, 1 = enable restriction)
Menghilangkan tombol All Program dari start menu
User Key: [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\
Explorer]
System Key: [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\
Explorer]
Name: NoStartMenuMorePrograms
Type: REG_DWORD (DWORD Value)
Value: (0 = default, 1 = disable button)
Disable kemampuan klik kanan di Desktop
User Key: [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\
Explorer]
System Key: [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\
Explorer]
Name: NoViewContextMenu
Type: REG_DWORD (DWORD Value)
Value: (0 = disabled, 1 = enabled)
menDisable Task Scheduler
System Key: [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServices]
Name: SchedulingAgent
Type: REG_SZ (String Value)
Value: mstask.exe
Disablemen MS-DOS Command Prompt
User Key: [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\
WinOldApp]
System Key: [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\
WinOldApp]
Name: Disabled
Type: REG_DWORD (DWORD Value)
Value: (0 = disable, 1 = enable)
menDisable Command Prompt dan Batch Files
User Key: [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System]
Name: DisableCMD
Type: REG_DWORD (DWORD Value)
Value: (0 = default, 1 = disabled, 2 = disabled but allow batch)
Run Start up di CMD(Command Prompt)
User Key: [HKEY_CURRENT_USER\Software\Microsoft\Command Processor]
Name: AutoRun
Type: REG_SZ (String Value)
Value: Command to Execute
ex:AutoRun REG_SZ “c:\batch\environ.bat”
kalau lebih dari satu maka ?”command1 && command2?
menspesifikasi exe file saat winlogon
System Key: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
Name: System
Type: REG_SZ (String Value)
Value: (default = lsass.exe)
menDisable Menu Bars dan Start Button
ubah nama key dengan mengganti “-” di atas GUID (i.e. {-5b4dae26-b807-11d0-9815-00c04fd91972}).
System Key: [HKEY_CLASSES_ROOT\CLSID\{5b4dae26-b807-11d0-9815-00c04fd91972}]
Hide or Display Administrative Tools Menu
User Key: [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\
Advanced]
Name: StartMenuAdminTools
Type: REG_SZ (String Value)
Value: Yes or No
menghilagkan kemampuan klik kanan di start menu Button (All Windows)
Nilai manipulasi ini akan kelihatan ketika user menekan klik kanan pada tombol start
untuk memilih Explore atau Find.
key [HKEY_CLASSES_ROOT\Directory\shell] kemudian nilai ’shell’ ganti menjadi ’shell.old’.
lakukan juga pada
key [HKEY_CLASSES_ROOT\Folder\shell] dan ganti nilainya menjadi [...\shell.old].
menghilangkan Control Panel, Printer dan Network Settings
User Key: [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\
Explorer]
System Key: [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\
Explorer]
Name: NoSetFolders
Type: REG_DWORD (DWORD Value)
Value: (0 = disabled, 1 = enabled)
menghilangkan setting taskbar di start menu
User Key: [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\
Explorer]
System Key: [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\
Explorer]
Name: NoSetTaskbar
Type: REG_DWORD (DWORD Value)
Value: (0 = disabled, 1 = enabled)
menghilangkan tombol logoff di start menu
User Key: [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\
Explorer]
System Key: [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\
Explorer]
Name: NoLogOff
Type: REG_DWORD (DWORD Value)
Value: (1 = no log off, 0 = show log off)
Disable Drag-dan-Drop di Start Menu
User Key: [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\
Explorer]
System Key: [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\
Explorer]
Name: NoChangeStartMenu
Type: REG_DWORD (DWORD Value)
Value: (0 = disable restriction, 1 = enable restriction)
menghilangkan Run dari Start Menu
User Key: [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\
Explorer]
System Key: [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\
Explorer]
Name: NoRun
Type: REG_DWORD (DWORD Value)
Value: (0 = disabled, 1 = enabled)
menghilangkan “Search” dari Start Menu
User Key: [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\
Explorer]
System Key: [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\
Explorer]
Name: NoFind
Type: REG_DWORD (DWORD Value)
Value: (0 = disabled, 1 = enabled)
MEnghilangkan Tray Items dari Taskbar
User Key: [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\
Explorer]
System Key: [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\
Explorer]
Name: NoTrayItemsDisplay
Type: REG_DWORD (DWORD Value)
Value: (0 = default, 1 = enable restriction
Disable Folder Options Menu
User Key: [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\
Explorer]
System Key: [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\
Explorer]
Name: NoFolderOptions
Type: REG_DWORD (DWORD Value)
Value: (0 = show options, 1 = hide options)

Remove Properties fromMy Computer
User Key: [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\
Explorer]
System Key: [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\
Explorer]
Name: NoPropertiesMyComputer
Type: REG_DWORD (DWORD Value)
Value: (0 = Properties, 1 = No Properties)
menghilangkan semua Items di the Desktop
User Key: [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\
Explorer]
System Key: [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\
Explorer]
Name: NoDesktop
Type: REG_DWORD (DWORD Value)
Value: (0 = disable restriction, 1 = enabled restriction)
Disable Hotkeys Windows
User Key: [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\
Explorer]
System Key: [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\
Explorer]
Name: NoWinKeys
Type: REG_DWORD (DWORD Value)
Value: (0 = disable restriction, 1 = enable restriction)
Peringatan HardDisk penuh
System Key: [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanServer\
Parameters]
Name: DiskSpaceThreshold
Type: REG_DWORD (DWORD Value)
Value: 0 – 99 percent (Default is 10)

     

    2 komentar: