博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
PowerShell Commands for SharePoint 2007 PowerShell Commands for SharePoint 2007
阅读量:5077 次
发布时间:2019-06-12

本文共 2995 字,大约阅读时间需要 9 分钟。

来源:http://sharepointsolutions.com/SharePoint-Add-ons/Products/Pages/Asset.aspx?AI=22

 

PowerShell Commands for SharePoint 2007

 

SharePoint Solutions' PowerShell Commands for SharePoint 2007

Copyright 2007,2008,2009 SharePoint Solutions. All rights reserved.

The SharePoint Solutions' PowerShell Commands for SharePoint 2007 provide admin utilities for SharePoint.

* DISCLAIMER: These utilities are Beta quality and should be evaluated in a test environment

Please follow the steps below. The entire process from installing PowerShell to getting a SharePoint 2007 FBA site setup should take less than 10 minutes.

*** Installation

1. Download the PowerShell 1.0 RC2 setup package from Microsoft at http://support.microsoft.com/kb/925228

2. Run the downloaded PowerShell installer

3. Run the SharePoint Solutions' PowerShell commands installer SPSolutionsPSCommands.msi

4. Open a new PowerShell command prompt

5. Allow scripts to run by issuing the command

 

Set-ExecutionPolicy Unrestricted

6. Register the SPSolutions snapin by issuing the command

add-pssnapin SPSolutionsSharePointCommands

*** Optional Installation

A few of the commands use PowerShell Community Extensions to send e-mail etc.

1. Download http://www.codeplex.com/PowerShellCX

2. Run the downloaded PowerShell Community Extensions installer

*** Using the menu-driven FBA Setup wizard

1. Run the FBA Setup wizard by issuing the command:

& "$env:spcshome\scripts\add-sqlfbawss.ps1"

2. To run the complete FBAWizard from start to finish, press w from the main menu

3. Each of the individual steps may also be run independently by selecting the appropriate letter

*** What the FBA Setup wizard does

1. Creates a ASP.NET SQL Server membership database (aspnetdb)

2. Adds an initial user to the SQL Server auth store

3. Creates a new SharePoint Web Application

4. Configures SharePoint web application with SQL membership provider and role manager

5. Adds a site collection to the web application configured with FBA authentication

Just press '?' at the main menu to get descriptions for each step

When all steps are completed, you should be able to login to your site collection as an FBA user.

Contact: http://software.sharepointsolutions.com/Pages/ContactUs.aspx

Support: http://software.sharepointsolutions.com/support

 

*** Bulk importing users to FBA

SharePoint Solutions' PowerShell commands includes utilities to bulk import users into FBA. The Copy-CsvToAspnetdb.ps1 script wraps the user import functions into an easy to use command.

Example: Importing users from Active Directory to FBA (note: The csvde utility comes with Windows Server, and exports AD users to an CSV:

1. csvde -f adusers.csv -r "(&(objectClass=User))" -l "sAMAccountName,sn,userPrincipleName,givenName,userPrincipalName"

2. C:\Program Files\SharePoint Solutions\SPSolutions PowerShell Commands\Scripts\copy-csvtoaspnetdb -csv .\adusers.csv -dbserver DEVHOST -dbname aspnetdb06 > log.txt 2>&1 

转载于:https://www.cnblogs.com/dadongzuo/archive/2013/03/27/2985156.html

你可能感兴趣的文章
Ajax之404,200等查询
查看>>
Aizu - 1378 Secret of Chocolate Poles (DP)
查看>>
csv HTTP简单表服务器
查看>>
OO设计的接口分隔原则
查看>>
数据库连接字符串大全 (转载)
查看>>
java类加载和对象初始化
查看>>
对于负载均衡的理解
查看>>
django简介
查看>>
window.event在IE和Firefox的异同
查看>>
常见的js算法面试题收集,es6实现
查看>>
IO流写出到本地 D盘demoIO.txt 文本中
查看>>
Windows10 下Apache服务器搭建
查看>>
HDU 5458 Stability
查看>>
左手坐标系和右手坐标系
查看>>
solr后台操作Documents之增删改查
查看>>
http://yusi123.com/
查看>>
文件文本的操作
查看>>
Ubuntu linux下gcc版本切换
查看>>
记一次Web服务的性能调优
查看>>
jQuery.form.js使用
查看>>