{"id":7242,"date":"2023-08-23T06:01:01","date_gmt":"2023-08-23T06:01:01","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=7242"},"modified":"2023-08-23T06:01:03","modified_gmt":"2023-08-23T06:01:03","slug":"intune-proactive-device-remmediations-ost-size-50gb","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/intune-proactive-device-remmediations-ost-size-50gb","title":{"rendered":"Intune Proactive Device Remmediations OST Size 50GB"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code class=\"\">#Detect\ntry\n{\nif ((Get-ItemPropertyValue -LiteralPath 'HKCU:\\Software\\Microsoft\\Office\\16.0\\Outlook\\PST' -Name 'MaxLargeFileSize' -ea SilentlyContinue) -eq 4294967295)\n{\nWrite-host \"OST size correct\"\nExit 0\n}\n}\ncatch{\n$errMsg = $_.Exception.Message\nWrite-host $errMsg\nExit 1\n}<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">#Remmediation\ntry\r\n{\r\n    New-ItemProperty -LiteralPath 'HKCU:\\Software\\Microsoft\\Office\\16.0\\Outlook\\PST' -Name 'MaxLargeFileSize' -Value 4294967295 -PropertyType DWord -ea SilentlyContinue -Force;\r\n    exit 0\r\n}\r\ncatch{\r\n    $errMsg = $_.Exception.Message\r\n    Write-host $errMsg\r\n    exit 1\r\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7242","post","type-post","status-publish","format-standard","hentry","category-research"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/7242","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=7242"}],"version-history":[{"count":1,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/7242\/revisions"}],"predecessor-version":[{"id":7243,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/7242\/revisions\/7243"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=7242"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=7242"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=7242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}