The chkdsk /f command "Fixes errors on the disk. The disk must be locked. If chkdsk cannot lock the drive, a message appears that asks you if you want to check the drive the next time you restart the computer." I am well familiar with this offer of a fix on next restart, and it has been very useful when the endpoint happens to be a server that can't be restarted at that very moment. I follow up the command with scheduling a restart after hours, and I am pretty much done as chkdsk takes care of the rest.
I would like to use the Repair-Volume -SpotFix cmdlet and switch to repair a volume that is showing as "Spot Fix Needed", but I am concerned about the "Takes the volume briefly offline" statement. The volume in question has a database on it which means it would not be a good idea to take the volume offline. Yet, I cannot find any information whatsoever to indicate if logic is built into Repair-Volume, as it is with chkdsk, to let me know if the volume cannot be locked and therefore will be "spot fixed" on next restart. I would like to know if this will happen or if the cmdlet will just force the volume offline, creating a potentially big problem for me.
Thanks!