Function p4update-users { $message = "This command will re-create all users on the Perforce server.`r`nWARNING: It will also invalidate EVERY auth ticket in the system.`r`nWARNING: If you ever wanted to press the 'recompute encryption key hash' button, this is the function to use.`r`nWARNING:`r`nWARNING: You have been warned." write-warning $message -warningaction Inquire p4add-newuser -userobject (p4get users | %{$_.user}) -force }