Exchange 365 - PowerShell Connect

Install-Module -Name ExchangeOnlineManagement

Import-Module ExchangeOnlineManagement
Connect-ExchangeOnline -UserPrincipalName This email address is being protected from spambots. You need JavaScript enabled to view it. [-UseRPSSession]

IPTABLES - Log

iptables -A INPUT -j LOG --log-prefix "iptables:"

IPTABLES - Flush

iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT

iptables -t nat -F
iptables -t mangle -F
iptables -F
iptables -X

VHDX - Increase size

Install Hyper-V role:

Enable-WindowsOptionalFeature –Online -FeatureName Microsoft-Hyper-V –All -NoRestart


(Install Hyper-V Tools:

Install-WindowsFeature RSAT-Hyper-V-Tools -IncludeAllSubFeature

)


Restart the computer:

Restart-Computer


Connect network drive to the VHDX files:

net use Y: "\\SERVER\SHARE" /user:This email address is being protected from spambots. You need JavaScript enabled to view it. *



Load the Hyper-V PowerShell module:

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-Management-PowerShell


Resize the VHDX profile disk:

Resize-VHD "Y:\NomDuFichier.vhdx" -SizeBytes XXGB