Obligatory PowerShell moderator comments:

  1. Please use a useful subject. You’re in the PowerShell forum, so putting a subject of PowerShell is redundant :smiley:
  2. Use the code button when putting in PowerShell (it’s the </> button)
  3. Read this: PLEASE READ BEFORE POSTING! Read if you're new to the PowerShell forum!

Good luck! And I think the using of DomainCredential should do it, might need to use LocalCredential too, but probably not.