The CreatorCon Call for Content is officially open! Get started here.

Windows PowerShell is in NonInteractive mode. Read and Prompt functionality is not available.

sumarani s
Tera Contributor

invoke-command -ComputerName  $env:SNC_Hostname -Credential $cred -scriptblock{import-module Activedirectory;
New-ADGroup -Name "${activityInput.Groupname}"
}

 

Am executing the above command to Create New Security group in AD getting this error "Windows PowerShell is in NonInteractive mode. Read and Prompt functionality is not available." 

can anyone suggest me the solution for this,

 

 

1 REPLY 1

vandna
Tera Guru

Try -Force with the powershell command.