Over the years I have worked with some Virtual Environments for Various Purposes. The one thing that is a constant when creating a Virtual machine is to have the ISO in a Central Location where it can be accessed the host operating system.
So here I am with Hyper-V and I am unable to upload the ISO to the Software Repository created on the Host System. It seems the simplest way to copy the Software to Hyper-V is to allow the Administrative Shares.
Enable File and Printer Sharing
To Enable Administrative Shares you have to enable the Firewall rule for File and Printer Sharing. This can be done by opening Command Prompt, Pasting, and running the below command.
netsh advfirewall firewall set rule group="File and Printer Sharing" new enable=Yes
You will get a confirmation stating “Updated xx Rule(s).“
Administrative Shares
These are shares that are made for browsing by System Administrators. To access the Shares you would use the following Structure:
\\ – Tells the system you are Browsing a File Path
HostName\IP – Which System you are Browsing
Drive Letter – Which Drives on that system you are browsing
$ – This indicates it is a Admin or Hidden Share
Example: \\LocalHost\C$
These Share does have Security on them and does have to browsed by a User\Admin that has access to them. If your are browsing from a Different User than the one that has access you can use the following command to Authenticate:
net use \\Computer-identity\C$ /user:Domain\User Password
Remember to remove the connection details once you are done Copying.
net use \\Computer-identity\C$ /Delete
Enable File and Printer Sharing
As these copies to the Central Location on the Data-Stores are not a permanent thing it is advisable to turn off the Administrative Shares. This can be done by Opening Command Prompt, Pasting, and running the below command.
netsh advfirewall firewall set rule group="File and Printer Sharing" new enable=No
As you can see the command is the same with the only difference being Enabled=No.