WSman Provider - Modify MaxShellRuntime

Hi,

For testing purpose, I tried to modify MaxShellRuntime from 2147483647 but it showed error message as below. So, It may be read-only value?

 

Set-Item : The WS-Management service cannot process the request. The configuration setting “MaxShellRunTime” is deprecated and cannot be
changed. Remove this setting and try again.
At line:1 char:1

  • Set-Item WSMan:\localhost\Shell\MaxShellRunTime -Value 60000
  • CategoryInfo : NotSpecified: (:slight_smile: [Set-Item], InvalidOperationException
  • FullyQualifiedErrorId : System.InvalidOperationException,Microsoft.PowerShell.Commands.SetItemCommand

I got the same error, but was able to set the property directly:

(Get-Item WSMan:\localhost\Shell\MaxShellRunTime).value = 60000

 

This setting is deprecated.