通过PowerShell脚本获取SharePoint WSP历史记录 [英] Get SharePoint WSP History through PowerShell script

查看:65
本文介绍了通过PowerShell脚本获取SharePoint WSP历史记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我们在各个团队中使用集成环境进行测试。许多人在一天内进行多次部署,导致测试环境频繁中断。我们理解这需要作为SharePoint治理的一部分进行限制。
在我们这样做之前,我们想知道在一天或一周内部署WSP的次数。



根据下面的文章,我们可以找出wsp最后修改的时间,但我们不能说它在此之前何时被修改。


https://social.technet。 microsoft.com/Forums/lync/en- 美国/ ee915d73-9bba-4fb2-9a12- c54713d1fa10 / powershell- 脚本到获得最详情 - 样scopelast -deployed-date- and-name-for-a-solution- 已部署?forum = sharepointadmin



<我正在寻找一种方法来确定部署WSP的次数。我知道在部署WSP文件时SharePoint计时器作业会显示出来。只是想弄清楚哪个SharePoint计时器作业部署了WSP解决方案。我们可以从计时器工作历史中获得
的任何东西???



任何人都可以在这里帮助!!!!



谢谢,


Manikanth

解决方案

这非常不可靠,因为在创建10k行后永久删除计时器作业。除非您主动记录在外部系统中部署作业的时间(或者说,单独的SharePoint列表),否则您收集的信息将非常不可靠。


您应该考虑构建到部署脚本中的方法是在将WSP部署到站点或SharePoint外部系统上的服务器场时生成列表项。


Hi All,

We have an integrated environment used across various team for testing purpose. Many people do multiple deployment in a day which causes frequent outage on the test environment. We understand that this needs to be restricted as part of SharePoint governance. Before we do this we would like to know how many times a WSP is deployed in one singe day or in a week.

As per the below article we can find out when was the wsp last modified but we cannot say when it was modified before that.

https://social.technet.microsoft.com/Forums/lync/en-US/ee915d73-9bba-4fb2-9a12-c54713d1fa10/powershell-script-to-get-the-details-like-scopelast-deployed-date-and-name-for-a-solution-deployed?forum=sharepointadmin

I am looking for a way to figure out how many times a WSP deployed. I know that SharePoint timer job comes in to picture while deploying the WSP file. Just trying to figure out which SharePoint timer job deploys the WSP solutions. Can we get anything at all from timer job history ???

Can anyone please help here!!!!

Thanks,

Manikanth

解决方案

This is extremely unreliable as the timer job is permanently deleted after 10k rows have been created. Unless you actively record when a job is deployed in an external system (or say, a separate SharePoint list), the information you gather will be highly unreliable.

You should consider building into your deployment scripts a method that generates a list item when a WSP is deployed to the farm on a site or a system external to SharePoint.


这篇关于通过PowerShell脚本获取SharePoint WSP历史记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆