- Working with Pipelines
- Running Programs
- Creating and Running Scripts
- Registry Modifications with PowerShell
- Understanding Quotes
Registry Modifications with PowerShell
It is very easy to modify the registry of a server by using Exchange Management Shell and the Set-ItemProperty cmdlet. Performing the registry change from within Exchange Management Shell means that you can incorporate the change into a .ps1 script, and you can also pipeline it to multiple servers as needed. You must have permission to make this change or your attempt will fail. The examples in the following table illustrate how to change the timeout values for the OWA cookies used by forms-based authentication on a Client Access Server.
Use the following cmdlets at your own risk.
Set-ItemProperty RegistryPath -Name TimeoutType -Value TimeInMinutes -Type RegistryValueType PS C:\Users\Administrator> Set-ItemProperty "HKLM:\SYSTEM\ CurrentControlSet\Services\ MSExchange OWA" -Name PrivateTimeout -Value 360 -Type Dword |
This example sets the Private Computer cookie timeout value to 360 minutes, or 6 hours, for the Outlook Web App client. |
Set-ItemProperty RegistryPath -Name TimeoutType -Value TimeInMinutes -Type RegistryValueType PS C:\Users\Administrator> Set-ItemProperty "HKLM:\SYSTEM\ CurrentControlSet\Services\ MSExchange OWA" -Name PublicTimeout -Value 30 -Type Dword |
This example sets the Public Computer cookie timeout value to 30 minutes for the Outlook Web App client. |