cmd - powershell remove-item windows server 2012 not working -


i have win-server 2012 , c:\ disk full. ive got file "win2012r22.iso" 4gb old 1 2014 (not in use in of hyper-v`s) , , cannot delete using powershell administrator. there way/command remove file can free space?

    directory: c:\   mode                lastwritetime     length name ----                -------------     ------ ---- d----        10/27/2015   7:05            59 d----        10/27/2015   7:04            59free d----         5/11/2015   6:21            currports d----         12/9/2014   8:39            ibmmegaraid d----         12/9/2014   8:32            ibm_support d----         7/26/2012  12:21            perflogs d-r--        12/13/2014   1:14            program files d----        12/13/2014   1:14            program files (x86) d-r--         11/7/2012  10:51            users d----        10/28/2016   7:51            windows -a---        11/10/2012   2:15    5268344 59.exe -a---        10/27/2015   6:54   37533435 59free.exe -a---        10/27/2015   7:02   37533435 59free.zip -a---        10/27/2015   6:59   37533435 59free1.exe -a---         5/11/2015   6:25   31225832 59manager.exe -----         11/3/2016   4:50       3456 bootsqm.dat -a---         8/30/2015  11:04  666894336 centos7min.iso -a---         11/7/2012  10:55     254328 hvremote.wsf -a---         12/9/2014   8:31   86051707 ibmmegaraid.exe -a---         12/9/2014   8:38   85717226 ibmmegaraid.zip -a---          1/5/2013   8:42    9078784 linuxicv34.iso -a---         11/3/2016   6:02          0 recovery.txt -a---        11/10/2012  12:28    1622368 vt.exe -a---         8/30/2015  10:56    1856768 vt32.exe -a---         1/16/2014  11:41 pm 4268605440 win2012r22.iso   ps c:\> remove-item c:\win2012r22.iso remove-item : access denied @ line:1 char:1 + remove-item c:\win2012r22.iso + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     + categoryinfo          : permissiondenied: (c:\win2012r22.iso:string) [remove-item], unauthorizedaccessexception     + fullyqualifiederrorid : itemexistsunauthorizedaccesserror,microsoft.powershell.commands.removeitemcommand  remove-item : cannot find path 'c:\win2012r22.iso' because not exist. @ line:1 char:1 + remove-item c:\win2012r22.iso + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     + categoryinfo          : objectnotfound: (c:\win2012r22.iso:string) [remove-item], itemnotfoundexception     + fullyqualifiederrorid : pathnotfound,microsoft.powershell.commands.removeitemcommand  ps c:\> 

please verify following things:

  • double-check iso isn't attached vm.
  • make sure file isn't in use elsewhere. can use tools handle or process explorer check open handles on file.
  • can delete via gui?
  • can delete via cmd del command?

Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -