Unable to Run Get-WindowsFeature

0

I have a Windows 2012 instance running in the Amazon cloud. It's just a test server for an asp.net project and only has the necessary features installed. The problem is the instances is out of disk space (30 GB). All that's installed is the default stuff and a few things for my asp application. I was looking through some websites like this one, Free Up Disk Space on Windows Server 2012, and have been trying to remove some unused features from the WinSXS foler (which is over 13.5 GB!). When I try to run Get-WindowsFeature in powershell, the command fails with an error:

get-windowsfeature : The request to list features available on the specified server failed. A DISM session could not be opened. An error occurred accessing the temporary folder C:\Windows\TEMP\F3023A61-3F1C-4C38-94F5-04C5CA1110CE. Ensure that the path to the temporary folder exists and that you have Read/Write permissions on the folder. Error: 0x80070070 At line:1 char:1 + get-windowsfeature + ~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (@{Vhd=; Credent...Name=localhost}:PSObject) [Get-WindowsFeature], Dep
loymentProviderException + FullyQualifiedErrorId : DISMAPI_Error__Failed_Opening_Dism_Session,Microsoft.Windows.ServerManager.Commands.GetW indowsFeatureCommand

The folder c:\windows\temp exists and the admin user has access to the folder... Is this error because I'm out of disk space? What else can I do to free up some space?

windows-server-2012
powershell
asked on Server Fault Mar 12, 2015 by mack

2 Answers

1

Find something else to delete first, like IIS logs.

answered on Server Fault Mar 12, 2015 by longneck
0

What else can I do to free up some space?

Try Disk Cleanup first. Here is how to run it if you don't have Desktop Expirience installed, or don't want to install it.

To run Disk cleanup:

  1. Click Start

  2. Click All ProgramsAccessoriesSystem ToolsDisk Cleanup

  3. Select Drive C from the drop-down menu

  4. Click OK

answered on Server Fault Mar 16, 2015 by beatcracker • edited Apr 13, 2017 by Community

User contributions licensed under CC BY-SA 3.0