Skip to content

fix: use the actual system drive for space measurements and cleanup #2

Description

@Diwak4r

Several operations measure or mutate drive C directly (Get-PSDrive C and vssadmin ... /for=C:), while other paths correctly use $env:SystemDrive. Windows can be installed on another drive, so totals and restore-point cleanup can target the wrong volume. Derive one system-drive name from $env:SystemDrive, use it for every measurement and command, and cover a non-C system drive in tests.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions