How to Set Password Never Expire office 365

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

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
http://pdtechguru.wordpress.com/2012/10/15/how-to-query-active-directory-objects-3/

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

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

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

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

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

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

How to Create a Distribution & Security Group using Exchange Management Shell
http://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
http://pdtechguru.wordpress.com/2012/10/23/find-distribution-group-managed-by-and-smtp-address/

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

How to Hide Users From GAL

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

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
http://pdtechguru.wordpress.com/2012/10/15/how-to-query-active-directory-objects-3/

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

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

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

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

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

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

How to Create a Distribution & Security Group using Exchange Management Shell
http://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
http://pdtechguru.wordpress.com/2012/10/23/find-distribution-group-managed-by-and-smtp-address/

How to Find Duplicate Proxy Address
http://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
http://pdtechguru.wordpress.com/2012/10/15/how-to-query-active-directory-objects-3/

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

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

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

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

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

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

How to Create a Distribution & Security Group using Exchange Management Shell
http://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
http://pdtechguru.wordpress.com/2012/10/23/find-distribution-group-managed-by-and-smtp-address/

How to Find Duplicate Proxy Address
http://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
http://pdtechguru.wordpress.com/2012/10/15/how-to-query-active-directory-objects-3/

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

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

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

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

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

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

How to Create a Distribution & Security Group using Exchange Management Shell
http://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
http://pdtechguru.wordpress.com/2012/10/23/find-distribution-group-managed-by-and-smtp-address/

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

How to Query Active Directory Objects

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

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

 

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

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

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

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

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

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

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

How to Create a Distribution & Security Group using Exchange Management Shell
http://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
http://pdtechguru.wordpress.com/2012/10/23/find-distribution-group-managed-by-and-smtp-address/

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