How do I access the set of credentials that are stored in WFA from the PowerShell code in a command?
I need to do a vfiler dr resync on 7-Mode. There are no commands provided for that functionality, so I need to write it myself.
But the vfiler dr resync command needs to be executed on the dr filer, but then has to connect to the source filer:
Invoke-NaVfilerDrResync -RemoteVfiler $SourceVfiler -RemoteFiler $SourceFiler
This fails with the following error:
Parameter name: Credentials not provided in cmdlet argument or credentials cache.
So I need to specify the -Credential parameter. Are the WFA controller credentials accessible via a parameter?