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”
Track Azure VHD copy process
$context = new-azurestoragecontext -storageaccountname “name_destination_account” -storageaccountkey “key_destination_account” Get-AzureStorageBlobCopyState -Blob “file_name.vhd” -Container “vhds” -Context $con Source: http://devslice.net/2013/10/moving-a-windows-azure-virtual-machine-to-a-different-data-center/
Set static IP to Azure VM
First of all, the VM must be within a virtual network to be able to add a static Private IP