Thursday, 18 June 2015

EXPORT LIST ALL COMPUTERs IN ACTIVE DIRECTORY WITH STATUS LAST LOGON DATE

1.  Go to Administrative Tools > and select the Active Directory Module for Windows PowerShell.
2.  On the Active Directory Module for Windows PowerShell run the command syntax as below;
Get-ADComputer -Filter * -Properties * | FT Name, LastLogonDate –Autosize
3.  We will get the result as screen capture as below;
Name     LastLogonDate
----     -------------
MHI-DC01 6/12/2015 4:03:07 PM
MHI-CM07 6/12/2015 4:12:52 PM

Sunday, 14 June 2015

RESTORE DELETED OBJECT USING ADRESTORE TOOL

In my situation, I accidentally delete the OU in Active Directory in Windows Server 2008 R2 with Windows Server 2003 for Domain functional Level.

1. Download and extract the ADRestore file from Microsoft Sysinternal to Domain Controller.  May download from this URL https://technet.microsoft.com/en-us/sysinternals/bb963906.aspx 
2. At Domain Controller server run CMD adrestore /r
3. Verify the attribute to restore, press Y to restore and Done.

Wednesday, 3 June 2015

HOW TO PING FROM SPECIFIC SOURCE IP TO DESTINATION IP

On Windows Server/PC you can simply run command (CMD) as below (use uppercase for S)