惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

MyScale Blog
MyScale Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
阮一峰的网络日志
阮一峰的网络日志
罗磊的独立博客
博客园 - 叶小钗
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
美团技术团队
酷 壳 – CoolShell
酷 壳 – CoolShell
雷峰网
雷峰网
宝玉的分享
宝玉的分享
大猫的无限游戏
大猫的无限游戏
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Last Week in AI
Last Week in AI
爱范儿
爱范儿
小众软件
小众软件
K
Kaspersky official blog
P
Proofpoint News Feed
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - Franky
V
Vulnerabilities – Threatpost
博客园_首页
Microsoft Security Blog
Microsoft Security Blog
C
Cybersecurity and Infrastructure Security Agency CISA
V
V2EX
C
Check Point Blog
S
Schneier on Security
P
Palo Alto Networks Blog
IT之家
IT之家
GbyAI
GbyAI
T
Threat Research - Cisco Blogs
Hugging Face - Blog
Hugging Face - Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Apple Machine Learning Research
Apple Machine Learning Research
C
Cyber Attacks, Cyber Crime and Cyber Security
T
Tailwind CSS Blog
Project Zero
Project Zero
Y
Y Combinator Blog
V
Visual Studio Blog
Simon Willison's Weblog
Simon Willison's Weblog
T
Threatpost
Scott Helme
Scott Helme
L
LINUX DO - 热门话题
S
Securelist
C
CERT Recently Published Vulnerability Notes
A
Arctic Wolf
M
MIT News - Artificial intelligence
人人都是产品经理
人人都是产品经理

博客园 - 翅膀

WCF测试机部署服务器 .net 操作 EXCEL OpenXML 替换word模板中的标签 AgilePoint BPMS 业务流程 List中插入超链接栏 结合eventHanlder和openXMl 实现上传word文档加页眉,页脚 InfoPath 上传多附件解决方法 moss 自定义文档库文档图标 - 翅膀 Microsoft Office SharePoint Server 2007的文件目录结构 如何隐藏“查看所有网站内容” 查看SharePoint未知错误 Layouts里的页面应用站点母板页 MOSS和其他系统的数据集成方式 MOSS中获取当前用户信息 关于MOSS中,用代码实现在列表中新增一列为增强型的RichTextField 自定义字段类型的开发[转] C#.net中操作XML - 翅膀 SharePoint Web Service系列:编写自定义SharePoint Web Services之二 SharePoint Web Service系列:编写自定义SharePoint Web Services之一
常用的stsadm命令行参数
翅膀 · 2008-12-08 · via 博客园 - 翅膀

常用的stsadm命令行参数有:

1、installfeature、uninstallfeature:

feature部署和卸载; 安装feature:stsadm -o installfeature -filename [feature文件夹下]\feature.xml

激活feature:stsadm -o activatefeature -filename [feature路径]\feature.xml -url http://[主机标头]:[端口]/sites/portol -force

特别注意的地方 -url     

还有就是:“主机标头”可以不是计算机名,但是有时创建Web Application时会出错,所以还是用计算机名比较好。也不知到为什么会出错。

2、addwppack、deletewppack:webpart和*.cab部署和卸载;

安装:stsadm -o addwppack -filename [*.cab文件路径]\*.cab

卸载:stsadm -o deletewppack -name *.cab

一般情况下,webpart不要直接部署到网站里,用feature部署要好一些。

3、addtemplate、deleteremplate:template(模板)的部署和卸载;

安装:stsadm.exe -o addtemplate -filename [*.stp文件路径]\*.stp -title [template名称]

4、addsolution、deletesolution:

solution部署和卸载;

 安装:stsadm -o addsolution -filename [*.wsp文件路径]\*.wsp;

部署:stsadm -o deploysolution -name *.wsp -allowgacdeployment -immediate

删除:stsadm.exe -o deletesolution -name *.wsp

 Feature功能很强大,很多东西都可以通过feature部署到MOSS里,但是根据自己的使用情况,

个人感觉母板页(MasterPage)和模板(template)还是通过“母板页库”和“模板库”上传上去比较好用。

 5、getlock、setlock:

用于在备份backup site collection时访问限制;

  1. At a command prompt on the drive on which SharePoint Products and Technologies is installed, change to the following directory: %COMMONPROGRAMFILES%\Microsoft shared\Web server extensions\12\Bin.

  2. To determine the current access level of the site, type the following command, and then press ENTER:

    stsadm -o getsitelock -url <URL name>

    where URL name is the URL of the site collection that you want to back up. For more information, see Getsitelock: Stsadm operation (Office SharePoint Server).

  3. If the current access level allows changes to the site content, change it to read-only by typing the following command, and then pressing ENTER:

    stsadm -o setsitelock -url <URL name> -lock readonly

    where URL name is the URL of the site collection that you want to back up. For more information, see Setsitelock: Stsadm operation (Office SharePoint Server).

  4. When the backup is complete, use this procedure to return access to the site collection to the original setting determined in step 1.

Use this procedure to back up a site collection by using the Stsadm command-line tool.

Examples

A common situation where the getsitelock and setsitelock operations are useful is when a site is backed up. Typically, before you back up a site collection, the site should be locked and no users should have access to it.

To determine the lock status of the site, you can use the following getsitelock syntax:

stsadm -o getsitelock -url http://server_name

Once the lock status of the site collection is determined, you can use the noaccess parameter of the setsitelock operation to lock out all users to the site:

stsadm -o setsitelock -url http://server_name -lock noaccess

You can use the Backup operation to create a backup of the site collection:

stsadm -o backup -url http://server_name -filename "filename.bak" -overwrite

After the site has been backed up, you can use the none parameter of the setsitelock operation to remove all locks to the site:

stsadm -o setsitelock -url http://server_name -lock none