ĐÀ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

Tuesday, March 13, 2012

How to Create Sharepoint List And Add new – Edit – Delete Sharepoint Item list by Windows PowerShell ISE

Open Windows PowerShell ISE and paste this segment code to here then click Run Script $web = get-spweb http://quochung-axioo:90 $web.Lists.Add(“PowerShellCustomList”,”Create SP List by Power Shell”,$web.ListTemplates["Custom List"]) $list = $web.Lists["PowerShellCustomList"] $list.Fields.Add("LastName","Text","DO") $list.Fields.Add("FirstName","Text","QuocHung") $list.Fields.Add("Age","Number",25) Run script succeeded Open your...

How to run script sharepoint on powershell

Open Windows PowerShell ISE then paste segment code Get-SPSite to Command pane up  (View > Go to Command Pane)  as follows: You see error because local user PowerShell ISE profile doesn’t create Copy segment code and paste to Command pane up (View > Go to Command Pane) as follows: # Creates a local user PowerShell ISE profile if (!(test-path $profile )) {new-item -type file -path $profile -force} # opens it for edit psEdit $profile Completed...

How to install PowerShell Intergrated Scripting Environment (ISE)

Go to Start | Administrative Tools | Sever Manager | Right click to Feature | Add Features Check to Windows PowerShell Intergrated Scripting Environment (ISE) then click Next Click Install Wait Installation Progress Installation Succeeded Click Start | Enter ISE to search Box User interface (UI) as follows: ...