ĐÀO TẠO DOANH NGHIỆP : SỞ KHOA HỌC CÔNG NGHỆ TỈNH ĐỒNG NAI

ENTERPRISE TRAINING: DONG NAI DEPARTMENT OF SCIENCE AND TECHNOLOGY.

123

Thursday, October 22, 2015

PowerShell copy list item to another list with same structure

Insert item from source list $web = Get-SPWeb http://yourURL $lista =$web.Lists["Source List Name"] $listb =$web.Lists["Target List Name"] $items = $lista.items foreach ($item in $items) { write-host -foregroundcolor yellow $item["Title"] $newitem= $listb.items.Add() $newitem["Title"] = $item["Title"] $newitem["MultiLine"] = $item["MultiLine"] $newitem["Number"] = $item["Number"] $newitem["HyperLink"] = $item["HyperLink"] $newitem["Choice"] = $item["Choice"] $newitem["Created"] = $item["Created"] $newitem["Author"] = $item["Author"] $newitem["Modified"]...

Thursday, October 1, 2015

Listing All SharePoint Server Features of Web Application dynamic by power shell

Listing All SharePoint Server Features of Web Application dynamic by power shell 1. Writing the function to export all features of web application with parameter function Get-SPFeatureActivated { [CmdletBinding()] param(     [parameter(Mandatory=$true)][string]$Url,#Input your URL of web application     [parameter(Mandatory=$true)][string]$Path,#Input your file name which you want to export like (c:\features.csv)    ...