Category: PowerShell
-
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…
-
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.
-
Add an appointment/email/phone activity to CRM 2011 via PowerShell (REST/oDATA)
I am looking to move some older list data into CRM 2011, so I wanted a way to create some “activities” via powershell. Below is the code to do that. In the first part of the code, I create a PowerShell object and then I convert it to a JSON object via PowerShell 3’s new…
-
PowerShell script to search SharePoint Search WebService via SOAP
I wanted to copy all the files found in a SharePoint Search result for a scope that lived on a file share. So I wrote the following PowerShell code to query a SharePoint Search scope and find the url for each result.
-
PowerShell how to create an object (Note to Self)
Second example taken from here
