Ask the Community
Groups
Hyper-V backup fails with error 'Hyper-V PowerShell Module is not installed' - Connect IT Community | Kaseya
<main> <article class="userContent"> <h2 data-id="summary"><strong>SUMMARY</strong></h2> <p>How to fix a Hyper-V backup that fails with the error: Hyper-V PowerShell Module is not installed.</p> <h2 data-id="issue"><strong>ISSUE</strong></h2> <p></p> <p>Hyper-V backup fails because Powershell is not properly installed on a Hyper-V 2008 R2 server. </p> <ul></ul><h2 data-id="resolution"><strong>RESOLUTION</strong></h2> <p></p> <p>Configure Windows PowerShell on Hyper-V 2008 R2 server. (For Windows 2008 R2, this procedure requires that the Hyper-V role is enabled.) After completing this procedure, the system will be ready for Hyper-V scripting.</p> <p> </p> <ol><li>Install Windows PowerShell on the Hyper-V Windows 2008 R2 server. You can do this from the Server Manager or by using the ServerManagerCmd.exe command-line tool:<br><br><b>ServerManagerCmd.exe –install PowerShell</b><br> </li> <li>Configure Windows PowerShell to allow the use of scripts. This is disabled by default. To configure this, issue this command from PowerShell:<br><br><b>Set-ExecutionPolicy RemoteSigned</b> </li> </ol> <h3 data-id="third-party-sources">Third-Party Sources</h3> <p>Additional documentation is available on CodePlex at <a rel="nofollow" href="/home/leaving?allowTrusted=1&target=http%3A%2F%2Fpshyperv.codeplex.com%2F">http://pshyperv.codeplex.com/</a></p> <p> </p> <ul><li>Download and install the Windows PowerShell Hyper-V module from <a rel="nofollow" href="/home/leaving?allowTrusted=1&target=http%3A%2F%2Fpshyperv.codeplex.com%2Freleases">http://pshyperv.codeplex.com/releases</a>. You need this module to access all the cmdlets designed specifically for Windows PowerShell on Hyper-V 2008 R2.<br><br> From the CodePlex PowerShell Management Library for Hyper-V page, download the latest stable, non-development release. Make sure the “block” attribute is removed from the zipped files before you install them. This will execute setup scripts without needing digital signatures.<br><br> If you’re doing the install on Server Core or doing a manual install, unblock and unzip the module file into some temp directory or on another computer before copying the setup files to the Hyper-V server.</li> <li>Issue this command to install the module you downloaded:<br><br><b>copy *.* %ProgramFiles%\modules\HyperV</b><br> </li> <li>From an elevated Windows PowerShell command prompt (run as administrator) on the Hyper-V server, add the Import-Module to the Windows PowerShell profile file using this command:<br><br><b>Set-ExecutionPolicy RemoteSigned</b><br><br> If you get an error message, verify that you didn’t miss Step 1, installing Windows PowerShell.</li> <li>Import the module using this command:<br><br><b>Import-Module %ProgramFiles%\modules\hyperV</b><br><br> This will let you use the cmdlets without having to configure the server each time.</li> <li>Verify you’ve successfully installed the cmdlets and that they are functioning properly by issuing the Get-Command cmdlet to see a list of the commands available to you:<br><br><b>Get-Command –Module Hyperv</b><br><br> As with other modules, each cmdlet comes with helpful information about its functions and examples on how to use it:<br><br><b>Get-Help New-VM –Detailed</b><br><br><b>Get-Help New-VM –Examples</b> </li> </ul><h2 data-id="cause"><strong>CAUSE</strong></h2> <p>The backup fails due to a missing PowerShell Management Library for Hyper-V from <a href="/home/leaving?allowTrusted=1&target=http%3A%2F%2Fpshyperv.codeplex.com%2Freleases">http://pshyperv.codeplex.com/releases</a>.</p> <h2 data-id="notes"><strong>NOTES</strong></h2> <p>For more detailed information on backup failures and performance issues see <a rel="nofollow" href="/home/leaving?allowTrusted=1&target=https%3A%2F%2Funitrends-support.zendesk.com%2Fhc%2Fen-us%2Farticles%2F360013174757">Unitrends KB 5062 - Backup Failures and Performance Issues</a></p> </article> </main>