Question

I'm trying to run a batch script for our WinPE disk, and I want ImageX to back up to a user defined portable hard drive. However, ImageX will not save to a folder or location if it doesn't exist. So I'm running a check inside the batch file to see if the directory exist. If it doesn't, then it creates the directory. My problem is once the directory is created, and ImageX tries to write to it, it errors out and says "Access is denied."

Is there a way for me to create a directory that lets anyone read or write to it in Windows Command Prompt? The cmd prompt is already running as an Administrator within Windows PE.

Was it helpful?

Solution

After you create the directory you can try using the icalcs command to change the permissions.

You can give Full access a user by running this command:

icacls <Directory> /grant <User>:F
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top