Converting GPOs to Powershell Commands for Storage Sense

Regular Contributor

How to manage Storage sense settings using Group Policy on Windows 10 May 2019 Update | Windows Cent...

We have existing policies that we'd like to replicate as Powershell commands since we are migrating to Azure AD (not premium and don't have Intune) so we'll lose the ability of applying these policies.

 

Has anyone setup these with Powershell (I am such a newbie with PS):

 

1.  Enable Storage Sense

2.  Set each OneDrive sync retention to 14 days.

 

It's currently setup in a policy so any existing or new OneDrive library they sync automatically gets set to 14 days.


We use ConnectWise Automate so we should be able to push these out to PCs with a script, if I can figure out how the powershell command looks.

 

2 Replies

@Mike Crowley I seem to be missing the StorageSense folder from HKLM location for the dehydration settings we need.  I don't have it in the HKCU either.