I'm working on a powershell script that use System.IO.FileSystemWatcher class.
I run the script in background (1 powershell process is create with the -noexit option)
BUT when the workstation initiate a reboot/shutdown, the powershell process (like a cmd process) don't close (exit) automatically !!! :((( until the user choose to terminate the process !
(i m using windows XP)
is there a solution to kill my powershell process ?? or something else
Tkx in advance.