Category Archives: Windows

Some useful Powershell One Liners

Find Public IP address (Invoke-RestMethod ipinfo.io/json).ip Traceroute tnc google.com -tr Check if a port is open tnc google.com -p 443 Check if a specific update is installed Get-Hotfix|Where-Object {$_.HotfixID -match "KB5018410"} Search for a specific file type in a directory … Continue reading

Posted in Windows | Comments Off on Some useful Powershell One Liners

Change the smtp address of a Microsoft 365 Group

In order to create a remote powershell session to 365, open Windows Powershell and run below commands: $UserCredential = Get-Credential and enter your 365 credentials when prompted. Then type: $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic … Continue reading

Posted in Windows | Leave a comment