The Microsoft.Xrm.Data.Powershell module for PowerShell provides data operations such as CRUD. The module is available for download at: https://github.com/seanmcne/Microsoft.Xrm.Data.PowerShell/releases/ Download the ZIP file and unblock it by right clicking. If you do not unblock it you will get errors relating to could not load file or assembly with the Microsoft.Crm.Sdk.Proxy.dll. Next extract the zip. There is one folder: With multiple files: Copy the folder to the C:\Windows\System32\WindowsPowerShell\v1.0\Modules folder: Check the PowerShell version. This module … Continue reading Dynamics 365 PowerShell – Microsoft.Xrm.Data.Powershell
To use the cmdlets for Dynamics CRM On-Premise, do the following. Go to the server running the Full Server role for Dynamics CRM. Type in: Add-PSSnapin Microsoft.Crm.PowerShell You can now run CRM commands. Type in: Get-Help *Crm* CRM will return help information on its commands: You can then run individual commands, for example, it you want to see CRM settings, you can run a command to get a particular setting. … Continue reading Powershell Cmdlets for Dynamics CRM On-Premise
PowerShell is an interactive shell and a scripting language for Windows environments. It has several uses including for automation and configuration. It is also object oriented and based on the .NET Framework. To run commands, open the Windows PowerShell app: You can then run commands such as changing directory like in DOS. PowerShell also has the concept of “aliasing”, which is running a command by typing a different name. For example, there are several … Continue reading PowerShell Introduction
In the Dynamics CRM SDK, there is the capability to use PowerShell to connect to CRM. To do this, in the SDK\Bin folder, there is a file called RegisterXRMTooling.ps1: Open PowerShell as an Administrator and from the file directory, run .\RegisterXRMTooling.ps1 Once complete, you should see something like below: Next run: Add-PSSnapin Microsoft.Xrm.Tooling.Connector Type: Get-Help “CRM” to see it working:
Here we will go throgh the steps to upgrade your Node server. First, open PowerShell as Administrator. We will check the version of the server currently installed, with the command: node -v Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force Then run: npm install -g npm-windows-upgrade Next, run: npm-windows-upgrade Select a version: You will see: And once complete:
In .NET, you may need to run your console app in silent mode. To do this, create a new console app. Our app will open a webpage using IE: To run in silent mode, set the Output type in the properties of the code to Windows Application: Now, when you run the code, it will run silently. In this case, you will see a web page open.
In this post, we will create a console app that accepts arguments or switches. In Visual Studio, create a new console app: The args parameter gives us what the user has entered, e.g: sampleapp.exe -something /i dosomething Add some code to print the arguments the user has provided. We will print the first 2 arguments: Now, run the app and provide 2 arguments. We can see when we provide SampleArg1 … Continue reading Passing Arguments to a Console App using C#