Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Strange behavior on Power shell Scripting

$
0
0

Hello,

             I tried couple of Lync Synthetic transaction test (PS commandlet) from remote machine thro PS Script

Syntax: Test-CsPresence -TargetFqdn atl-cs-001.litwareinc.com -SubscriberSipAddress "sip:pilar@litwareinc.com" -SubscriberCredential $cred1 -PublisherSipAddress "sip:kenmyer@litwareinc.com" -PublisherCredential $cred2

  • The below Powershell commandlet is not working in our usual PS format when placing the entire syntax in -Scriptblock{Syntax}

                                But when making something like below, its working and the installation getting started

               “ try{

                $cmd= Invoke – command -session $session –scriptblock {;}

                                Test-CsPresence -TargetFqdn atl-cs-001.litwareinc.com -SubscriberSipAddress "sip:pilar@litwareinc.com" -SubscriberCredential $cred1 -PublisherSipAddress "sip:kenmyer@litwareinc.com" -PublisherCredential $cred2

                   }”

                Wrtie-host $cmd

 

               I donno why this strange behaviour. Kindly Someone help on this.

Regards,

Julie


Viewing all articles
Browse latest Browse all 15028

Trending Articles



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