Showing posts with label Office 365. Show all posts
Showing posts with label Office 365. Show all posts

How to export group member of email account in Office 365

By // No comments:

How to export group member of email account in Office 365


In this article we will see that how to export group member list of email account in office 365can we check email account creation date in Office 365 email account. These steps are very easy to get details and for this we need powershell with administrator permission.



# Script accepts 2 parameters from the command line
#
# Office365Username - Optional - Administrator login ID for the tenant we are querying
# Office365Password - Optional - Administrator login password for the tenant we are querying
#
#
# To run the script
#
# .\Get-DistributionGroupMembers.ps1 [-Office365Username admin@xxxxxx.onmicrosoft.com] [-Office365Password Password123]
#
#
################################################################################################################################################################

#Accept input parameters
Param(
    [Parameter(Position=0, Mandatory=$false, ValueFromPipeline=$true)]
    [string] $Office365Username,
    [Parameter(Position=1, Mandatory=$false, ValueFromPipeline=$true)]
    [string] $Office365Password
)

#Constant Variables
$OutputFile = "DistributionGroupMembers.csv"   #The CSV Output file that is created, change for your purposes
$arrDLMembers = @{}


#Remove all existing Powershell sessions
Get-PSSession | Remove-PSSession

#Did they provide creds?  If not, ask them for it.
if (([string]::IsNullOrEmpty($Office365Username) -eq $false) -and ([string]::IsNullOrEmpty($Office365Password) -eq $false))
{
    $SecureOffice365Password = ConvertTo-SecureString -AsPlainText $Office365Password -Force    
    
    #Build credentials object
    $Office365Credentials  = New-Object System.Management.Automation.PSCredential $Office365Username, $SecureOffice365Password
}
else
{
 #Build credentials object
    $Office365Credentials  = Get-Credential
}
#Create remote Powershell session
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $Office365credentials -Authentication Basic –AllowRedirection       

#Import the session
Import-PSSession $Session -AllowClobber | Out-Null         

#Prepare Output file with headers
Out-File -FilePath $OutputFile -InputObject "Distribution Group DisplayName,Distribution Group Email,Member DisplayName, Member Email, Member Type" -Encoding UTF8

#Get all Distribution Groups from Office 365
$objDistributionGroups = Get-DistributionGroup -ResultSize Unlimited

#Iterate through all groups, one at a time    
Foreach ($objDistributionGroup in $objDistributionGroups)
{    

 write-host "Processing $($objDistributionGroup.DisplayName)..."

 #Get members of this group
 $objDGMembers = Get-DistributionGroupMember -Identity $($objDistributionGroup.PrimarySmtpAddress)
 
 write-host "Found $($objDGMembers.Count) members..."
 
 #Iterate through each member
 Foreach ($objMember in $objDGMembers)
 {
  Out-File -FilePath $OutputFile -InputObject "$($objDistributionGroup.DisplayName),$($objDistributionGroup.PrimarySMTPAddress),$($objMember.DisplayName),$($objMember.PrimarySMTPAddress),$($objMember.RecipientType)" -Encoding UTF8 -append
  write-host "`t$($objDistributionGroup.DisplayName),$($objDistributionGroup.PrimarySMTPAddress),$($objMember.DisplayName),$($objMember.PrimarySMTPAddress),$($objMember.RecipientType)"
 }
}

#Clean up session
Get-PSSession | Remove-PSSession


 Thanks to follow these steps and hope these steps resolve your query. if still you are facing any issue.Please leave comment and drop email (Onlinenetworkssolution@gmail.com) on our official email account.

Please leave comment that we can write more article regarding daily basis issue because your comment motivate us to write more.

Thanks to all of you once again.

How to check email account creation date in O365

By // No comments:

How  to check email account creation date in O365

In this article we will see that how can we check email account creation date in Office 365 email account. These steps are very easy to get details and for this we need powershell with administrator permission.

Resolution:


We have ran below PowerShell commands to get the mailbox created date . With your permission, we are going ahead and archiving the case.

Please follow all the step by step and hope you will enjoy this article.

Set-ExecutionPolicy RemoteSigned​

$UserCredential = Get-Credential​






$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection​

Import-PSSession $Session -DisableNameChecking​

Get-Mailbox | fl identity, whenmailboxcreated | Out-File C:\filename.txt

How to troubleshoot office activation licence issue

By // No comments:


How to troubleshoot office activation licence issue

In this article we will see that how to troubleshoot office activation licence issue. These step practiacally followed by us and 100% working. Please follow several method step by step which help to resolve your query.


First Method

Step:  Go to Control panel > Click on Credential Manager > Remove all office 365 email credential from window credentials.





Second Method:

Step: Open cmd(Command promopt) with administrator previlage > type cd c:\Program files\Microsoft office\office16 > then type cscript ospp.vbs /dstatus > after that you will see multiple key (as mentioned in screenshoot 3RQ6B & GMR2K) > Type cscript ospp.vbs /unpkey: 3RQ6B & cscript ospp.vbs /unpkey: GMR2K  (to remove license from office) and after that you can reactivate office licence.




Note:- If still you face office activation licence issue then follow last method and we are dam sure that last method will resolve your issue 100%.



Third and Last Method:

Step: Open Run(Press Window+R botton) > Type regedit and press Enter > Go to location (Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Office\16.0\Common) > Then right link on OEM and delete that > After that please close these. Then open office type user name password of your email account, you will see that your office licence activate.



Thanks to follow these steps and hope these steps resolve your office licence activation issue. if still you are facing any issue. Please leave comment and drop email  (Onlinenetworkssolution@gmail.com) on our official email account.

Please leave comment that we can write more article regarding daily basis issue because your comment motivate us to write more.

Thanks to all of you once again.

The information cannot be pasted because the Copy area are not the same size and shape

By // No comments:
Error occurred "The information cannot be pasted because the Copy area are not the same size and shape. Try one of the following:

-Click a single cell, and then paste

-Select a rectangle that's the same size and shape and then paste"


Today we will see in this article that When error occured on display while useing excel "The information cannot be pasted because the Copy area are not the same size and shape. Try one of the following:



-Click a single cell, and then paste

-Select a rectangle that's the same size and shape and then paste"

Please read full articles if you face any problem regarding this articles so please leave comments or drop email within 24 hours you will get reply by our team.

Please leave comment if article good and share it also.



Solution : If this error occur every time when you paste something in excel please must check that you may have across row 65,536 because it is maximum limit of excel sheet.

when you copy and paste data over maximum limit of row in excel it will happen continuously so please remove some old data from current sheet or you may change it.


Hope this will help to all of you and resolved your all query if you have any query or question so you may ask on email our email account (onlinenetworkssolution@gmail.com) or leave comment on page.

Disable password expiry on office365 account

By // No comments:

How to disable password expiry of user email account on office 365 ?

 We are going to share with all of you that how to disable password expiry of user email account on office 365. There are several procedure which have been mentioned step by step and these are very helpful and easy to do. We need to care on something such as when open Poweshell with administrator Privilege so there should be not shown error in red text if this shown on your screen means that powershell not supported with your system so please use another system try again.




Note:-If shown information error on your screen while running to power shell, it mean it would not work on your system. In this case you will have to use another system and check that it's working on that or not.



Please follow step by step to disable password expiry of user email account on office365.

Step1: Install Azure Active directory Powershell
           For download .msi file - Azure Active directory Powershell  Download

Step2: To connect Azure Active directory Powershell account
           Connect-MsolService



Step3: To check all email accounts which have been created on your individual domain.
           Get-MsolService -all -domainName abc.com

Step4: To check all email accounts which have been created on your all existing domain.
           Get-MsolService

Step5: To disable password expiry for a user email account
           Set-MsolUser -UserPrincipalName test@domain.com -PasswordNeverExpire $true

Step6: To Check password expiry for a user email account
           Get-MsolUser -UserPrincipalName test@domain.com| select PasswordNeverExpires

  

Hope this will help to all of you and resolved your all query if you have any query or question so you may ask to send email on our email account (onlinenetworkssolution@gmail.com) or leave comment on page.