Windows PowerShell is in NonInteractive mode. Read and Prompt functionality is not available.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2022 12:14 AM
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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2022 04:54 AM
Try -Force with the powershell command.