Advertisements
Feeds:
Posts
Comments

Archive for the ‘Office 365’ Category


Display Exchange Online mailbox information with Office 365 PowerShell

https://technet.microsoft.com/en-us/library/mt771881(v=exchg.160).aspx

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

Display Microsoft Exchange Online mailbox information with Office 365 PowerShell
(more…)

Advertisements

Read Full Post »


OneDrive for Business retention and deletion

Their OneDrive for Business will be preserved for 30 days. You’re the temporary owner of all documents saved to their OneDrive for Business.

Reason

When a OneDrive for Business site collection is scheduled for deletion, the default action is to transfer ownership of the site to the manager of the original work account or school account that is being deleted. For this to occur, the user profile Manager Property must be set for the original owner of the OneDrive for Business site. For more go to OneDrive retention

For this to occur, the user profile Manager Property and Access Delegation need to be set for the deleted user before deleting it. To do that, as a global admin or SharePoint admin, please follow the steps below: 
1. Go to the SharePoint admin center
2. Click User profiles > People > Manage User Profiles > Find the user account to deleted > Edit my profile > Manager > type the manager account into the box > Save and Close

Go to central admin

Then Edit my profile

(more…)

Read Full Post »


Azure AD Connect sync: Prevent accidental deletes

This topic describes the prevent accidental deletes (preventing accidental deletions) feature in Azure AD Connect.

f this was unexpected, then investigate and take corrective actions. To see which objects are about to be deleted, do the following:

  1. Start Synchronization Service from the Start Menu.
  2. Go to Connectors.
  3. Select the Connector with type Azure Active Directory.
  4. Under Actions to the right, select Search Connector Space.
  5. In the pop-up under Scope, select Disconnected Since and pick a time in the past. Click Search. This page provides a view of all objects about to be deleted. By clicking each item, you can get additional information about the object. You can also click Column Setting to add additional attributes to be visible in the grid.

    The following command:

    First run the following command just to make sure

Get-ADSyncExportDeletionThreshold | FT

Then disable it

Disable-ADSyncExportDeletionThreshold

(more…)

Read Full Post »


Error after configuration Wizard

I am having the following after installing the Central admin

Loading this assembly would produce a different grant set from other instances

(more…)

Read Full Post »


Azure AD Connect sync: Prevent accidental deletes

This topic describes the prevent accidental deletes (preventing accidental deletions) feature in Azure AD Connect.

f this was unexpected, then investigate and take corrective actions. To see which objects are about to be deleted, do the following:

  1. Start Synchronization Service from the Start Menu.
  2. Go to Connectors.
  3. Select the Connector with type Azure Active Directory.
  4. Under Actions to the right, select Search Connector Space.
  5. In the pop-up under Scope, select Disconnected Since and pick a time in the past. Click Search. This page provides a view of all objects about to be deleted. By clicking each item, you can get additional information about the object. You can also click Column Setting to add additional attributes to be visible in the grid.

    The following command

    First run the following command just to make sure

Get-ADSyncExportDeletionThreshold| FT

The disable it

Disable-ADSyncExportDeletionThreshold

If all the deletes are desired, then do the following:

  1. To temporarily disable this protection and let those deletes go through, run the PowerShell cmdlet: Disable-ADSyncExportDeletionThreshold. Provide an Azure AD Global Administrator account and password. 
    1. With the Azure Active Directory Connector still selected, select the action Run and select Export.
    2. To re-enable the protection, run the PowerShell cmdlet: Enable-ADSyncExportDeletionThreshold.

Read Full Post »

Online PowerShell


Connect to all Office 365 services in a single Windows PowerShell window

For all online PowerShell commands

https://technet.microsoft.com/en-us/library/dn568015.aspx

 

for exchange online use the following

## Exchange

Import-Module MSOnline

$O365Cred = Get-Credential

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

Import-PSSession $O365Session

Connect-MsolService -Credential $O365Cred

 

For SharePoint online use the following

 

##Sharepointonline

 

Set-ExecutionPolicy RemoteSigned

$credential = Get-Credential

 

Import-Module Microsoft.Online.SharePoint.PowerShell -DisableNameChecking

Connect-SPOService -Url https://domainhost-admin.sharepoint.com -credential $credential

Read Full Post »


On-premises user isn’t receiving emails from online user

 

First we must move the user to un synced OU

The log in the the server which have the Azure AD sync tool

And open the windows azure active directory tool

Now that we have moved the user in a unsynchronized OU and that it’s appearing in the “Deleted users” section, you have to forcefully delete the user so you won’t have to wait for 30 days:

Run the following command

In the azure power shell

Start-ADSyncSyncCycle -PolicyType Delta

Then open the PowerShell and connect to the online exchange

Use the following command

Import-Module MSOnline

$O365Cred = Get-Credential

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

Import-PSSession $O365Session

Connect-MsolService -Credential $O365Cred

Then run the following to get the object ID

Get-MsolUser -ReturnDeletedUsers | FL -Property ObjectId,displayname

We must get the user objectID

Remove-MsolUser -ObjectId 080535c0-061a-4b0e-a6fe-48ed7fc9159d -RemoveFromRecycleBin -Force    

Note: make sure you enter the correct ObjectId

After deleting the user, you will have to make sure his cloud mailbox is also deleted using one of the following cmdlets:

Get-Mailbox -Identity “username@domain.com | Remove-Mailbox -PermantentlyDelete $true

Get-Mailbox -SoftDeletedMailbox “ username@domain.com ” | Remove-Mailbox -PermantentlyDelete $true

Now do another delta sync in the azure AD server

Start-ADSyncSyncCycle -PolicyType Delta

After the cloud user and cloud mailbox are completely removed from the tenant, move the user from your local AD back into the synchronized OU, do a Delta Sync and then wait for the user to appear again in the Office 365 cloud, under Active users. Do not assign a license to the user.

Now move him back to the synced OU

And run the command

Start-ADSyncSyncCycle -PolicyType Delta

Read Full Post »

Older Posts »

%d bloggers like this: