R
R
Rinsewind2019-02-12 12:30:48
PowerShell
Rinsewind, 2019-02-12 12:30:48

Why is there no access to the iso files of an image mounted via Mount-DiskImage from the local network?

Good afternoon!
There is a command like

powershell  -Command "Mount-DiskImage -Access ReadOnly -StorageType ISO '\\192.168.0.1\Public\RO\iso\0_200_47_0395.iso'"

Mounting image with network balls; however, when trying to run any application from the image, an error occurs:
Windows cannot access the specified device, path, or file. You may not have the correct permissions to access this object

There is no error when mounting with explorer. What can be wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
azarij, 2019-02-12
@azarij

and if you copy the isoshnik to the machine where the script is being executed?
if it works, then the user executing the script does not have enough rights to the share/folder on the share/iso.
what will test-path \\192.168.0.1\Public\RO\iso\0_200_47_0395.iso show?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question