I am developing a SharePoint2013 instance in Hyper-V using Windows2012R2. Currently I am struggling to attach credentials to a variable in SharePoint Management Shell and then attach that variable to a New SharePoint account.
After I run the following script(s) I received this error:
Script(s): "Variable" = Get-Credential "Domain\Username"
New-SPManagedAccount -Credential "Variable"
Error: New-SPManagedAccount -Credential "Variable" : Some or all identity references could not be translated.
Essentially the new SharePoint account cannot be created and attached to the variable because the account cannot be found. However the first script worked, so I am lost as to where or how the Variable stored the "Domain\Username".