Link to home
Start Free TrialLog in
Avatar of techdrive
techdriveFlag for United States of America

asked on

changing a users pst /ost file size remotely powershell

Does anyone have a powershell script that will remotely change a users .ost file size in the registry remotely


HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\15.0\Outlook\PST

I want to change these two values MaxLargeFfileSize and WarnLargeFileSize to a certain value

I found this below but not sure how to setup this to work with the command below.


/$reg = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey('LocalMachine', $computername )
        $regKey= $reg.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run",$true)
        $regKey.SetValue("New_Valuename_String","New_Valuedata",[Microsoft.Win32.RegistryValueKind]::String)
ASKER CERTIFIED SOLUTION
Avatar of FOX
FOX
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of techdrive

ASKER

Thank you foxluv that did the trick.