PowerShell NWAdmin.exe DetachDatabase

  • 7 January 2022
  • 0 replies



I am trying to detach the nintex content database in PowerShell using the statement:

 NWAdmin.exe -o DetachDatabase -serverName $dbServer -databaseName $targetNWContentDatabase


but keeps getting the following error:

Content database 'dbname***' is in use. Detaching it will cause workflow history to be lost and workflows in site collections associated with this database to fail.
Are you sure you want to detach this database? (yes / no)


Typing yes or y and enter does nothing it just stops here. Have to stop the script to get out of it.

Any help will be appreciated.




0 replies

Be the first to reply!