Skip to content
Apostolidis Cloud Corner

Apostolidis Cloud Corner

Remarks from a Cloud Architect encounters

  • Home
    • Privacy Policy
  • About me
    • About me
    • Contact Me
  • Azure
  • Microsoft
    • Azure
    • IaC
    • Office 365
    • PowerShell
    • Clients
    • Servers
    • Exchange
    • Hyper-V
  • Linux
  • Ελληνικα
  • Videos
  • Speaking
  • Podcasts

A simple batch script to delete Files & Folders older than x days

August 5, 2014 Pantelis Apostolidis Clients, Microsoft, PowerShell, Servers One comment

The below deletes all files from c:temp older than 10 days: FORFILES /p “c:temp” /m *.* /c “cmd /c Del

Continue reading

Connect Powershell to Exchange Online

July 24, 2014 Pantelis Apostolidis Exchange, Microsoft, Office 365, PowerShell, Servers

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

Continue reading

Copy AZURE VHD to other storage account

July 10, 2014 Pantelis Apostolidis Azure, Microsoft, PowerShell, Servers

#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”

Continue reading

Track Azure VHD copy process

July 10, 2014 Pantelis Apostolidis Azure, Microsoft, PowerShell, Servers

$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/

Continue reading

Set static IP to Azure VM

July 9, 2014 Pantelis Apostolidis Azure, Microsoft, PowerShell, Servers

First of all, the VM must be within a virtual network to be able to add a static Private IP

Continue reading

Posts pagination

«Previous Posts 1 … 39 40 41 42 43 44 Next Posts»

Buy Me A Coffee

Tags

active directory (7) application gateway (4) automation (16) azure (113) azure backup (6) azure front door (6) azurerm (77) azure rm (8) azure security center (5) azure vm (16) backup (6) cluster (4) core (6) devops (5) exchange (22) exchange 2013 (13) exchange online (15) hyper-v (4) iis (5) json (4) linux (4) log analytics (5) managed disks (4) monitoring (5) nested virtualization (6) nsg (5) office 365 (18) oms (5) powershell (42) puppet (5) security (8) speaker (6) sql (16) storage (11) storage account (8) udr (4) virtual machine (10) virtual network (17) virtual network gateway (4) vnet (8) vpn (10) waf (6) web app (6) web application firewall (5) windows server (10)
Copyright © 2014-2025 | Apostolidis Cloud Corner