Windows 7 service pack 1
Long story short, I need to use Windows Powershell for a possible fix for a corrupted flash drive. I need to run the "Repair-Volume" command in powershell because I'm getting a checkdisk error "cannot open volume for direct access" when using checkdisk to scan and repair the flash drive. So.. checkdisk is no help. I've have also tried to run the checkdisk scan and repair command from the command prompt started as administrator. No bueno. I discovered I could use powershell to possibly scan and repair the flash drive but when using the Repair-Volume command I get a message saying "repair-volume command not recognized". Well, that led me to find out if the repair-volume module is even installed so then I ran a command to list my installed modules and then I get a message saying that scripts are restricted. So now I need to set my restrictions in powershell to run anything at all.
Does anyone know powershell scripting? I am a noob so I would need some exact commands that I can copy and paste into powershell.
This is what I need to accomplish:
Long story short, I need to use Windows Powershell for a possible fix for a corrupted flash drive. I need to run the "Repair-Volume" command in powershell because I'm getting a checkdisk error "cannot open volume for direct access" when using checkdisk to scan and repair the flash drive. So.. checkdisk is no help. I've have also tried to run the checkdisk scan and repair command from the command prompt started as administrator. No bueno. I discovered I could use powershell to possibly scan and repair the flash drive but when using the Repair-Volume command I get a message saying "repair-volume command not recognized". Well, that led me to find out if the repair-volume module is even installed so then I ran a command to list my installed modules and then I get a message saying that scripts are restricted. So now I need to set my restrictions in powershell to run anything at all.
Does anyone know powershell scripting? I am a noob so I would need some exact commands that I can copy and paste into powershell.
This is what I need to accomplish:
- Set powershell executions to unrestricted.
- Find out if I even have the repair-volume module installed on my PC and in the right location.
- Download and install the repair-volume module if necessary and correctly install it in the right location.
- Execute the repair-volume command in Powershell in an attempt to scan and fix the corrupted files on the flash drive.

Last edited: