4 Aralık 2015 Cuma

Psexec LOGOFF Remote user / computer and administrators

Remotely Logoff User

Use it when you want to logoff a remote admin because you hate using the Windows Terminal Services Console or because sometimes it crashes.


C:\psexec.exe \\[IPaddress_or_ComputerName] -u DomainName\UserName cmd.exe

PsExec v1.94 - Execute processes remotely
Copyright (C) 2001-2008 Mark Russinovich
Sysinternals - www.sysinternals.com

Password: ********

Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.

C:\WINDOWS\system32>query session

SESSIONNAME USERNAME ID STATE TYPE DEVICE
>console Administrator 0 Active wdcon
rdp-tcp 65536 Listen rdpwd
rdp-tcp#4 User1 1 Active rdpwd
rdp-tcp#5 User2 2 Active rdpwd

C:\WINDOWS\system32>logoff 1

C:\WINDOWS\system32>logoff 2

12 Kasım 2015 Perşembe

Windows Server 2012 Enable Desktop Icons

Open Run


Copy and paste the line below into the Open: field, then click OK

"%Systemroot%\system32\rundll32.exe" shell32.dll,Control_RunDLL desk.cpl,,0

8 Haziran 2015 Pazartesi

ESX Host currently has no management network redundancy

When admitting a host to a HA cluster, or enabling HA on an existing cluster you may receive the "Host currently has no management network redundancy" warning message.


This happens due to requirements in a HA cluster where the management network (that is the service console or VMkernel port for management) is required to have two physical NICs.

If this requirement is not met the above error message is displayed. While I recommend you always, always ensure the management network has two pNICs and is redudant (including via seperate physical switches), it might not be possible in a demo/test environment.
In which case you may want to disable this warning message.


This can be done as follows...

1. Go to "Edit" the cluster settings

2. Click "VMware HA"

3. Click "Advanced Options"




4. Add "das.ignoreRedundantNetWarning" and set the value to "True", Click Ok



5. If there error still shows you need to select the host and click "Reconfigure for HA"

11 Mart 2015 Çarşamba

Disable users account move them to different OU PowerShell

Disable users account move them to different OU

Powershell Commands

Search-ADAccount –AccountDisabled –UsersOnly –SearchBase “DC=domain, DC=local” |Move-ADObject –TargetPath “OU=Disable Account, DC=domain,DC=local”

10 Mart 2015 Salı

Old Disabled Users list last logon date With Powershell

Old Disabled Users list last logon date With Powershell

12 month old

Search-ADAccount -accountdisabled | where {$_.lastlogondate -lt (get-date).addmonths(-12)} | FT Name,samaccountname,LastLogonDate | out-file -filepath C:\export.txt –noclobber

23 Aralık 2014 Salı

How Do I Set a Group Policy to Lock a PC After Minutes

1- Click "Start." Type "Gpedit.msc" into the search box at the bottom of the Start menu. Press "Enter."

2- Click "Yes" in the User Account Control prompt window, if one appears.

3- Navigate to the "User Configuration\Administrative Templates\Control Panel\Personalization" folder in the left pane of the Group Policy window.

4- Double-click the "Password Protect the Screen Saver" setting in the right pane of the Group Policy Editor window.

5- Click "Enabled." Click "OK."

6- Double-click the "Screen Saver Timeout" setting in the right pane.

7- Click "Enabled."

8- Type the number of seconds you want to lock the PC after into the "Seconds" box. For example, type "600" if you want to lock the PC after 10 minutes.

9- Click "OK."

12 Aralık 2014 Cuma

Event ID 2042 Active Directory Replikasyon Problemi


Active Directory içerisinde uzun zamandır kapalı tuttuğunuz ya da replikasyonu kesilmiş bir Domain Controller’ı devreye aldığınızda replikasyonla ilgili tombstone lifetime süresi geçti replike yapılamadı gibi uyarılar almanız muhtemeldir. Bu problemi çözmek için;
Yeni açmış olduğunuz sunucuda regedit.exe çalıştırılarak aşağıdaki registry kaydı girilir.
regedit çalıştırıldıktan sonra

“HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NTDS\Parameters” path’ine ulaşılır.

Sağ tıklayıp “New – DWORD value” seçtikten sonra aşağıdaki parametre ismi verilir.
“Allow Replication With Divergent and Corrupt Partner”

Parametrenin üzerine sağ tıklayıp “Modify” dedikten sonra Value “1” olarak girilir.

Replikasyon başlatılır ve tamamlandığını gördükten sonra bu parametrenin değerini “0” olarak değiştirmemiz gerekmektedir.