Hüseyin Göksin Blog

Bilgi paylaştıkça çoğalır….

DHCP backup restore

Export için CMD Admin ile açılır, sonra “netsh dhcp server export c:\dhcp.txt all” komutu kullanılır.

sonra içeri almak için “netsh dhcp server import c:\dhcp.txt all” kullanılır.



Filed under: Server 2012, Server2008

Ethernet Kartını Sıfırlamak için yapılacaklar.

Sanal serverda başka bir model kart eklenir ise, kart id 1-2-3-4 gibi rakamlarla ilerliyor, bu lisanslı uygulamalarda problem yaratmaktadır, ilgili komutlar çalıştırılarka gizli kalan eski ethernet listeleniyor ve silinebiliyor, sonrasında id’yi düzeltebiliyorsunuz….



View > Show Hidden Devices

Filed under: Server 2012, Server2008

GPO Sorunu-Polyc Çalışmıyor ise ve bu hatayı alıyorsanız 2008r2 de bunu uygulayın..Error 5807

vent Id 5807
Description During the past number hours there have been number connections to this Domain Controller from client machines whose IP addresses dont map to any of the existing sites in the enterprise. Those clients, therefore, have undefined sites and may connect to any Domain Controller including those that are in far distant locations from the clients. A clients site is determined by the mapping of its subnet to one of the existing sites. To move the above clients to one of the sites, please consider creating subnet object(s) covering the above IP addresses with mapping to one of the existing sites. The names and IP addresses of the clients in question have been logged on this computer in the following log file SystemRoot\debug\netlogon.log and, potentially, in the log file SystemRoot\debug\netlogon.bak created if the former log becomes full. The log(s) may contain additional unrelated debugging information. To filter out the needed information, please search for lines which contain text NO_CLIENT_SITE:. The first word after this string is the client name and the second word is the client IP address. The maximum size of the log(s) is controlled by the following registry DWORD valueHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters\LogFileMaxSize; the default is 20000000 bytes. The current maximum size is 20000000 bytes. To set a different maximum size, create the above registry value and set the desired maximum size in bytes.
Event Information According to Microsoft:
This issue may occur if the following conditions are true:
1. The IP address of the client computer is not defined.
2. The IP address of the client computer is not mapped to an existing site in the Subnets folder of the Active Directory Sites and Services snap-in on the local domain controller.
To resolve this issue, define the IP address of the client computer in the Subnets folder, and then map the IP address to the site that contains the local domain controller. To do this, follow these steps:
1. Click Start, point to Programs, point to Administrative Tools, and then click Active Directory Sites and Services.
2. In the left pane, locate and then click the Sites\Subnets folder.
3. Right-click Subnets, and then click New Subnet.
4. In the Address box, type the IP address of the client.
5. In the Mask box, type the subnet mask of the client.
6. In the Site Name list, click the site object that you want to join the client to, and then click OK. When you select a site object, you have to select the site object that contains the local domain controller.
7. On the File menu, click Exit to close Active Directory Sites and Services.
Reference Links You may receive event ID 5807 on a Windows Server 2003-based domain controller

NETLOGON Event ID 5807 is recorded on a Windows Server 2003 domain controller

Filed under: Server2008

2008 standart serveri entr. upgrade

To determine the installed edition, run:
DISM /online /Get-CurrentEdition

To check the possible target editions, run:
DISM /online /Get-TargetEditions

Finally, to initiate an upgrade, run:
DISM /online /Set-Edition:<edition ID> /ProductKey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX

For example, to upgrade to Enterprise from a downlevel version, run:
DISM /online /Set-Edition:ServerEnterprise /ProductKey:489J6-VHDMP-X63PK-3K798-CPX3Y

Filed under: Server2008

RDP Bloke sorunu (how-to-logoff-remote-desktop-sessions-via-command-line-tools)

This trick I learned from my one of ex-college.  In Windows servers, only two remote desktop sessions allowed with administrative access. There are situations, you can’t connect to the server via remote desktop because of two sessions already active.  You may have seen this dialog box. (“Remote Desktop Disconnected”, “This computer can’t connect to the remote computer”)

Usually Windows Administrators, open “Terminal Services Manager” (in Administrative tools), connect to the problematic server and log off the unwanted sessions.  There are easy ways if you love command line based tools.

Query the Remote Server for Current Terminal Sessions

To query and list the sessions on the remote session, you could use QUser.exe or QWinsta

1. QUser

QUser command comes with all the latest Windows clients and servers. This will list the sessions of the remote server (or local machine).

NOTE: if you are using Windows XP, you need to add this location into your System path: C:WindowsSystem32DLLCache. To do this, in command prompt, type the following.

SET PATH = %PATH%;C:WindowsSystem32DLLCache;

QUser help shows,

C:Anand>QUser /?
Display information about users logged on to the system.

QUERY USER [username | sessionname | sessionid] [/SERVER:servername]

  username            Identifies the username.
sessionname         Identifies the session named sessionname.
sessionid           Identifies the session with ID sessionid.
/SERVER:servername  The server to be queried (default is current).


C:>quser /server:MyCitrixSVR
johndoe               ica-tcp#966        10  Active          7  7/31/2008 3:04 PM
averagejoe            ica-tcp#969         1  Active          9  7/31/2008 3:30 PM
familyman             ica-tcp#984         5  Active       1:06  7/31/2008 4:33 PM
normaldude            ica-tcp#987         2  Active          4  7/31/2008 6:20 PM

2. QWinsta

QWinsta is little different and better. It has more features and options. It comes with all flavors of Windows.  QWinsta command line help displays as,

C:>qwinsta /?
Display information about Terminal Sessions.

QUERY SESSION [sessionname | username | sessionid]
[/SERVER:servername] [/MODE] [/FLOW] [/CONNECT] [/COUNTER]

  sessionname         Identifies the session named sessionname.
username            Identifies the session with user username.
sessionid           Identifies the session with ID sessionid.
/SERVER:servername  The server to be queried (default is current).
/MODE               Display current line settings.
/FLOW               Display current flow control settings.
/CONNECT            Display current connect settings.
/COUNTER            Display current Terminal Services counters information.



C:>qwinsta /server:citrixserver
SESSIONNAME       USERNAME                 ID  STATE   TYPE        DEVICE
0  Disc    rdpwd
ica-tcp                                 65536  Listen  wdica
rdp-tcp                                 65537  Listen  rdpwd
console                                    16  Conn    wdcon
ica-tcp#966       johndoe                  10  Active  wdica
ica-tcp#969       apple                     1  Active  wdica
ica-tcp#984       averagejoe                5  Active  wdica
ica-tcp#987       familyman                 2  Active  wdica
ica-tcp#989       whoisme                   3  Active  wdica

You are welcome to try the other options QWinsta provides.

Logoff the Remote Sessions

To Log off the terminal session of the remote server, you can use any one of two command line tools. One of LOGOFF and another one is RWINSTA. Before you log off the remote session, you should know the “Session ID” which you get it from “QUSER” OR “QWINSTA” commands as above stated.

1. Logoff

Logoff command kicks off (logging off) the specified remote session. Log off help shows,

C:>logoff /?
Terminates a session.

LOGOFF [sessionname | sessionid] [/SERVER:servername] [/V]

  sessionname         The name of the session.
sessionid           The ID of the session.
/SERVER:servername  Specifies the Terminal server containing the user
session to log off (default is current).
/V                  Displays information about the actions performed.


C:>logoff /server:infra-apps 1 /v
Logging off session ID 1

2. RWinsta

RWinsta has same parameters and does same thing as log off command. It simply means Reset WINdowsSTAtion. The help goes as,

C:>RWinsta /?
Reset the session subsytem hardware and software to known initial values.

RESET SESSION {sessionname | sessionid} [/SERVER:servername] [/V]

  sessionname         Identifies the session with name sessionname.
sessionid           Identifies the session with ID sessionid.
/SERVER:servername  The server containing the session (default is current).
/V                  Display additional information.


C:>RWinsta /Server:MyWinServer 1

Filed under: Server2008

2008 yada 2003 server’da dosya yetkileri aşşağıdaki yerdedir.


Filed under: Server2008

Aktif-Server-Pc Adları ve OS


1. Kodlar Windows Server 2008 yüklü olan bir etki alanı sunucusunda çalıştırılmalıdır.


Yöntem 1 (Adım Adım)

  1. Windows Server 2008 ve ya üzeri ile çalışan bir etki alanı sunucusuna bağlanın ve PowerShell  (PS) ekranını açın;
  2. Import-Module ActiveDirectory” komutu ile aktif dizin bileşenlerini yükleyin;
  3. $today = Get-Date” Komut ile günü belirleyin;
  4. $cutoffdate = $today.AddDays(-60)” Komutu ile 60 gün içerisinde sisteme kaydolmuş istemcileri filtreleyin;
  5. Get-ADComputer  -Properties * -Filter {LastLogonDate -gt $cutoffdate} | Select Name,OperatingSystem,OperatingSystemVersion, LastLogonDate,CanonicalName | Export-Csv ./ActiveComputers.csv” Komutu ile dosyayı oluşturun;


Filed under: Server2008

You were not connected because a duplicate name exists on the network, Go to System in Control Panel




Xp desktop pc lerin 2008 files servera erişim sorunu



Yeni kurmuş olduğumuz Windows Server 2008 veya Windows Server 2008 R2 üzerinde aşağıdaki adımları yapıyor olmamız gereklidir.

1-    Başlat – Çalıştır

2-    Regedit – Tamam

3-    HYKEY_LOCAL_MACHINESYSTEMCurrentControlSetSerivcesLanmanServerParameters bölümüne gelin.

4-    Parameters bölümünde herhangi bir yere sağ tuş yapıp, Yeni ve ardından DWORD (32 Bit) Değerini seçin.

Sonrasında aşağıdaki değerleri giriniz:

  • Değer Adı       : DisableStrictNameChecking
  • Değer Verisi   : 1
  • Taban             : Onaltılık

5-    Son olarak yapmamız gereken bu regedit kaydının aktif olması sağlamak. Konuyla ilgili olarak yapmanız gereken Sunucuyu kapatıp açmak veya aşağıdaki komutları çalıştırmaktır.


  • net stop server
  • net start server


Desteklenen Platformlar:

Windows Server 2008

Windows Server 2008 R2



Filed under: Server2008

2008 web server kurulumu video

Filed under: Server2008