Lync Connection Issue

Hi..

While excuting

$session = New-CsOnlineSession -Credential $cred

in powershell ISE it will give error like:

Get-CsWebTicket : Object reference not set to an instance of an object.

But am able to execute the same command in Windows Powershell.

Can someone explain me why it is not getting executed in
powershell ISE.

Thanks!

April 23rd, 2014 1:27pm

Have you tried 'import-module lync' before you run the command in ISE?
Free Windows Admin Tool Kit Click here and download it now
April 23rd, 2014 1:35pm

Actually i want to import LyncOnlineConnector so am using 'import-module lynconlineconnector'.
April 23rd, 2014 1:44pm

That's odd.  Have you tried starting it with PowerShell_ISE -noprofile to see if there's an issue with your profile?
Free Windows Admin Tool Kit Click here and download it now
April 23rd, 2014 1:51pm

I tried with this also but still m getting same error.

"Get-CsWebTicket : Object reference not set to an instance of an object."

1 day before same commands were working and i was able to execute Lync Online commands in Powershell ISE... but from yesterday i am getting above mentioned error.

April 24th, 2014 5:56am

Check the following link about how to connect Lync Online by using Windows PowerShell:

http://technet.microsoft.com/en-us/library/dn362795.aspx.

Try to create a credential object.

As the problem is related with Lync online, I would recommend you post the thread in the following forum:

http://community.office365.com/en-us/f/default.aspx.

You can get a better response there.

Free Windows Admin Tool Kit Click here and download it now
April 25th, 2014 2:49am

Verify that you access with administrator account, Try to use following command on lync powershell to can connect with Lynconline

$cred = Get-Credential $CSSession = New-CsOnlineSession -Credential $cred Import-PSSession $CSSession -AllowClobber

then run Get-Csweb Ticket

To connect with Lynconline using powershell, you can refer below link

http://blog.ciaops.com/2013/10/connecting-to-lync-online-via-powershell.html

Also you can refer below link

http://blogs.technet.com/b/nexthop/archive/2013/04/17/lync-online-powershell-and-hybrid-troubleshooting.aspx?hcs=c12dbb6c-ef89-4d01-b4b7-5f849790d65c

April 25th, 2014 3:56pm

I can guarantee that this wasnt the solution but the mindless admins of this forum decided to mark it as answer

Free Windows Admin Tool Kit Click here and download it now
September 9th, 2015 2:55pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics