I've got a script that basically creates a user account on a number of systems, including Active Directory, and an IIS webserver that authenticates against that same Active Directory Domain.
Right now, if I just do my
As per TechNet for Invoke-WebRequest the
-UseDefaultCredentials switch should do exactly what you are asking for:
Indicates that the cmdet uses the credentials of the current user to send the web request.