Forum Discussion

luvsql's avatar
luvsql
Steel Contributor
Sep 24, 2021

Converting GPOs to Powershell Commands for Storage Sense

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

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

Resources