Search notes:

PowerShell: the preference variable $warningPreference

The value of the $warningPreference preference variable determines what happens when the write-warning cmdlet is invoked.

Index