Aug 26, 2009 at 2:23 AM
Edited Aug 26, 2009 at 2:37 AM
|
Thanks!
I was able to create the drive as you suggested:
new-psdrive -credential $cred -description "BC AD" -name "bcad" -Scope Global -psprovider DirectoryServices -root "DC=bluecanyon,DC=com"
however, trying to access it id not work very well:
cd bcad:
results in:
Test-Path : The specified domain either does not exist or could not be contacted.
At C:\Program Files\PowerShell Community Extensions\Profile\Cd.ps1:185 char:19
+ if (test-path <<<< $path -type leaf) {
+ CategoryInfo : NotSpecified: (:) [Test-Path], COMException
+ FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.PowerShell.Commands.TestPathComman
d
Set-Location : The specified domain either does not exist or could not be contacted.
At C:\Program Files\PowerShell Community Extensions\Profile\Cd.ps1:188 char:18
+ Set-Location <<<< $path -ErrorAction Stop
+ CategoryInfo : NotSpecified: (:) [Set-Location], COMException
+ FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.PowerShell.Commands.SetLocationCom
mand
I know for some of the other AD oriented cmdlets, I have to specify the domain controller server name to get them to work.
so, i'm thinking that pscx is trying to use auto-discovery of the DC server, and that does not work?
might need the abilit to set/specify DC server to use also.
Note that the following does correctly return the list of DCs available:
get-domaincontroller -credential $cred -domain bluecanyon.com
Thanks,
robert
|