How to Set Password Never Expire office 365

WORLDS BEST ORGANIC MULTIVITAMIN 

Nutrilite product shot

WORLDS BEST ORGANIC MULTIVITAMIN 

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 with global admin privileges. 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. Set the Password Never Expire Attribute on the Account

Set-MSOLUser –UserPrincipalName account@onmicrosoft.com –PasswordNeverExpires $true

account@onmicrosoft.com = UPN of the account

6. Check for accounts with Password Never Expire Attribute

Get-MsolUser | FL displayname,passwordneverexpires

 

WORLDS BEST ORGANIC MULTIVITAMIN 

Nutrilite product shot

WORLDS BEST ORGANIC MULTIVITAMIN 

 

How to Find Duplicate Proxy Address

How to Find Duplicate Proxy Address

Active Directory Users and Computers

1. Run Active Directory Users and Computers.

2. Right-click the domain object and choose Find from the context menu. This will bring up the Find Users, Contacts, and Groups window.

3. In the Find drop-down list, choose Custom Search.

4. Click the Advanced tab and in the Enter LDAP query: field, enter the following text: proxyaddresses=smtp:exchange_2007@neilhobson.com.

5. Click the Find Now button.

6. The result is which object owns the SMTP address: a public folder called Exchange 2007.

ADFind

adfind –root –f proxyaddresses=smtp:exchange_2007@neilhobson.com

LDAP

1. Run ldap.exe from run prompt

2. Click the Connection menu and then click Connect.

3. In the Connect window, enter the name of one of your directory servers in the Server field and then click OK.

4. Now back at the main LDP screen, click Bind from the Connection menu.

5. In the Bind window, authenticate yourself to the directory by typing a valid username, password and domain name, and then click OK.

6. Now that we’ve connected and authenticated to the directory, we can proceed to search for our SMTP address. Click the View menu and then click Tree.

7. In the Tree View window, leave the Base DN field empty and click OK.

8. In the left-hand pane of the LDP window, you should now see your domain listed

9. Now right-click the domain name listed at the very top of the left-hand pane and choose the Search option from the context menu.

10. In the Search window, enter the following text into the Filter field:

11. proxyaddresses=smtp:exchange_2007@neilhobson.com

12. Still at the Search window, ensure that the Scope option is set to Subtree and then click Run.

13. In the right-hand pane of the LDP window, the results of the search will now be display.

 

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

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/

How to Hide Users From GAL

 Nutrilite product shot

Worlds Best Organic Multivitamins and Phyto Nutrients Available here

 

Search for user property in ADSIEDIT.msc and set the attribute as true or false

.

Method 2

1. Open the Active Directory Users and Computers Microsoft Management Console (MMC) snap-in.

2. On View menu, click Advanced Features.

3. Locate and then right-click the contact who you want to hide.

4. Click Properties.

5. Click the Exchange Advanced tab.

6. Click to select the “Hide from Exchange Address Lists” check box.

7. Click OK.

Via PowerShell

Set-Mailbox -Identity <Object@domain.com> -HiddenFromAddressListsEnabled $true

All mailboxes

get-mailbox | set-mailbox -HiddenFromAddressListsEnabled $true

Nutrilite product shot

Worlds Best Organic Multivitamins and Phyto Nutrients Available here

Search For Room Mailbox

In Exchange Management Console Select Mail Box and then select Create Filter

In the First field Select : Recipient Type Details

In the Second field select : Equals

In the Third field select : Room Mailbox

Click the Apply Filter Button

You can View More Data by adding more columns

Export the Filtered Data to a CSV or TXT file

 

 

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

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/

How to Create a Distribution & Security Group using Exchange Management Shell

How to Create a Distribution & Security Group using Exchange Management Shell

Using Exchange Management Shell Create a Distribution Group

New-DistributionGroup -Name “PD-TEST” -DomainController server1.domain.com -OrganizationalUnit “domain.com/OU name” -SAMAccountName “PD-TEST” -Type “Distribution”

.

Note : Any value marked in red is a variable and has to be altered as per requirement

Using Exchange Management Shell Create a Security Group

New-DistributionGroup -Name “PD-TEST” -DomainController server1.domain.com -OrganizationalUnit “domain.com/OU name” -SAMAccountName “PD-TEST” -Type “Security”

.

Note : Any value marked in red is a variable and has to be altered as per requirement

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

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 Distribution Group Managed By and SMTP Address

Find Distribution Group Managed By and SMTP Address

Get-DistributionGroup | Select-object Name,@{label=”ManagedBy”;expression={[string]($_.managedby | foreach {$_.tostring().split(“/”)[-1]})}},Primarysmtpaddress

To Export the Result to a CSV file use the following command

Get-DistributionGroup | Select-object Name,@{label=”ManagedBy”;expression={[string]($_.managedby | foreach {$_.tostring().split(“/”)[-1]})}},Primarysmtpaddress | export-csv “c:managed by.csv”

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

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/

How to Query Active Directory Objects

WORLDS BEST ORGANIC MULTIVITAMINS AVAILABLE HERE

Nutrilite product shot

WORLDS BEST ORGANIC MULTIVITAMINS AVAILABLE HERE

1. Launch Active Directory users and Computers, and select Saved Queries. Right Click Saved Queries – > new – > query

2. Give a name to the Query

3. Select the Define Query Button, Under Find select Custom Search.

After selecting Custom Search select the Advanced Tab

In the Enter LDAP query window paste the following basic query string and hit OK

(&(objectcategory=person)(objectclass=user)(!userAccountControl:1.2.840.113556.1.4.803:=2))

4. The Query will display the result

In order to extract more data follow the next step

5. Go to View and Select Add/Remove Columns ..

6. Add or remove the Columns Youe need

7. Right Click on the Query and select Export List

8. Select Unicode Text ( Comma Delimited ) (*.csv) and save the file

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

WORLDS BEST ORGANIC MULTIVITAMINS AVAILABLE HERE

Nutrilite product shot

WORLDS BEST ORGANIC MULTIVITAMINS AVAILABLE HERE

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 BEST ORGANIC MULTIVITAMINS AVAILABLE HERE

Nutrilite product shot

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/