Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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.