Forum Discussion

leonmoodley's avatar
leonmoodley
Copper Contributor
May 16, 2024
Solved

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...
  • leonmoodley's avatar
    leonmoodley
    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

Resources