Archive for the ‘Powershell’ Category

Modifying web.config with Powershell

Introduction In this post we will see how we can Add / Delete a node to web.config with PowerShell in SharePoint 2010. Most of times we consider web.config as nothing but a common xml files. But, changes that are done to a node and who is the owner of a particular node in web.config will […]

April 27, 2012 · Adi · No Comments
Tags: , , ,  · Posted in: Powershell, Sharepoint 2010

Copy or Replace list items in PowerShell

Introduction Based on the request from one of the audience of adicodes, I am providing one post which copies items from one list to another. If the destination list already has the item of the source list, the following code will update the item. If the item does not exist it will create a new […]

April 24, 2012 · Adi · 22 Comments
Tags: , ,  · Posted in: Packaging and Deployment, Powershell, Sharepoint 2010

Powershell conditional and looping statements

Introduction The following examples will provide how to use the conditional statements(if, elseif, else, switch) and looping statements(for, while, do/while, foreach, foreach-object, where-object). Though these are very common techniques used in any programming language, the syntax is what matters here. Examples in this post gives understanding of the usage and syntax. Email this page

April 22, 2012 · Adi · No Comments
Tags: , , ,  · Posted in: Conditional Statements, Operators, Powershell, Sharepoint 2010

PowerShell in Sharepoint 2010 – Basics Part 3

Introduction We learned how to use variables, arrays and hashtables in Powershell basics part 1. We learned how to use arithmetic, assignment and comparison operators in Powershell basics part 2. Now we will check how we can use logical operators and redirection operators Email this page

April 20, 2012 · Adi · No Comments
Tags: , , , , ,  · Posted in: Operators, Packaging and Deployment, Powershell, Sharepoint 2010

PowerShell in Sharepoint 2010 – Basics Part 2

Introduction We learned how to use variable, arrays and hashtables in Powershell basics part 1. We will check how we can use arithmetic operators, assignment operators and comparision operators in powershell Email this page

April 16, 2012 · Adi · No Comments
Tags: , , , , , , , ,  · Posted in: Packaging and Deployment, Powershell, Sharepoint 2010

Update, Delete & Copy list items with powershell in sharepoint 2010

Introduction This post will cover the list utilities such as how to update, delete and copy list items with powershell. With the generic code, now the handling list should be easy in powershell. Email this page

April 13, 2012 · Adi · 11 Comments
Tags: , , , , , , , ,  · Posted in: CAML, Packaging and Deployment, Powershell, Sharepoint 2010

Add items to fields with powershell in sharepoint 2010

Introduction Moving further from “Creating lists”,  “Creating fields to List Part1” and “Creating fields to List Part2” with powershell; this post will cover how to implement SharePoint 2010 list utilities with powershell. We will learn how we can Add list items to various fields (columns) Email this page

April 12, 2012 · Adi · 4 Comments
Tags: , , , , , , , , ,  · Posted in: Packaging and Deployment, Powershell, Sharepoint 2010

PowerShell in Sharepoint 2010 – Basics Part 1

Introduction In PowerShell basic series part 1, we can learn how to work with variables, arrays and hashtables. The basic series is very important to understand the complex codes of powershell. This series will be worth reference guide as most of powershell developers are not aware of the syntax and usage. Email this page

April 12, 2012 · Adi · No Comments
Tags: , , , , ,  · Posted in: Packaging and Deployment, Powershell, Sharepoint 2010

Add Fields To List with PowerShell in SharePoint 2010 – Part2

Introduction This is continuation to my earlier post Adding Fields To SharePoint List. This post includes how to create lookup fields, checkbox field, person or group field and hyperlink field. With this coverage the most common and frequent tasks related to SharePoint 2010 list with powershell will be now easier. Email this page

March 29, 2012 · Adi · 4 Comments
Tags: , , ,  · Posted in: Packaging and Deployment, Powershell, Sharepoint 2010, Uncategorized

Add Fields To List with PowerShell in SharePoint 2010 – Part1

Introduction We will move further from creating custom List with powershell to adding various types of fields to sharepoint list. I hope covering most of the common fields should make our day brighter while working with powershell and we won’t be lost for small tasks Email this page

March 28, 2012 · Adi · 9 Comments
Tags: , , , , ,  · Posted in: Packaging and Deployment, Powershell, Sharepoint 2010, Sharepoint Deployment