How to save ipconfig to a txt file using PowerShell

How to save ipconfig to a txt file using PowerShell