I have two forests and I'd like to do a series of command on both of them. I have excactly the same username and password on both of the forests. I'm using
foreach ($forest in $forests) {
Connect-QADService -Service $forest -quiet
((all my commands go here!))
}
but I am only able to connect to the domain/forest I am currently in (this does not suprise me however..)
Is there a way that I can use the same username and password in both forests?