May 10, 2007 at 3:29 PM
Please pardon the newbie question, but is there a way to prevent the stop-terminalsession cmdlet from prompting for confirmation? This cmdlet is exactly what I have been looking for to help with my terminal server management, but now I need to get past the confirmation. I am trying to logoff all terminal sessions by using:

get-terminalsession | where {$.id -ne 0} | stop-terminalsession $.id

but when I run the command it prompts me to confirm each logoff.

Thank you for your help.
May 12, 2007 at 7:03 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.