Share via


Does closing the command window kill a process?

Question

Monday, May 2, 2011 2:22 PM

Sorry, very rookie question. 

I have a process (SharePoint system restore) that is hung up.  Does closing the command winow stop the process?  Is there some version of Ctrl+C (old DOS days) that would cancel the process?  Very new to PowerShell. 

Thanks

Willner001

All replies (3)

Monday, May 2, 2011 2:40 PM ✅Answered

ctrl+c should do it... and this might be more of a sharepoint question... the command might have only started the process and then waited for the server to finish the process... so killing it might only kill the waiting for complete but sharepoint might still be trying to do the restore or, the command could be doing the restore directly, in which case killing it would stop it.... I don’t know enough are sharepoint to say either way..


Monday, May 2, 2011 2:52 PM

Now that you say it, I'm sure you are right. 

Thanks for the quick reply.

"the command might have only started the process and then waited for the server to finish the process"

Willner001


Monday, May 2, 2011 3:00 PM

I think, if you used stsadm, it does the actually work, but again, you might want to ask the sharepoint group... killing the process is easy enough tho :)

glad to help.