Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

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.