Author: jbmurphy
-
BASH, cURL script to retrieve Google Analytics data
Last week I wrote this PowerShell code to retrieve Google Analytics data. Below is similar code in BASH using the cURL command.
-
Use PowerShell to get Google Analytics data
I wanted to write a powershell script that will retrieve the number of visits for my site. I put the following script together. Note this uses Google’s ClientLogin for authentication, which is deprecated. I have not worked with OAuth 2 yet.
-
PowerShell script to create a SystemUser in Microsoft CRM 2011
I wanted to bulk create a bunch of users in CRM. PowerShell and the Microsoft CRM 2011 REST/OData endpoint make it easy. Here is a function to create a SystemUser via PowerShell
-
PowerShell script to create a contact in Microsoft CRM 2011 via REST/ODATA
Below is a PowerShell function to create a contact in CRM 2011. Hope it is helpful to some one.
-
PowerShell script to add an activity via OData/REST
I wanted to create some crm activities based on data in a spreadsheet. Looping thorough the csv file would be easy, the challenge came when I wanted to create new activities in Microsoft CRM 2011, specifically appointments. Below is a PowerShell function that I pieced together to create a new activity if you know GUIDs…
-
PowerShell ValidateScript for and array of GUIDs as an argument
Not sure if that title make sense, and I am not sure I understand this code, but it seems to work: I got the idea from here
-
5 PowerShell functions to create a SCCM “trickle install” – i.e. X at a time.
If you look at this post, I describe a my idea of a SCCM trickle install – that is X number of machines at a time. Rather that have the install hit the whole collection at once, I wanted to hit just 20 a night. That way if there is an error, we can put…
-
PowerShell script to create a SCCM Package,Program and Queries
I wanted to automate the process of creating a new package. The following code will look at an XML file for values (same xml file I am using here) and create a package based on the values. A lot of SCCM PowerShell was gathered from here. Here is the example of the source XML file:…
-
PowerShell function to search CRM 2011 for and Entity (via REST/oData)
I wrote about how to retrieve records from CRM 2011 via oData. I wanted to wrap that up in a function that I can use to do a quick search: And to use this function: JBMURPHY-CRM-SearchEntity -EntityType Account -SearchField Name -SearchString “Sard” -FieldsToReturn Name,AccountId
-
Using PowerShell to query CRM 2011 SOAP endpoint – Answer!
Big thanks to @JLattimer. He helped me figure our the error in my SOAP envelope. In my last post, I was trying to retrieve FullName from Crm 2011’s web services via PowerShell. Below is the code to do that.
