function Clear-LocalUserCredentials { <# .SYNOPSIS Used to clear local user credentials Even tho they are stored in a secure string, best to wipe them sometimes #> Remove-EnvironmentVariable -Name "CREDENTIAL_USERNAME" -Store User Remove-EnvironmentVariable -Name "CREDENTIAL_LASTCHANGED" -Store User Remove-EnvironmentVariable -Name "CREDENTIAL_PASSWORD" -Store User }