https://<ADFS FQDN>/adfs/ls/IdpInitiatedSignon.aspx
where <ADFS FQDN> is the FQDN of your ADFS server or VIP's DNS entry.
https://<ADFS FQDN>/adfs/ls/IdpInitiatedSignon.aspx
var collection = context.CreateQuery("service")
.Join(context.CreateQuery("e2_dictionary"),x => x["serviceid"], y => (y["e2_serviceid"] as EntityReference).Id, (x, y) => y)
.Where(x => x["name"].Equals(serviceName));
Add-Type -AssemblyName System.EnterpriseServices
$Publisher = New-Object System.EnterpriseServices.Internal.Publish
$Publisher.GacInstall("C:\Users\Account\Desktop\mydll.dll)
gwmi win32_service | ? {$_.Name -match "MSCRM|W3SVC"} | %{Restart-Service -Name $_.Name}
Add-Type -AssemblyName System.EnterpriseServicesAdd-Type is a PowerShell 3.0 onwards cmdlet, you can use this instead:
$Publisher = New-Object System.EnterpriseServices.Internal.Publish
$Publisher.GacRemove("C:\Users\Account\Desktop\mydll.dll)
gwmi win32_service | ? {$_.Name -match "MSCRM|W3SVC"} | %{Restart-Service -Name $_.Name}
[System.Reflection.Assembly]::LoadWithPartialName("System.EnterpriseServices")
msbuild solution.sln /p:Configuration=RELEASE /t:Clean;Build /p:referencepath="C:\ReferencePath\Sharepoint;C:\ReferencePath\Log4Net"Incidentally, if you want to run msbuild from PowerShell, the quotes need escaping:
msbuild solution.sln /p:Configuration=RELEASE /t:"Clean;Build" /p:referencepath=`"C:\ReferencePath\Sharepoint;C:\ReferencePath\Log4Net`"
msbuild solution.sln /p:Configuration=RELEASE /t:Clean;Build
msbuild .\solution.sln /p:Configuration=RELEASE /t:"Clean;Build"
/// <summary> /// Creates Global OptionSet against Solution. /// </summary> /// <param name="service"/>Crm Service</param> /// <param name="filePath"/>Path to a file that contains the optionset labels, one per line</param> /// <param name="optionSetName"/>Unique Name of OptionSet</param> /// <param name="displayName"/>Display Name of OptionSet</param> /// <param name="solution"/>Unique Name of Solution OptionSet will be created against</param> /// <param name="initialValue"/>Solution's OptionSet number prefix</param> private void CreateOptionSet(IOrganizationService service, string filePath, string optionSetName, string displayName, string solution, int initialValue) { try { int languageCode = 1033; OptionMetadataCollection options = new OptionMetadataCollection(); using (StreamReader reader = new StreamReader(filePath)) { while (!reader.EndOfStream) { options.Add(new OptionMetadata(new Label(reader.ReadLine(), languageCode), initialValue)); initialValue++; } } OptionSetMetadata optionSet = new OptionSetMetadata(); optionSet.Name = optionSetName; optionSet.DisplayName = new Label(displayName, 1033); optionSet.IsGlobal = true; optionSet.OptionSetType = OptionSetType.Picklist; CreateOptionSetRequest request = new CreateOptionSetRequest(); request.OptionSet = optionSet; request.SolutionUniqueName = solution; service.Execute(request); foreach (var item in options) { InsertOptionValueRequest insertRequest = new InsertOptionValueRequest(); insertRequest.OptionSetName = optionSetName; insertRequest.Label = item.Label; insertRequest.Value = item.Value; service.Execute(insertRequest); Console.WriteLine("Added OptionSet Item {0} with Value {1}", item.Label, item.Value); } } catch (Exception ex) { Console.WriteLine("An error occurred creating OptionSet {0}. Exception: {1}", optionSetName, ex); } }