< Back

Connect-CrmOnlineDiscovery

Sat Jan 18, 2020 3:58 pm

NAME Connect-CrmOnlineDiscovery



SYNOPSIS

Retrieves all CRM Online Organization you belong to, let you select which organization to login, then returns

connection information.





SYNTAX

Connect-CrmOnlineDiscovery [[-Credential] <PSCredential>] [-InteractiveMode <SwitchParameter>] [<CommonParameters>]





DESCRIPTION

The Connect-CrmOnlineDiscovery cmdlet lets you retrieves all CRM Online Organization you belong to, let you select

which organization to login, then returns connection information.



You can use Get-Credential to create Credential information, or you can simply invoke Connect-CrmOnlineDiscovery

which prompts you to enter username/password.





PARAMETERS

-Credential <PSCredential>

A PS-Credential. You can invoke Get-Credential.



Required? false

Position? 0

Default value

Accept pipeline input? false

Accept wildcard characters? false



-InteractiveMode [<SwitchParameter>]

Switch to launch a wpf dialog to discover and connect to CRM Online instances.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS









OUTPUTS









NOTES









-------------------------- Default --------------------------



PS C:\\> Connect-CrmOnlineDiscovery



This example prompts you to enter username/password, displays all CRM organization, and returns connection.







IsReady : True

IsBatchOperationsAvailable : True

OrganizationServiceProxy : Microsoft.Xrm.Tooling.Connector.CrmWebSvc+ManagedTokenOrganizationServiceProxy

LastCrmError :

LastCrmException :

CrmConnectOrgUriActual : https://contoso.api.crm.dynamics.com/XR ... zation.svc

ConnectedOrgFriendlyName : contoso

ConnectedOrgUniqueName : contoso

ConnectedOrgPublishedEndpoints : {[WebApplication, https://contoso.crm.dynamics.com/], [OrganizationService,

https://contoso.api.crm.dynamics.com/XR ... zation.svc],

[OrganizationDataService,

https://contoso.api.crm.dynamics.com/XR ... onData.svc]}

ConnectionLockObject : System.Object

ConnectedOrgVersion : 7.1.0.1086



-------------------------- Credential Provided --------------------------



PS C:\\>$cred = Get-Credential

PS C:\\>Connect-CrmOnlineDiscovery $cred



This example displays all CRM organization, and returns connection.







IsReady : True

IsBatchOperationsAvailable : True

OrganizationServiceProxy : Microsoft.Xrm.Tooling.Connector.CrmWebSvc+ManagedTokenOrganizationServiceProxy

LastCrmError :

LastCrmException :

CrmConnectOrgUriActual : https://contoso.api.crm.dynamics.com/XR ... zation.svc

ConnectedOrgFriendlyName : contoso

ConnectedOrgUniqueName : contoso

ConnectedOrgPublishedEndpoints : {[WebApplication, https://contoso.crm.dynamics.com/], [OrganizationService,

https://contoso.api.crm.dynamics.com/XR ... zation.svc],

[OrganizationDataService,

https://contoso.api.crm.dynamics.com/XR ... onData.svc]}

ConnectionLockObject : System.Object

ConnectedOrgVersion : 7.1.0.1086



-------------------------- Interactive --------------------------



PS C:\\>Connect-CrmOnlineDiscovery -InteractiveMode



IsReady : True

IsBatchOperationsAvailable : True

OrganizationServiceProxy : Microsoft.Xrm.Tooling.Connector.CrmWebSvc+ManagedTokenOrganizationServiceProxy

LastCrmError :

LastCrmException :

CrmConnectOrgUriActual : https://contoso.api.crm.dynamics.com/XR ... zation.svc

ConnectedOrgFriendlyName : contoso

ConnectedOrgUniqueName : contoso

ConnectedOrgPublishedEndpoints : {[WebApplication, https://contoso.crm.dynamics.com/], [OrganizationService,

https://contoso.api.crm.dynamics.com/XR ... zation.svc],

[OrganizationDataService,

https://contoso.api.crm.dynamics.com/XR ... onData.svc]}

ConnectionLockObject : System.Object

ConnectedOrgVersion : 7.1.0.1086







This example shows how to use -InteractiveMode switch. By specifying the switch, you can login via GUI tool.





RELATED LINKS