Bize Ulaşın / Contact Us

MS System Center Configuration Manager Logo /

Querying registry for AD Site Name in a Task Sequence

Hi, there are lots of different methods to query AD Site Name in a Task Sequence, one of them is querying the AD Site-Name value from registry. The registry key and value to be read is HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy\State\Site-Name And here is the Task Sequence condition example to check registry Hope it helps

Script ile Windows Registry de bir kayidin varligini dogrulamak

17 / 07 / 2011 by Scripting Yorum yok / No Comments

Asagidaki script ile Windows Registry sinde bir kayidin varligini kontrol edebilirsiniz, bir uygulama paketlerken ihtiyacim olmustu belki sizlerinde ihtiyaci olur.Set WshNetwork = WScript.CreateObject(“WScript.Network”)strComputer = WshNetwork.ComputerNameConst HKEY_CURRENT_USER = &H80000001Set oReg=GetObject(“winmgmts:{impersonationLevel=impersonate}!\\” & _ strComputer & “\root\default:StdRegProv”)strKeyPath = “Software\Ornek\”strValueName = “OrnekObje”oReg.GetStringValue HKEY_CURRENT_USER,strKeyPath,strValueName,strValueWscript.Echo “Ornek deger: ” & strValueOrnegin degerin istediginiz degere esit olup olmadigini asagidaki gibi cok basit bir […]

22 / 02 / 2011 by Uncategorized Yorum yok / No Comments

If you have a server with multiple NICs and if it is consisting to register it’s IP address to DNS server even while you uncheck the “register this connection’s addresses in DNS” option, I recommend you to create the registry entry below Create a DWORD named  DisableDynamicUpdate under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters and assign value 1 . Or […]