Score:0

Using NETDOM to remove trust between domains

vn flag

following is NETDOM trust command to remove trust between domains, it is being used in batch script that I plan to run remotely on multiple "Trusting Domains"

It works when run locally (executed on Trusting Domain DC) but I am getting the following error when executed remotely.

The /d parameter was unexpected, check NETDOM syntax

I am saving Trusting Domain in a variable and passing it on to NETDOM command in the second line, anything you think I have missed here? The goal is to remove trust without interaction

    @echo off 
    set domain=%USERDNSDOMAIN%
    netdom trust %domain% /d:trusteddomain /remove /UserD:TrustedDomainAccount /PasswordD:TrustedDomainPassword /Force
cn flag
What is the output with echo on?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.