Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VHDX not shrinking after deleting Teams folder #61

Open
Hoppers69 opened this issue Aug 22, 2024 · 2 comments
Open

VHDX not shrinking after deleting Teams folder #61

Hoppers69 opened this issue Aug 22, 2024 · 2 comments

Comments

@Hoppers69
Copy link

Hi,
Firstly big thank you for the script.

Generally the script is running fine and we script to run over 8000 profiles.

We recently had a review on our disk space capacity and have investigated to redirect the Team (new) using the redirection file.
During this process we discovered the old Team folder was still present and taking up on average 1GB per user.

We had a script to run through each vhdx, mount the vhdx, delete the folders:
AppData\Local\Microsoft\Teams
AppData\Roaming\Microsoft\Teams

We then run FSLShrinkDisk and gained back the majority of the space. One thing we did notice is that we had to run the FSLShrinkDisk script 2 or 3 times before the disk stopped shrinkin i.e. it might shrink .3gb then .7gb, then .1gb

We then decided to perform the same on \AppData\Local\Packages\MSTeams_8wekyb3d8bbwe

First we added \AppData\Local\Packages\MSTeams_8wekyb3d8bbwe to the redirection.xml.
With testing, all works fine, but with an acceptable delay on start up of Teams new.

Then we followed the same process as above to shrink the disk however no matter how many times i run the script the shrink does not work

Running on a 2022 Server.
Tried with Mapped drive and direct UNC path

Any idea why shrinking is not longer working ?

Thanks

Hoppers69

Exploer size on Disk
Result from script run
Shrink size from DiskMgmt
Treesize on mounted profile

As a side note i think having a option to delete folders maybe using the Redirection.xml would be a big help.

@PyroSoul630
Copy link

I used to have similar issues with this shrink tool and made some modifications. no issues in 100's of user profile shrinks. Maybe this will help you.

https://github.com/PyroSoul630/FslShrinkDisk-2024/tree/master

@Hoppers69
Copy link
Author

Thank you. Will give it a try

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants