Reversing changes from ConfigureRemotingForAnsible.ps1 script

For this script, ConfigureRemotingForAnsible.ps1, that automates the setup of WinRM on Windows remote nodes, can the changes be easily reversed to bring back to “factory” settings?

Thank you!