Power Shell script beginner in SharePoint 2010
PowerShell in Sharepoint 2010 – Basics Part 1 5.00 / 5 5 1 / 5 2 / 5 3 / 5 4 / 5 5 / 5 2 votes, 5.00 avg. rating ( 97 % score) 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. Usage Variables Following is the simplest way of creating variables and assign value 1 2 $firstName = "Adi" $empId = 999 Other commands to create, retrieve and set variables New-Variable cmdlet is used to create variables with additional features like description and options like setting as readonly variable Following code creates new readonly variable ‘SiteName’ and assigns value to it. It also provides description what the variable is 1 New-Variable -Na...