Active Directory Health Check

Nutrilite product shot

Worlds Best Organic Multivitamins and Phyto Nutrients Available here

Active Directory – Health Check

Note : The following commands and script are to be run from a domain controller with enterprise / domain admin privileges. You may run the individual commands one by one or run the script. The script will run all the commands listed and generate a report

1. Replsummary operation quickly and concisely summarizes the replication state and relative health of a forest.

repadmin /replsummary

2. Synchronizes a specified domain controller with all replication partners, and reports if the sync was successful or not

repadmin /syncall /e

repadmin /syncall /Aped

A ( All partitions ) P ( Push ) E( Enterprise ) D ( Distinguished Name )

3. Forces the KCC on targeted domain controller(s) to immediately recalculate its inbound replication topology

repadmin /kcc *

4. Find the last time your DCs were backed up, by reading the DSASignature attribute from all servers

Repadmin /showbackup *

5. Output all replication summary information from all DCs

Repadmin /showrepl *

6. Displays inbound replication requests that the domain controller has to issue to become consistent with its source replication partners.

Repadmin / queue *

7. List all the Domain Controllers in Active Directory

DSQUERY Server -o rdn

8. Identifies domain controllers that are failing inbound replication or outbound replication, and summarizes the results in a report.

Repadmin /replsummary

9. Displays calls that have not yet been answered, made by the specified server to other servers

repadmin /showoutcalls *

10. List the Topology information of all the bridgehead servers

repadmin /bridgeheads * /verbose

11. Inter Site Topology Generator Report

repadmin /istg * /verbose

12. Displays a list of failed replication events detected by the Knowledge Consistency Checker (KCC).

repadmin /failcache *

13. Lists all domains trusted by a specified domain

Repadmin /showtrust *

14. Displays the replication features for, a directory partition on a domain controller.

repadmin /bind *

15. Dcdiag analyzes the state of domain controllers in a forest or enterprise and reports any problems to help in troubleshooting

dcdiag /c /e /v

16. AD Health Check Script

This script will run all the commands mentioned in this document and generate an output/log file

This script will work under the following conditions

·         DSQUERY.exe is present in C:\Windows\System32

·         Repadmin.exe is present in C:\Windows\System32

·         Dcdiag.exe is present in C:\Windows\System32

(In case of Windows Server 2003 Dcdiag and Repadmin are not installed by default, Administrator has to install Support tools for Windows Server 2003 for the script to work)

Windows Server 2003 Sp1 Support tools

http://www.microsoft.com/en-us/download/details.aspx?id=7911

Windows Server 2003 Sp2 Support tools

http://www.microsoft.com/en-us/download/details.aspx?id=15326

·         Read and Write permissions present on C: Drive, this is required as the report is written to    the root of the C drive. Administrator can change the script to flush the output to a different drive

·         The script should be run under the Enterprise admin / Domain Admin Login

·         ADHealth.bat — > AD Health Check Script Script (Mirror)

·         ADHealth.doc is a sample output/log that is generated by the script

============================================================================

How to Query Active Directory Objects
https://pdtechguru.wordpress.com/2012/10/15/how-to-query-active-directory-objects-3/

Active Directory Health Check
https://pdtechguru.wordpress.com/2012/10/04/active-directory-health-check/

Large Mailbox Items
https://pdtechguru.wordpress.com/2012/10/02/large-mailbox-items/

Find Mail Box Size using PowerShell
https://pdtechguru.wordpress.com/2012/09/28/find-mail-box-size-using-powershell/

Google Chrome Home Page Group Policy
https://pdtechguru.wordpress.com/2012/09/25/google-chrome-group-policy/

How to hide users from GAL
https://pdtechguru.wordpress.com/2012/10/26/how-to-hide-users-from-gal/

Search for Room Mailbox
https://pdtechguru.wordpress.com/2012/10/26/search-for-room-mailbox/

How to Create a Distribution & Security Group using Exchange Management Shell
https://pdtechguru.wordpress.com/2012/10/25/how-to-create-a-distribution-security-group-using-Exchange-management-shell-2/

Find Distribution Group Managed By and SMTP Address
https://pdtechguru.wordpress.com/2012/10/23/find-distribution-group-managed-by-and-smtp-address/

How to Find Duplicate Proxy Address
https://pdtechguru.wordpress.com/2012/10/30/how-to-find-duplicate-proxy-address/

Nutrilite product shot

Worlds Best Organic Multivitamins and Phyto Nutrients Available here

Large Mailbox Items

Large Items in Outlook

Option 1

In outlook Search Folders you can create Search Folder for items larger than 25MB:

Right click on Search Folders and create new Search Folder for items larger than 25600 KB.

This will list all items larger than 25MB.

Option 2

In your Inbox right click on the Grey bar

Select Arrange By and then select Size, all mails will be sorted by size

Check the Size of different mail folders

Right Click on the mail account and select Data File Properties

Click on folder Size

============================================================

How to Query Active Directory Objects
https://pdtechguru.wordpress.com/2012/10/15/how-to-query-active-directory-objects-3/

Active Directory Health Check
https://pdtechguru.wordpress.com/2012/10/04/active-directory-health-check/

Large Mailbox Items
https://pdtechguru.wordpress.com/2012/10/02/large-mailbox-items/

Find Mail Box Size using PowerShell
https://pdtechguru.wordpress.com/2012/09/28/find-mail-box-size-using-powershell/

Google Chrome Home Page Group Policy
https://pdtechguru.wordpress.com/2012/09/25/google-chrome-group-policy/

How to hide users from GAL
https://pdtechguru.wordpress.com/2012/10/26/how-to-hide-users-from-gal/

Search for Room Mailbox
https://pdtechguru.wordpress.com/2012/10/26/search-for-room-mailbox/

How to Create a Distribution & Security Group using Exchange Management Shell
https://pdtechguru.wordpress.com/2012/10/25/how-to-create-a-distribution-security-group-using-Exchange-management-shell-2/

Find Distribution Group Managed By and SMTP Address
https://pdtechguru.wordpress.com/2012/10/23/find-distribution-group-managed-by-and-smtp-address/

How to Find Duplicate Proxy Address
https://pdtechguru.wordpress.com/2012/10/30/how-to-find-duplicate-proxy-address/

Find Mail Box Size using Powershell

Find Mail Box Size using Powershell

1. From a Windows 7 or 8 machine launch Powershell as administrator

2. Run the following command to launch the Login Screen

$LiveCred = Get-Credential

In the Windows PowerShell Credential Request window that opens, type the credentials of an account in your cloud-based organization. When you are finished, click OK.

3. Run this command to initiate the session

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection

Note The AllowRedirection parameter enables cloud-based organizations in datacenters all over the world to connect Windows PowerShell to the cloud-based service by using the same URL.

4. Import the session using the command

Import-PSSession $Session

.

5. Get the mailbox size using this command

Get-mailbox | Get-Mailboxstatistics | select displayname,TotalItemSize

You can retrieve the info in a csv file by running the following command

Get-mailbox | Get-Mailboxstatistics | select displayname,TotalItemSize | export-csv “c:mailboxsize.csv”

Mail Box Size Including the Item Count

Get-Mailbox | Get-MailboxStatistics | ft DisplayName,TotalItemSize,ItemCount

SMTP Address

Get-Mailbox -ResultSize Unlimited | Select-Object DisplayName,PrimarySmtpAddress | Export-CSV “D:\PrimarySmtpAddress.csv”

Output in Maga Byte

Get-mailbox | Get-Mailboxstatistics | select displayname,TotalItemSize,ItemCount, @{expression={$_.totalitemsize.value.ToMB()};label=”Size(MB)”} | Export-CSV “D:\Username and UPN.csv”

Output in Megabyte in Html file

Get-mailbox | Get-Mailboxstatistics |Sort-Object TotalItemSize -Descending | convertto-html DisplayName, @{label=”TotalItemSize(MB)”;expression={$_.TotalItemSize.Value.ToMB()}} | set-content c:\test.html

Storage Limit and Size ( MB ) in Decending order

Get-mailbox | Get-MailboxStatistics | where {$_.ObjectClass –eq “Mailbox”} | Sort-Object TotalItemSize –Descending | ft @{label=”User”;expression={$_.DisplayName}},@{label=”Total Size (MB)”;expression={$_.TotalItemSize.Value.ToMB()}},@{label=”Items”;expression={$_.ItemCount}},@{label=”Storage Limit”;expression={$_.StorageLimitStatus}} -auto

To view the size and quota status of only those mailboxes that are larger than their configured mailbox quota

Get-Mailbox -ResultSize Unlimited | Get-MailboxStatistics | where {$_.StorageLimitStatus -notlike “BelowLimit*”} | Select DisplayName,StorageLimitStatus,@{name=”TotalItemSize (MB)”;expression={[math]::Round((($_.TotalItemSize.Value.ToString()).Split(“(“)[1].Split(” “)[0].Replace(“,”,””)/1MB),2)}},@{name=”TotalDeletedItemSize (MB)”;expression={[math]::Round((($_.TotalDeletedItemSize.Value.ToString()).Split(“(“)[1].Split(” “)[0].Replace(“,”,””)/1MB),2)}},ItemCount,DeletedItemCount | Sort “TotalItemSize (MB)” -Descending | Export-CSV “C:\Exceeded Quotas.csv” -NoTypeInformation

==============================================================================

How to Query Active Directory Objects
https://pdtechguru.wordpress.com/2012/10/15/how-to-query-active-directory-objects-3/

Active Directory Health Check
https://pdtechguru.wordpress.com/2012/10/04/active-directory-health-check/

Large Mailbox Items
https://pdtechguru.wordpress.com/2012/10/02/large-mailbox-items/

Find Mail Box Size using PowerShell
https://pdtechguru.wordpress.com/2012/09/28/find-mail-box-size-using-powershell/

Google Chrome Home Page Group Policy
https://pdtechguru.wordpress.com/2012/09/25/google-chrome-group-policy/

How to hide users from GAL
https://pdtechguru.wordpress.com/2012/10/26/how-to-hide-users-from-gal/

Search for Room Mailbox
https://pdtechguru.wordpress.com/2012/10/26/search-for-room-mailbox/

How to Create a Distribution & Security Group using Exchange Management Shell
https://pdtechguru.wordpress.com/2012/10/25/how-to-create-a-distribution-security-group-using-Exchange-management-shell-2/

Find Distribution Group Managed By and SMTP Address
https://pdtechguru.wordpress.com/2012/10/23/find-distribution-group-managed-by-and-smtp-address/

How to Find Duplicate Proxy Address
https://pdtechguru.wordpress.com/2012/10/30/how-to-find-duplicate-proxy-address/

Google Chrome Home Page Group Policy

Worlds Beast Multi Vitamins and Phyto Nutrients Available here

Nutrilite product shot

Worlds Beast Multi Vitamins and Phyto Nutrients Available here

Google Chrome can be downloaded from the following location

1. The MSI Package Can be downloaded from the following Link

http://www.google.com/intl/en/chrome/business/browser/

2. The Policy templates can be downloaded from

http://support.google.com/a/bin/answer.py?hl=en&answer=187945
http://dl.google.com/dl/edgedl/chrome/policy/policy_templates.zip

 

–          To import the Chrome Group Policy Template, navigate to Computer Configuration – Policies – Administrative Templates

–          Right Click the Administrative Templates and select “Add/Remove Templates…”

–          Add the Policy Template and click Close

–          Under Administrative Templates a new folder tree will be added by the name “ Classic Administrative Template (ADM) “

–          Install the MSI package Via Group Policy, Go to Group Policy Editor – Computer Configuration – Policies – Software Settings

–          Under Software Settings Right Click on Software installation – New – Packages

–          The Chrome MSI Package should be places on a shared folder, Browse to the shared folder and add the package. Select Assigned or Advanced and click on OK

–          After deploying the MSI package this is the very first Screen you would see after launching Chrome

In order to Set the Home Page via Group Policy Follow the following steps  

Group Policy Editor – Computer Configuration – Policies – Administrative Templates – Classic Administrative Templates ( ADM ) – Google – Google Chrome – Home page

Configure the home page URL                 –              Enable & set the web link

Eg: http://www.msn.com ( Web link is only an example )

Use New Tab Page as homepage              –              Disable

Group Policy Editor – Computer Configuration – Policies  – Administrative Templates – Classic Administrative Templates ( ADM) – Google – Google Chrome – Startup Pages

Action on startup                   –        Enable & select “Open a List of URLs”

URLs to open on startup      –         Enable & Click the Show Button and then add the site

Group Policy Editor – Computer Configuration – Policies  – Administrative Templates – Classic Administrative Templates ( ADM ) – Google – Google Chrome (Recommended)

 Show Home button on toolbar          –              Enabled

Computer Configuration – Policies  – Administrative Templates – Classic Administrative Templates ( ADM) – Google – Google Chrome (Recommended) – Home page 


Configure the home page URL                         –             
Enable & set the web link

Eg: http://www.msn.com ( Web link is only an example )

Use New Tab page as homepage                     –              Disable

Group Policy Editor – Computer Configuration – Policies  – Administrative Templates – Classic Administrative Templates ( ADM ) – Google – Google Chrome (Recommended) – Startup Pages

Action on startup                     –              Enable & select “Open a List of URLs”

Once the above mentioned group policy settings are in place run gpupdate /force on the client machine and restart the machine

After the restart when you open Chrome it should directly open whatever web site you have mentioned in the group policy

When you click on the new tab, a blank tab should open with all the history pages listed ( as shown below ) and when you click the home button the published web link should open in the new tab

If in case for some reason the settings don’t take effect as expected open Chrome://policy in the chrome browser and compare the result with the below mentioned snap shot. The result on your client machine should match the results in the snap shot

======================================================================

How to Query Active Directory Objects
https://pdtechguru.wordpress.com/2012/10/15/how-to-query-active-directory-objects-3/

Active Directory Health Check
https://pdtechguru.wordpress.com/2012/10/04/active-directory-health-check/

Large Mailbox Items
https://pdtechguru.wordpress.com/2012/10/02/large-mailbox-items/

Find Mail Box Size using PowerShell
https://pdtechguru.wordpress.com/2012/09/28/find-mail-box-size-using-powershell/

Google Chrome Home Page Group Policy
https://pdtechguru.wordpress.com/2012/09/25/google-chrome-group-policy/

How to hide users from GAL
https://pdtechguru.wordpress.com/2012/10/26/how-to-hide-users-from-gal/

Search for Room Mailbox
https://pdtechguru.wordpress.com/2012/10/26/search-for-room-mailbox/

How to Create a Distribution & Security Group using Exchange Management Shell
https://pdtechguru.wordpress.com/2012/10/25/how-to-create-a-distribution-security-group-using-Exchange-management-shell-2/

Find Distribution Group Managed By and SMTP Address
https://pdtechguru.wordpress.com/2012/10/23/find-distribution-group-managed-by-and-smtp-address/

How to Find Duplicate Proxy Address
https://pdtechguru.wordpress.com/2012/10/30/how-to-find-duplicate-proxy-address/

Worlds Beast Multi Vitamins and Phyto Nutrients Available here

Nutrilite product shot

Worlds Beast Multi Vitamins and Phyto Nutrients Available here

 

How to launch safely remove USB hardware window

How to launch safely remove USB hardware window
===========================================



If This Icon is missing from the task bar and you need to launch the “safely remove hardware” window use this command 


In Windows XP run this command from Run box ( Start button and run Dialogue Box ) 


In Vista and Windows 7 click on start – go to All Programs – Accessories  – Run 



Command :


RunDll32.exe shell32.dll,Control_RunDLL hotplug.dll
 
 
After you paste the above command in the run press OK, the safely remove window will appear 
 
 
The Command works for 
 
Windows XP
Windows Vista
Windows 7


HOW TO IMPORT AND EXPORT SUGGESTED CONTACTS IN OUTLOOK 2010

Suggested contacts is a new feature that creates contacts for addresses you send mail to when the address is not already in your address books.

Suggested Contacts are synchronized to the Exchanged Server, so whenever a user uses outlook 2007 or 2010 it auto populates in the new profile.

In an event the Suggest Contacts does not populate automatically, you can manually export and import the contacts

Option 1 : ( Export and Import )

1. Go to File | Open | Import ( For Export )

2. Select Export to a File and hit next

3. Select Outlook Data File (.pst)

4. Select Suggested Contacts

5. Specify the path, and select the appropriate option

6. Go to File | Open | Import ( For Import )

7. Select “ Import from another program or file “

8. Select Outlook Data File (.pst)

9. Specify the path, and select the appropriate option

10. Select the suggested contacts for import into current folder

11. Or Select “import Items into the same folder in” to specify which account the suggested contacts should be imported to

 

 

 

 

 

 

 

 

 

========================================================================

Option 2 :  ( Manual File Copy )

1. Go to “C:\Users\username\AppData\Local\Microsoft\Outlook\RoamCache” and backup all the             Stream_Autocomplete files

2. Restore the Stream_Autocomplete to “C:\Users\username\AppData\Local\Microsoft\Outlook\RoamCache” on the target machine