Saturday 20 August 2011

Reset Windows Update Agent variables via sysprep

Open you sysprep.inf file with notepad and add lines below under [GuiRunOnce], if you don't have [GuiRunOnce] you can create it. If you have already command under this section you should re-number commands below like Command6.../

This will run the commands below once at system startup after image applied and delete previous entries from the image you have taken, and the agent will re-generate new SusClientId for you.
Command0="reg.exe delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate /v PingID /f"
Command1="reg.exe delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate /v AccountDomainSid /f"
Command2="reg.exe delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate /v SusClientId /f"
Command3="reg.exe delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate /v SusClientIDValidation /f"

Tuesday 9 August 2011

WDS BINLSVC 0x5 525 - Pending Device Approve ederken Access Denied hatasi almak

Merhaba WDS (Windows Deployment Service) kullanarak isletim sistemi kurmaya calistiginiz da istek onaylama asamasina geldiginizde karsilasabileceginiz bir sorunun cozumune deginmek istedim. Aslinda asagidaki bilgiler sorun cozumunden ziyade WDS i yapilandirirken dikkat etmeniz gereken bir ayar olarak da kategorize edilebilir. PXEBoot araciligi ile istemciyi baslattiginizda DHCP den IP almasi, DHCP serverdan PXEBoot sunucusunu ve bootfile adini almasi ardindan WDS ile ile irtibata gectiginde WDS ayarlamis oldugunuz PXE Response settings e gore istemciye yanit verir , kurulabilecek veya calistirilabilecek imajlari listelemeden once, otomatik yanitlamaya ayarladi iseniz bekleme den yani pending devices listesine dusmeden bir sonraki ekrana gecer veya onay gerektirdiyseniz pending device listesine duser ancak her iki sekildede Directory Services tab inda da ayarlayabildiginiz OU altina Computer Object sini yaratmaya calistiginda gerekli ayari yapmadiysaniz Access Denied hatasi alirsiniz device i onaylarken. Ve Event Viewer da asagida gordugunuz hata ile karsilasirsiniz.

WDSApprove (9)

Hatanin sebebi aslinda oldukca acik sekilde hata kaydinda da yer alir, eger bilgisayar isimlendirme policylerine takilmiyorsaniz , icinde computer objesi yaratmaya calistiginiz OU altinda WDS inizin calistigi sunucunun nesne yaratma hakki yoktur, bu hakki sunucunuza atamak icin. Active Directory Users and Computers aracini calistirip hak tanimlamasi yapmaniz gerekecek bu sebeble Domain Admins grubuna dahil kullaniciniz ile araci acip WDS de Directory Services da belirttiginiz veya sectiginiz OU nun uzerine sag tusla basarak Delegate Control u seciniz.

WDSApprove

Gelen ekranda Add tusuna basiniz

WDSApprove (2)

Object Types i secerek Computers i filtrenize ekleyiniz , cunku Computer Accountu ekleyecegiz.

WDSApprove (3)

WDS sunucunuzun ismini yazip arattirdiktan sonra islemi onaylayiniz.

WDSApprove (4)

Tasks to delegate ekraninda Create a custom task to delegate secenegini seciniz ve sonraki ekrana geciniz.

WDSApprove (5)

AD Object Type ekraninda Only the following objects in folder secenegini secerek verecegimiz hakkin sinirlarini daraltalim ve listeden Computer Objects i secelim ve create selected objects in this folder ile bu haklari yaratacagimizi belirtelim ve sonraki adima gecelim.

WDSApprove (6)

Gelecek olan Permissions ekraninda ise Write All Properties secenegini secerek verecegimiz hakkin sadece yazma ile ilgili olmasini belirleyelim ve sonraki adima gecip islemimizi tamamlayalim.

WDSApprove (7)

Vermek uzere oldugumuz haklarla ilgili ozet bilgileri gozden gecirip islemin tamamlanmasini onaylayalim.

WDSApprove (8)

Saturday 6 August 2011

WDS'te boot menüyü configure etme

Windows Deployment Services boot menusu bir den falza boot image e sahipseniz konfigure edilir , menuyu konfigure etmek iste asagidakilerden birini yapabilirsiniz.

  1. Farkli mimaride bir den fazla Window PE imajini yukleyebilirsiniz,

  2. Ayni mimaride iki veya daha fazla Windows PE imajini yukleyebilirsiniz,

  3. WDSUtil i kullanabilirsiniz, WDSUtil i nasil kullanacaginiz ve parametretlerini gormek icin /? seklinde calistirmaniz yeterli olacaktir.


Biz simdi grafik arayuzden boot imaji eklemeye degil de komut satirindan nasil ekleyebiliyoruz ona bakacagiz.

Komut satirinda imajiniza ait tam yolu imajinizin ismi dahil yazmaya dikkat ediniz, ornegin;

WDSUTIL /add-image /imagefile:\\sunucu\paylasim\imajlarim\imajdosyasi /imagetype:boot

yukarida da gordugunuz gibi add-image parametresi ile imaji eklemek istedigimizi, imagefile ile imajimizin adresiniz , imagetype ile ise imajimizin tipini yani boot imaji oldugunu belirtiyoruz.

Simdi istemcinizi yeniden baslattiginizda boot menusunde yeni eklediginiz imaji da gorebileceksiniz, normalde sadece standart bir imajiniz vardi ise artik menuyu gorebiliyor olmaniz gerekir.

Wednesday 3 August 2011

How to check if WSUS using correct database instance

It is easy to check which database instance used by WSUS,

You can check it directly browsing you registry.
WSUSDBInstnc

Or by running the command below.

Reg query "HKLMSOFTWAREMicrosoftUpdate ServicesServerSetup" /v SqlServerName
wsusdbinstcmd

And if you have sqlcmd.exe on your computer you can also easily check connection by running

sqlcmd -S SqlServerName -E -d SUSDB

If you are using Windows Internal Database as the WSUS database, use the following string in place of SqlServerName in the command:

np:\.pipeMSSQL$MICROSOFT##SSEEsqlquery

and review any error messages and correct the problems.

For more information about the sqlcmd utility, see sqlcmd Utility.