I'm working on a TechNet 2008 R2 AD virtual lab and getting an error when running this command in PowerShell. I use PowerShell to type in the script below and get an this error. Can you tell me if the PowerShell script looks correct. I have even used the copy command and get the same error.
Cd AD:
PWD
DIR | Format-Table -Auto
CD "DC+Woodgrovebank,DC=com
DIR | ft-a
PS AD:\> cd DC=woodgrovebank,DC=com DIR |ft -a
Set-Location : Cannot convert 'System.Object[]' to the type 'System.String' required by pa
rameter 'LiteralPath'. Specified method is not supported.
At line:1 char:3
+ cd <<<< DC=woodgrovebank,DC=com DIR |ft -a
+ CategoryInfo : InvalidArgument: (:) [Set-Location], ParameterBindingExcept
ion
+ FullyQualifiedErrorId : CannotConvertArgument,Microsoft.PowerShell.Commands.SetLoca
tionCommand
To browse your Active Directory domain using Windows PowerShell, in the Command Pane, type the following commands, pressing ENTER after each command: