AnsweredAssumed Answered

Responding to NWAdmin in PowerShell?

Question asked by maxmanzero on Aug 4, 2015
Latest reply on Aug 6, 2015 by maxmanzero

I need to send a PowerShell script to my hosting enclave to run on my production server that will run NWAdmin.exe and use the RemoveAction

operation to get rid of some dead custom activties that didn't get uninstalled properly.


However, when I invoke NWAdmin.exe through PowerShell I can't figure out if it is possible to bypass the yes/no prompt NWAdmin

surfaces when the command is executed.


870 - Get Login Name (Category: Custom)

Activity: {Redacted}, {Redacted}, Version=, Culture=neutral, PublicKeyToken={Redacted}

Adapter:  {Redacted}, {Redacted}, Version=, Culture=neutral, PublicKeyToken= {Redacted}



Are you sure you want to remove this action? (yes / no)


Is there some way to pipe yes back to the command automatically or do I need to write a BAT file instead?