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

[BUG] Remove-ProfileData.ps1 does not calculate deleted sizes properly #7

Open
vadgonzalez opened this issue Aug 20, 2019 · 1 comment
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@vadgonzalez
Copy link

vadgonzalez commented Aug 20, 2019

Describe the bug
A clear and concise description of what the bug is.
Remove-ProfileData.ps1 does not calculate deleted sizes properly.

To Reproduce

Steps to reproduce the behavior:

case 1

1 drop 2 files (each one 70+ MB) into one of the folders listed in targets.xml for deletion

(by this time profile is cleaned up so nothing to delete from there except these files)

C:\Users\username\AppData\Local\Microsoft\Windows\WER
2 run script in whatif mode or -confirm:$false mode
.\Remove-ProfileData.ps1 -Targets .\targets.xml -verbose -confirm:$false
3. script reports deleted files size = 0.42 MiB

===

VERBOSE: Total file size deleted: 0.42 MiB.
VERBOSE: Script took 7945.0875 ms to complete.
Deleted: 0.42 MiB.

===

case 2 (file size is reported properly for 1 file in the folder)
1 drop a file into one of the folders listed in targets.xml for deletion
(by this tie profile is cleaned up so nothing to delete from there except this file)
C:\Users\username\AppData\Local\Microsoft\Windows\WER
2 run script in whatif mode or -confirm:$false mode
.\Remove-ProfileData.ps1 -Targets .\targets.xml -verbose -confirm:$false
3. script reports deleted file size correctly .

Expected behavior
Script report proper size for deleted files.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. Windows 10 1709, ]
  • No Fslogix agent installed, testing on persistent Citrix Xen Desktop
@aaronparker aaronparker self-assigned this Aug 22, 2019
@aaronparker aaronparker added the bug Something isn't working label Aug 22, 2019
@aaronparker aaronparker added the help wanted Extra attention is needed label Sep 1, 2019
@aaronparker
Copy link
Owner

Can't work out what's going on here. If I write the file list to the pipeline and calculate external to the script, I get the right value.

@aaronparker aaronparker changed the title [BUG] [BUG] Remove-ProfileData.ps1 does not calculate deleted sizes properly Aug 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants