Quantcast
Channel: Manage Office 365 - Recent Threads
Viewing all articles
Browse latest Browse all 16961

Connect-MsolService Could not connect

$
0
0

I have just finished writing my automated licencing PowerShell script that will assigned licences to unlicensed users. The issue I have at this point is I was to make it a scheduled task. If I select run when use is logged in it will work fine, The window pops up and I can watch it do all it's jazz. However if I want it to run even when the user is not logged in I get the following error.

 

Connecting To Azure
Connect-MsolService : Could not connect to https://provisioningapi.microsoftonline.com/provisioningwebservice.svc. TCP error code 10060: A connection attempt failed because the connected party did not properly respond after a period of t
ime, or established connection failed because connected host has failed to respond 207.46.57.140:443.
At C:\Office365-Scripts\Assign365LicenceToUsers.ps1:15 char:20+ Connect-MsolService <<<<  -Credential $credential    + CategoryInfo          : OperationStopped: (:) [Connect-MsolService], End pointNotFoundException+FullyQualifiedErrorId :System.ServiceModel.EndpointNotFoundException,Mi crosoft.Online.Administration.Automation.ConnectMsolService

 

 

If anyone could help me that would be great.

 

Cheers, Jon


Viewing all articles
Browse latest Browse all 16961

Trending Articles