Solved

changing a users pst /ost file size remotely powershell

Posted on 2016-08-09
2
30 Views
Last Modified: 2016-08-09
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)
0
Comment
Question by:techdrive
2 Comments
 
LVL 16

Accepted Solution

by:
FOX earned 500 total points
ID: 41748861
Try launching regedit with you domain admin credentials.
start>run>regedit, shift+right-click (run as a different user)
Once regedit launches File>Connect Network Registry, put in the computername in question and navigate to the registry hive you want to edit
0
 

Author Comment

by:techdrive
ID: 41748907
Thank you foxluv that did the trick.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
In this video we show how to create a Distribution Group in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >>…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now