Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Invoke-command very slow

$
0
0

Hello,

I have a PS script with invoke-command.

I must use credssp, because I check from remote server an network share, if there is available.

This is my command:

			Invoke-Command 	-ComputerName 			$RemoteServer `
							-ScriptBlock 			$Script_Modify `
							-ConfigurationName 		Microsoft.PowerShell32 `
							-authentication			credssp `
							-Credential 			$credentials `
							-ErrorAction 			SilentlyContinue `
							-ArgumentList 			$To, $smtpServer, $test1,$Servername_org

This command takes 60 secounds, include network share check - double hop.

When I use command, whitout credssp, I can not use the network share check, but the script run very fast, maybe 5 secounds.

How can I speed up the credssp option?


Thanks Horst MOSS 2007 Farm; MOSS 2010 Farm; TFS 2010; IIS 7.5



Viewing all articles
Browse latest Browse all 21975

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>