Compact VHDX with Resize-UserProfileDisk

** Project has been moved to GitHub **Due to the retirement of TechNet, I have moved this project to Github: https://github.com/T13nn3s/Resize-UserProfileDiskCompacting User Profile Disk and other VHDX-filesThis Powershell Script is reclaiming white space from User Profile Disk w

 
 
 
 
 
4 Star
(4)
357 times
Add to favorites
3/28/2020
E-mail Twitter del.icio.us Digg Facebook
  • nothing happens when running the command
    1 Posts | Last post March 09, 2020
    • Also tried this command in a windows 2016 environment with upd files but nothing happens with the files when running.
      Tried all sorts for commands and running i elevated powershell.
      
  • Script issue
    1 Posts | Last post March 03, 2020
    • Hello Martien, same as Manny15.
      I tried running the Script but it does not do anything.
      Cant download v3.1, not published on zip
      
      I will continu to do mount-vhd, Defrag, Dismount-vhd, optimize-vhd with the hyperv role installed 
  • Script issue
    1 Posts | Last post February 04, 2020
    • Hello Martien,
      
      I tried running the Script but it does not do anything.  When I hit enter, it just goes to the next line.   I verified that that VHDX files are not locked.   Here' what I tried:
      
      PS C:\Scripts>.\Resize-UserProfileDisk.ps1 -path "E:\RDSProfiles\RDS-UserProfileDisks"
      
      When I hit enter, it just goes to the next line:
      
      PS C:\Scripts>
  • UserProfileDisk still mounted
    3 Posts | Last post January 15, 2020
    • When is use this script with the options -SingleVhdxFile and -Defrag and -sDelete
      then afterwards the UserProfileDisk is still mounted.
    • Hi Koopmans,
      Thanks for the responze! I already make an update on this script with an extra check if the UPD's are getting clean unmounted.
    • When i run the script with -SingleVhdxFile -ZeroFreeSpace -c
      then afterwards the UserProfileDisk is still mounted.
      
  • Script does not run on any verison of windows
    4 Posts | Last post January 10, 2020
    • Hi,
      
      Your script is exactly as I want. But it doesn't work at all. It does not start, does not give error. It just a nothing. I tested it on server 2012 r2, 2016 and 2019.
      
      Please fix it because we really want this.
    • Same here sadly...
    • Thank you for your reactions! I'm going to check the script further. Do you want to send the logging to my email address that is in the script?
    • Same here. Unfortunatley, there is not even any logs written
  • no action after running scripts
    2 Posts | Last post December 27, 2019
    • can't have this working on windows 2012R2
      here what i have : 
      PS E:\Scripts> .\Resize-UserProfileDisk.ps1 -path E:\UsersProfiles
      PS E:\Scripts>
      
      no log files created 
      
      does some role like HyperV services is needed ?
      
      Regards
    • I'm getting the same results as you.  Did you manage do find a fix?
  • No action after running script
    3 Posts | Last post December 05, 2019
    • When running your script on a Server 2016 server nothing is happening, not even a error. What can be wrong? Disk image is not mounted of locked.
      
      .\Resize-UserProfileDisk.ps1 -SingleVhdxFile "D:\UserProfileDisks\UVHD-S-1-5-21-4123964153-603526761-2487225319-1222.vhdx" -ZeroFreeSpace
    • Thank you for your response! I'm going to check the script further. Do you want to send the logging to my email address that is in the script?
    • Dear Martien, no log file is being created.