Mount-DiskImage giving Access Denied when running through remote session
<p>I have two VM's(Windows server 2008 r2) with ip </p>

<blockquote>
  <p>172.17.178.10</p>
</blockquote>

<p>and </p>

<blockquote>
  <p>172.17.178.11</p>
</blockquote>

<p>.
I have created a folder named </p>

<blockquote>
  <p>"share"</p>
</blockquote>

<p>on vm with ip 172.17.178.10 that has an iso.
I logined into vm with ip 172.17.178.11 and run the following command </p>

<blockquote>
  <p>"Mount-DiskImage \\172.17.178.10\share\xyz.iso"</p>
</blockquote>

<p>.It mounted successfully i can see the Drive in my computer.
Now i logined into 172.17.178.10 and took a remote session using powershell command </p>

<blockquote>
  <p>Enter-PSSession -ComputerName 172.17.178.11 -Credential Administrator</p>
</blockquote>

<p>.
Now when i run the command </p>

<blockquote>
  <p>"Mount-DiskImage \\172.17.178.10\share\xyz.iso"</p>
</blockquote>

<p>.
I get the following error:</p>

<blockquote>
  <p>MOUNT-DISKIMAGE : Access is denied.</p>

<pre><code>+ CategoryInfo          : PermissionDenied: (MSFT_DiskImage:ROOT/Microsoft/.../MSFT_DiskImage) [Mount-DiskImage], 
</code></pre>
  
  <p>CimException
      + FullyQualifiedErrorId : HRESULT 0x80070005,Mount-DiskImage</p>
</blockquote>

<p>I have provided full permissions to the </p>

<blockquote>
  <p>share</p>
</blockquote>

<p>folder.</p>