Hello, we have three domains. domain1, domain2, domain3
I have a list of computer that i need to remove from domain2.
Once i enter the powershell session with my domain admin account, the session is created under domain1.
Get-Content C:\Users\domainadmin-SA\Documents\ComputerList.txt | Remove-ADComputer -WhatIf
How do i create the pssession under domain2 so when i read the computer list the computer accounts are removed ?