ISA Server'da Cache dosyasini temizlemek icin asagidaki basit script ten yararlanabilirsiniz, aslinda manual olarak yaptigimiz Firewall servisinin durdurulmasi , ardindan Cache dosyasinin silinmesi ve servisin yeniden baslatilmasindan farkli bir islem yapmamakta, ancak otomatize etmek icin duz bir batch dosyasindan daha faydali olacaktir surucu ismi statik olmadigi icin ve birden fazla dosyaniz var ise bulup temizleyebilecegi icin.
Unutmayinizki Firewall servisi bu islem sirasinda durdurulup yeniden baslatilacagi icin baglantilarinizda kesinti olacaktir.
Set root = CreateObject("FPC.Root")
Set server = root.GetContainingServer()
server.StopFirewallService()
Set cacheDrives = server.CacheDrives
Set fso = CreateObject("Scripting.FileSystemObject")
For Each cacheDrive In cacheDrives
cacheFilePath = CacheDrive.Name & "\urlcache\Dir1.cdat"
WScript.echo "Cache dosyasinin yeri: " & cacheFilePath
fso.DeleteFile cacheFilePath
Next
server.StartFirewallService()
WScript.Echo "Cache icerigi temizlenmistir"
Monday, 5 July 2010
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
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.
• 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.
Tuesday, 4 May 2010
Unattended.txt icin Keyboard Layout Listesi
Bana BDD/MDT de Windows XP Build ozelliklerini konfigure etmek icin Unattended.txt i duzenlerken lazim oldu, sizlerlede asagidaki listeyi paylasmak istedim.
["Keyboard Layout"]
0000041C = "Albanian"
00000423 = "Belarusian"
00000813 = "Belgian Dutch"
0000080C = "Belgian French"
00000416 = "Brazilian (ABNT)"
00000402 = "Bulgarian"
00010402 = "Bulgarian Latin"
00001009 = "Canadian English (Multilingual)"
00000C0C = "Canadian French"
00010C0C = "Canadian French (Multilingual)"
0000041a = "Croatian"
00000405 = "Czech"
00010405 = "Czech (QWERTY)"
00000406 = "Danish"
00000413 = "Dutch"
00000425 = "Estonian"
0000040B = "Finnish"
0000040C = "French"
00000407 = "German"
00010407 = "German (IBM)"
00000408 = "Greek"
00050408 = "Greek Latin"
00010408 = "Greek (220)"
00030408 = "Greek (220) Latin"
00020408 = "Greek (319)"
00040408 = "Greek (319) Latin"
0000040E = "Hungarian"
0001040E = "Hungarian 101-key"
0000040F = "Icelandic"
00001809 = "Irish"
00000410 = "Italian"
00010410 = "Italian (142)"
0000080A = "Latin American"
00000426 = "Latvian"
00010426 = "Latvian (QWERTY)"
00000427 = "Lithuanian"
00000414 = "Norwegian"
00000415 = "Polish (Programmers)"
00010415 = "Polish (214)"
00000816 = "Portuguese"
00000418 = "Romanian"
00000419 = "Russian"
00010419 = "Russian (Typewriter)"
00000C1A = "Serbian Cyrillic"
00010C1A = "Serbian Latin"
0000041B = "Slovak"
0001041B = "Slovak (QWERTY)"
00000424 = "Slovenian"
0000040A = "Spanish"
0001040A = "Spanish variation"
0000041D = "Swedish"
0000100C = "Swiss French"
00000807 = "Swiss German"
0001041F = "Turkish F"
0000041F = "Turkish Q"
00000422 = "Ukrainian"
00000809 = "United Kingdom"
00000409 = "US"
00010409 = "US-Dvorak"
00030409 = "US-Dvorak for left hand"
00040409 = "US-Dvorak for right hand"
00020409 = "US-International"
["Keyboard Layout"]
0000041C = "Albanian"
00000423 = "Belarusian"
00000813 = "Belgian Dutch"
0000080C = "Belgian French"
00000416 = "Brazilian (ABNT)"
00000402 = "Bulgarian"
00010402 = "Bulgarian Latin"
00001009 = "Canadian English (Multilingual)"
00000C0C = "Canadian French"
00010C0C = "Canadian French (Multilingual)"
0000041a = "Croatian"
00000405 = "Czech"
00010405 = "Czech (QWERTY)"
00000406 = "Danish"
00000413 = "Dutch"
00000425 = "Estonian"
0000040B = "Finnish"
0000040C = "French"
00000407 = "German"
00010407 = "German (IBM)"
00000408 = "Greek"
00050408 = "Greek Latin"
00010408 = "Greek (220)"
00030408 = "Greek (220) Latin"
00020408 = "Greek (319)"
00040408 = "Greek (319) Latin"
0000040E = "Hungarian"
0001040E = "Hungarian 101-key"
0000040F = "Icelandic"
00001809 = "Irish"
00000410 = "Italian"
00010410 = "Italian (142)"
0000080A = "Latin American"
00000426 = "Latvian"
00010426 = "Latvian (QWERTY)"
00000427 = "Lithuanian"
00000414 = "Norwegian"
00000415 = "Polish (Programmers)"
00010415 = "Polish (214)"
00000816 = "Portuguese"
00000418 = "Romanian"
00000419 = "Russian"
00010419 = "Russian (Typewriter)"
00000C1A = "Serbian Cyrillic"
00010C1A = "Serbian Latin"
0000041B = "Slovak"
0001041B = "Slovak (QWERTY)"
00000424 = "Slovenian"
0000040A = "Spanish"
0001040A = "Spanish variation"
0000041D = "Swedish"
0000100C = "Swiss French"
00000807 = "Swiss German"
0001041F = "Turkish F"
0000041F = "Turkish Q"
00000422 = "Ukrainian"
00000809 = "United Kingdom"
00000409 = "US"
00010409 = "US-Dvorak"
00030409 = "US-Dvorak for left hand"
00040409 = "US-Dvorak for right hand"
00020409 = "US-International"
Sunday, 25 April 2010
Script ile IP adresinin DHCP sunucudan alinmasini ayarlamak
Asagidaki vb scriptini kullanarak bilgisayarlarinizin IP adreslerini statik almalari yerine DHCP almalari icin konfigure edebilirsiniz. Dilerseniz bu scripti Group Policy ile belli bir OU da topladiginiz istemcilerinize yayarak Statik Ip yonetiminden Dinamige geciyorsaniz isinizi kolaylastirmak icin kullanabilirsiniz.
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colNetAdapters = objWMIService.ExecQuery _
("Select * from Win32_NetworkAdapterConfiguration where IPEnabled=TRUE")
For Each objNetAdapter In colNetAdapters
errEnable = objNetAdapter.EnableDHCP()
Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colNetAdapters = objWMIService.ExecQuery _
("Select * from Win32_NetworkAdapterConfiguration where IPEnabled=TRUE")
For Each objNetAdapter In colNetAdapters
errEnable = objNetAdapter.EnableDHCP()
Next
Saturday, 24 April 2010
WSUS 3 Docs/Links
Description of Windows Server Update Services 3.0 Service Pack 2
Windows® Server Update Services 3.0 Service Pack 2 (WSUS 3.0 SP2) release notes
Microsoft Windows Server Update Services 3.0 SP2 Step By Step Guide
Windows Server Update Services 3.0 SP2 Download
Microsoft Windows Server Update Services 3.0 SP1 OverviewDeploying Microsoft Windows Server Update Services 3.0 SP1
Microsoft Windows Server Update Services 3.0 SP1 Operations Guide
Step-by-Step Guide to Getting Started with Microsoft Windows Server Update Services 3.0 SP1
Release Notes for Microsoft Windows Server Update Services 3.0
WSUS Client Diagnostic Tool
WSUS Server Diagnostic Tool
Tuesday, 6 April 2010
Opening Command Prompt during GUI Setup
I needed that while I am preparing my images with BDD/MDT, it is very simple but very very useful hot-key, to open command prompt during GUI mode setup just press Shift+F10.
Subscribe to:
Posts (Atom)