Author Archives: admin

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

Freenas issue when replacing failed disk

When replacing a failed hard disk from the GUI you get the following error: “Unable to GPT format the disk ada…”. From the command line: sysctl kern.geom.debugflags=0x10 dd if=/dev/zero of=/dev/ada3 bs=512 count=1

Posted in Linux | Comments Off on Freenas issue when replacing failed disk