Connect windows powershell to Exchange Online with a Global Administrator $UserCredential = Get-Credential $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/
Category: Microsoft
Delete user from Office 365 with DirSync
First you need to remove the user from DirSync: Open the “Synchronization Service Manager” (cn be fount at “C:Program FilesWindowsAzureActiveDirectorySyncSYNCBUSSynchronization
A simple batch script to delete Files & Folders older than x days
The below deletes all files from c:temp older than 10 days: FORFILES /p “c:temp” /m *.* /c “cmd /c Del
Connect Powershell to Exchange Online
Connect PowerShell to Exchange Online $UserCredential = Get-Credential $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Copy AZURE VHD to other storage account
#Source storage account $context1 = new-azurestoragecontext -storageaccountname “name_source_account” -storageaccountkey “key_source_account” #Destination storage account $context2 = new-azurestoragecontext -storageaccountname “name_destination_account” -storageaccountkey “key_destination_account”