Author: jbmurphy
-
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.
-
Using PowerShell to query CRM 2011 SOAP endpoint – help!
I don’t know what I am doing wrong. All I am trying to do is to query CRM 2011 via PowerShell and SOAP. The following PowerShell script should return the Contact’s full name, but I get nothing. Any ideas?? Here is the PowerShell: And here is the response: I just don’t know what I am…
-
How to get the count of items returned in jQuery Autocomplete
In this post I used jQuery to autocomplete an input box with results from CRM 2011. I wanted to give the number of results returned for the particular autocomplete query. I chose to use the autocomplete open: parameter to get the number of results returned, and I put that result in a div with an…
-
PowerShell script to copy a SharePoint Document Library to a Local Path
I wanted to have a PowerShell script that downloaded A Document Library’s contents to a local folder. This is what I put together.
-
Update DynDNS from the command line
My router is not updating DynDNS correctly, so I wanted to use a simple cron job to do the same. Here is a simple BASH/Shell script to update DynDNS: IP=$(curl -s icanhazip.com) curl -v -k -u username:password “https://members.dyndns.org/nic/update?hostname=DNSHOSTNAME.dyndns.org&myip=$IP”
