I want to install dfs replication group using powershell commands but the problem is when I login as administrator I cannot create replication group as it through error that system is not in domain. when I login via domain user and password , command runs perfectly. So my requirement is once I login as administrator I can switch to domain user via powershell and run below command:
New-DfsReplicationGroup -GroupName "RG01"
Thanks