Wednesday 30 June 2010

DNS Sunucusu Cache ini temizleme

DNS sunucunuzun cachelenmis kayitlarini temizlemek icin asagidaki scripti kullanabilir, bu islemi periyodik olarak uygulamak istiyorsaniz Scheduled Tasks yardimi yapabilirsiniz.


strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & _
"\root\MicrosoftDNS")

Set colItems = objWMIService.ExecQuery("Select * From MicrosoftDNS_Cache")

For Each objItem in colItems
objItem.ClearCache()
Next

Saturday 5 June 2010

User Profile Hive Cleanup Service nedir?

User Profile Hive Cleanup Service ( UPHClean ) siz bilgisayarinizi kapatma , yeniden baslatma veya oturum kapatma yolu ile oturumunuzu kapatirken profilinizin bellekten kaldirilmasi sirasinda cikan sorunlari gidermek icindir. Buna aslinda oturum acmis olan kulllanici profili ve haklari altinda calisan bazi sistem ve hizmet islemleri isleri bittiginde tutmus olduklari kaynaklari birakmamalari yuzunden sebep olurlar. Ornegin asagidaki hatalar ile karsilasabilirsiniz.

• A user profile does not unload.
• A roaming profile does not reconcile.
• You reach the registry size limit (RSL).
• You take a long time to log off, and you receive the following message:
Saving settings….
• Backups may not start. There are no errors in the Application log from the Backup program. However, if you see event ID 1524, the Backup has not run.

Veya event log da ,
Windows XP and Windows Server 2003

Event Type: Error
Event Source: Userenv
Event Category: None
Event ID: 1517
Description:
Windows saved user ComputerName\UserName registry while an application or service was still using the registry during log off. The memory used by the user's registry has not been freed. The registry will be unloaded when it is no longer in use. This is caused by services running as a user account, try configuring the services to run in either the LocalService or NetworkService account.

Event Type: Error
Event Source: Userenv
Event Category: None
Event ID: 1524 Description:
Windows cannot unload your classes registry file - it is still in use by other applications or services. The file will be unloaded when it is no longer in use.

Event Type: Error
Event Source: Userenv
Event Category: None
Event ID: 1500
Description:
Windows cannot log you on because your profile cannot be loaded. Check that you are connected to the network, or that your network is functioning correctly. If this problem persists, contact your network administrator.
Details:
------------------------------
Access is denied
Windows 2000

Event Type: Error
Event Source: Userenv
Event Category: None
Event ID: 1000
Description:
Windows cannot unload your registry file. If you have a roaming profile, your settings are not replicated. Contact your administrator.
Details:
------------------------------
Access is denied

Event Type: Error
Event Source: Userenv
Event Category: None
Event ID: 1000
Description:.
Windows cannot unload your registry class file. If you have a roaming profile, your settings are not replicated. Contact your administrator.
Details: -
-----------------------------
Access is denied

Event Type: Error
Event Source: Userenv
Event Category: None
Event ID: 1000
Description:
Windows cannot log you on because the profile cannot be loaded. Contact your network administrator.

gibi kayitlarla, bu durumda ( User Profile Hive Cleanup Service ) UPHCLEAN i bilgisayariniza kurmaniz sorununuzu cozebilecektir, uygulama kurulum sonrasi yeniden baslatma islemine ihtiyac duymayacaktir.

UPHClean sisteminizde profilinizi ve kaynaklara erisim durumunu izleyerek profilinizin bellekten bosaltilma islemi gerektiginde bu islemin basarili sonuclanmasi icin gerekecek mudaheleleri yapacaktir.

Isterseniz UPHClean servisini sadece bu bosaltim islemini engelleyen prosesleri bulmak icinde kullanabilirsiniz, bunun icin regsitrydeki
HKLM\System\CurrentControlSet\Services\UPHClean\Parameters\REPORT_ONLY
kaydinin degerini 1 yapmaniz gerekecektir.

HKLM\System\CurrentControlSet\Services\UPHClean\Parameters\ girince burada USER_EXCLUSION_LIST , PROCESS_EXCLUSION_LIST gibi parametreleri de goreceksiniz, ornegin raporlama.exe diye bir uygulamaniz var bu uygulamayi UPHClean in izlemesini istemiyorsaniz raporlama.exe seklinde PROCESS_EXCLUSION_LIST e ekleyebilirsiniz.

Veya belirlediginiz kullanicilar icin bu servisin pasif kalmasini diliyorsaniz, USER_EXCLUSION_LIST altinda bu kullanicilari DomainAdi\KullaniciGirisAdi seklinde belirtme sansina da sahipsiniz.