ipsec600
asked on
Remote client exceeded allowed maximum
I am running the following PowerShell command to merge outlook safe sender list for all users.
Get-Mailbox -ResultSize Unlimited | Set-MailboxJunkEmailConfig uration -TrustedSendersAndDomains @{Add='corp@doamin1.com',' admin@doma in2.com'}
But receiving the following error:
Sending data to a remote command failed with the following error message: The total data received from the remote client exceeded allowed maximum. Allowed maximum is 524288000. For more information, see the about_Remote_Troubleshooti ng He
lp topic.
+ CategoryInfo : OperationStopped: (System.Manageme...pressio nSyncJob:P SInvokeExp ressionSyn cJob) [], PSRe
motingTransportException
+ FullyQualifiedErrorId : JobFailure
Can you please advise.
Reference Link:
http://beccabits.com/2011/10/07/how-to-bulk-modify-safe-senders-list-in-outlook-with-exchange-management-shell/
On this note, if I run the above for few users then it is working perfectly. And while searching with the above error in the following link someone suggested the following:
"Powershell has a hard limit of 524288000.
The value for the powershell limit is in web.config file.
To increase the limit, increase the value and then recycle the app pool or iisreset"
http://social.technet.microsoft.com/Forums/en-US/8012950f-45dd-41f2-8a11-5c55b3ed8d36/allowed-maximum-is-524288000-when-running-a-powershell-script?forum=exchange2010
Not sure where I will be able to edit the web.conf file, if so, then what would be the impact and how to edit that file,
Need advise is there any way to execute the command without error.
Get-Mailbox -ResultSize Unlimited | Set-MailboxJunkEmailConfig uration -TrustedSendersAndDomains @{Add='corp@doamin1.com',' admin@doma in2.com'}
Thanks,
Get-Mailbox -ResultSize Unlimited | Set-MailboxJunkEmailConfig
But receiving the following error:
Sending data to a remote command failed with the following error message: The total data received from the remote client exceeded allowed maximum. Allowed maximum is 524288000. For more information, see the about_Remote_Troubleshooti
lp topic.
+ CategoryInfo : OperationStopped: (System.Manageme...pressio
motingTransportException
+ FullyQualifiedErrorId : JobFailure
Can you please advise.
Reference Link:
http://beccabits.com/2011/10/07/how-to-bulk-modify-safe-senders-list-in-outlook-with-exchange-management-shell/
On this note, if I run the above for few users then it is working perfectly. And while searching with the above error in the following link someone suggested the following:
"Powershell has a hard limit of 524288000.
The value for the powershell limit is in web.config file.
To increase the limit, increase the value and then recycle the app pool or iisreset"
http://social.technet.microsoft.com/Forums/en-US/8012950f-45dd-41f2-8a11-5c55b3ed8d36/allowed-maximum-is-524288000-when-running-a-powershell-script?forum=exchange2010
Not sure where I will be able to edit the web.conf file, if so, then what would be the impact and how to edit that file,
Need advise is there any way to execute the command without error.
Get-Mailbox -ResultSize Unlimited | Set-MailboxJunkEmailConfig
Thanks,
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Create BigData profile on remote machine aswell
you should then see
S C:\Windows\system32> New-PSSession -Computername PEP-HV -ConfigurationName BigData
Id Name ComputerName State ConfigurationName Availability
-- ---- ------------ ----- ----------------- ------------
4 Session4 PEP-HV Opened BigData Available
use enter-pssession id to enter the session
you should then see
S C:\Windows\system32> New-PSSession -Computername PEP-HV -ConfigurationName BigData
Id Name ComputerName State ConfigurationName Availability
-- ---- ------------ ----- ----------------- ------------
4 Session4 PEP-HV Opened BigData Available
use enter-pssession id to enter the session
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks Simon, the I tried with that but still notice that emails those are external addresses are still going to outlook junk email folder, it surely works for internal domain address, but for some external addresses it is going to outlook junk email folder for that intend to merge outlook safe sender list to attend the issue.
Thanks Scobber, in the last command the error that I was receiving, after running winrm quickconfig command followed the parameter then I saw the mentioned output you provided. But I tried to get the session and while running the PS command still receiving the same error, the PSsession big data most-likely updating for Power Shell not Exchange Management Shell and hence I was encountering the same error.
To attend the issue I run the same Power Shell command across each exchange database and it resolved the issue. and also tried to run for distribution group limiting members it also works.
Thank you once again Simon and Scobber for providing me insight to resolve the issue.
Thanks Scobber, in the last command the error that I was receiving, after running winrm quickconfig command followed the parameter then I saw the mentioned output you provided. But I tried to get the session and while running the PS command still receiving the same error, the PSsession big data most-likely updating for Power Shell not Exchange Management Shell and hence I was encountering the same error.
To attend the issue I run the same Power Shell command across each exchange database and it resolved the issue. and also tried to run for distribution group limiting members it also works.
Thank you once again Simon and Scobber for providing me insight to resolve the issue.
ASKER
can you please advise.
[PS] C:\>Register-PSSessionConf
Confirm
Are you sure you want to perform this action?
Performing operation "Register-PSSessionConfigu
remotely run Windows PowerShell commands on this computer".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): y
WSManConfig: Microsoft.WSMan.Management
Name Type Keys
---- ---- ----
BigData Container {Name=BigData}
Confirm
Are you sure you want to perform this action?
Performing operation ""Restart-Service"" on Target "Name: WinRM".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): y
[PS] C:\>Set-PSSessionConfigura
1024
Confirm
Are you sure you want to perform this action?
Performing operation "Set-PSSessionConfiguratio
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): y
WSManConfig: Microsoft.WSMan.Management
ParamName ParamValue
--------- ----------
psmaximumreceived... 1024
psmaximumreceived... 1024
Confirm
Are you sure you want to perform this action?
Performing operation ""Restart-Service"" on Target "Name: WinRM".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): y
[PS] C:\>New-PSSession -ComputerName blexch01 -ConfigurationName BigData
[blexch01] Connecting to remote server failed with the following error message : The client cannot connect to the destination specified in the request. Verify that the service on the destination is running and is accepting requests. Consult the logs and documentation for the WS-Management service running on the destination, most commonly IIS or WinRM.
If the destination is the WinRM service, run the following command on the destination to analyze and configure the Win
RM service: "winrm quickconfig". For more information, see the about_Remote_Troubleshooti
+ CategoryInfo : OpenError: (System.Manageme....Remote
eption
+ FullyQualifiedErrorId : PSSessionOpenFailed
Can you please advise.