Convert NetworkCredentials to a PSCredential?

Question:

Is it possible to convert NetworkCredentials (or a variant) to a PSCredential?

I want to transparently use the credentials of the current user, but don’t want to prompt them.

Answer:

Source:

Convert NetworkCredentials to a PSCredential? by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply