Forum Discussion
leonmoodley
May 16, 2024Copper Contributor
Unable to suppress confirmation popups in Powershell for Format-volume and Remove-Partition
Hi I use the script below to format a secondary drive, I am using the script below ( it basically checks for the required disk size and attempts to format it. If the disk exists already the parti...
- May 20, 2024
For some reason if I run
Stop-Service -Name ShellHWDetection
This seems to have fixed the issue, I start the service again when the rest of the code finishes. Thanks for the assistance. Much appreciated
May 20, 2024
I didn't get that message during testing in my VM... Weird... Could you try disabling automount temporarily using this article for testing? https://www.tenforums.com/tutorials/117336-enable-disable-automount-new-disks-drives-windows.html
leonmoodley
May 20, 2024Copper Contributor
For some reason if I run
Stop-Service -Name ShellHWDetection
This seems to have fixed the issue, I start the service again when the rest of the code finishes. Thanks for the assistance. Much appreciated
- May 20, 2024Ah 👍 nice find!