Produced by Araxis Merge on 1/16/2018 5:28:59 PM Eastern Standard Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
# | Location | File | Last Modified |
---|---|---|---|
1 | RAMS-2.2.0.zip\RAMS-2.2.0\ps | DeploySiteFeatures.ps1 | Sat Nov 11 20:54:02 2017 UTC |
2 | RAMS-2.2.0.zip\RAMS-2.2.0\ps | DeploySiteFeatures.ps1 | Tue Jan 16 21:47:02 2018 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 238 |
Changed | 1 | 2 |
Inserted | 0 | 0 |
Removed | 0 | 0 |
Whitespace | |
---|---|
Character case | Differences in character case are significant |
Line endings | Differences in line endings (CR and LF characters) are ignored |
CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
1 | <# | |
2 | The follow ing script Deploys t he followi ng Site Fe atures for the given sprint. | |
3 | 1)Committe eBroker wo rkflow fro m the temp late Commi tteeBroker .wsp provi ded. | |
4 | ||
5 | * For each Feature, DeployFeat ure functi on is call ed with fo llowing pa rameters. | |
6 | Parameters : | |
7 | $SiteColl ection: th e url of t he Site Co llection w here Solut ion needs to be adde d | |
8 | $site: th e url of t he site wh ere the Fe ature need s to be en abled | |
9 | $FeatureN ame: The n ame of the template/ Feature/So lution | |
10 | $FeatureI d: Feature Id from t he templat e | |
11 | $file: so urce file of the fea ture | |
12 | ||
13 | The Featu re Id is r equired wh ich you ma y need to extract fr om the tem plate prov ided. | |
14 | To extract the featu re id: | |
15 | ||
16 | 1) Make a copy of th e .wsp fil e and chan ge the fil e name ext ension on the copied file to . cab. | |
17 | 2) In Wind ows Explor er, right- click the .cab file, and then click Open . | |
18 | 3) Select feature.xm l. The fea ture id is given in the Featur e tag | |
19 | < Feature id = {Fea ture id he re} > | |
20 | ....... | |
21 | </Feature> | |
22 | ||
23 | The functi on perform s followin g tasks. | |
24 | 1) It adds the workf low to the Solutions in the '$ SiteCollec tion' | |
25 | 2) Activat es the sol ution | |
26 | 3) Enable the featur e for the given '$si te' | |
27 | #> | |
28 | Function D eployFeatu re { | |
29 | ||
30 | Param( [Par ameter(Man datory=$Tr ue)] | |
31 | [str ing]$SiteC ollection, | |
32 | ||
33 | [Par ameter(Man datory=$Tr ue)] | |
34 | [str ing]$site, | |
35 | ||
36 | [Par ameter(Man datory=$Tr ue)] | |
37 | [str ing]$Featu reName, | |
38 | ||
39 | [Par ameter(Man datory=$Tr ue)] | |
40 | [str ing]$OldFe atureId, | |
41 | ||
42 | [Par ameter(Man datory=$Tr ue)] | |
43 | [str ing]$Featu reId, | |
44 | ||
45 | [Par ameter(Man datory=$Tr ue)] | |
46 | [str ing]$file, | |
47 | ||
48 | [Par ameter(Man datory=$Tr ue)] | |
49 | [boo l] $bolUni nstall, | |
50 | ||
51 | [Par ameter(Man datory=$Fa lse)] | |
52 | [boo l] $bolEna bleFeature Only | |
53 | ) | |
54 | ||
55 | ||
56 | Ad d-PSSnapin Microsoft .SharePoin t.PowerShe ll | |
57 | ||
58 | # GET THE SITE C OLLECTION | |
59 | $SiteC ollectionw eb = Get-S PWeb $Site Collection | |
60 | ||
61 | # GET THE SITE | |
62 | $web = Get-SPWeb $site | |
63 | ||
64 | # CLEA N and old one first | |
65 | if($bo lEnableFea tureOnly - eq $False) { | |
66 | if ($bolUnins tall) | |
67 | { | |
68 | Write-Ho st " Unin stall old ones" | |
69 | ||
70 | Write-Ho st " Di sabling fe ature Iden tity $OldF eatureId U RL $web.Ur l" | |
71 | Disable- SPFeature -Identity $OldFeatur eId -Url $ SiteCollec tionweb.Ur l -Force | |
72 | ||
73 | Write-Ho st " Un installing feature I dentity $F eatureName Site $Sit eCollectio nweb.Url" | |
74 | Uninstal l-SPUserSo lution -Id entity $Fe atureName -Site $Sit eCollectio nweb.Site | |
75 | ||
76 | Write-Ho st " Re moving fea ture Ident ity $Featu reName Sit e $SiteCol lectionweb .Url" | |
77 | Remove-S PUserSolut ion -Ident ity $Featu reName -Si te $SiteCo llectionwe b.Site | |
78 | $web.Upd ate() | |
79 | } | |
80 | # ADD/UPLOAD TO THE SO LUTIONS | |
81 | Wr ite-Host " Adding n ew ones" | |
82 | Wr ite-Host " Adding feature f ile $file Site $Site Collection web.Url" | |
83 | Ad d-SPUSerSo lution -Li teralPath $file -Sit e $SiteCol lectionweb .Url -Verb ose | |
84 | $w eb.Update( ) | |
85 | # ACTIVATE T HE SOLUTIO N | |
86 | Wr ite-Host " Activati ng new one s" | |
87 | Wr ite-Host " Instal l feature Identity $ FeatureNam e Site $Si teCollecti onweb.Url" | |
88 | In stall-SPUs erSolution -Identity $FeatureN ame -Site $SiteColle ctionweb.U rl | |
89 | $w eb.Update( ) | |
90 | } | |
91 | # ENAB LE THE FEA TURE FOR T HE GIVEN S ITE | |
92 | # feat ure id goe s into -Id entity | |
93 | Write- Host " En abling new ones" | |
94 | Write- Host " Enabling f eature Ide ntity $Fea tureName U rl $web.Ur l" | |
95 | Enable -SPFeature -Identity $FeatureI d -Url $we b.Url -Ver bose -Forc e | |
96 | $web.U pdate() | |
97 | } | |
98 | ||
99 | ||
100 | # ENTER YO UR FEATURE DEPLOYMEN T CALLS HE RE | |
101 | ||
102 | # DEPLOYIN G COMMITTE EBROKER WO RKFLOW, fo r explaina tion read instructio ns at the TOP | |
103 | #DeployFea ture -Site Collection "http://v aww.itst.r am.msp.va. gov/sites/ IRBApplica tions" -si te "http:/ / DNS . URL /sites/IRB Applicatio ns" -Featu reName "Co mmitteeBro ker.wsp" - FeatureId "e760f313- 7180-49f8- 8a69-ff2b4 1396320" - file C:\Us ers\ DN S D N S \Desktop\C ommitteeBr oker.wsp | |
104 | ||
105 | #DeployFea ture -Site Collection $siteUrl -site $web .Url -Feat ureName "A dd To SRS Agenda.wsp " -Feature Id "965cc6 af-32ab-4c 56-a261-cc a6a291ce59 " -file $s cript -bol Uninstall $True | |
106 | <# | |
107 | $w = Get-S PWeb $site URL | |
108 | if($w.Webs .Count -gt 0) | |
109 | { | |
110 | foreac h($web in $w.Webs) | |
111 | { | |
112 | De ployFeatur e -SiteCol lection $s iteUrl -si te $web -F eatureName "Add To R DC Agenda. wsp" -OldF eatureId " 3ed1c459-0 e4b-4a9e-a 2bd-6bf456 2f7a8f" -F eatureId " 17c810d2-2 37e-4c89-b bda-d88d34 f2bdb7" -f ile $scrip t -bolUnin stall $Tru e | |
113 | } | |
114 | } | |
115 | ||
116 | #> | |
117 | #echo "ALL DONE!!" | |
118 | #DeployFea ture -Site Collection $siteUrl -site $w.U rl -Featur eName "Not ification Workflow C onfigurati on Workflo w.wsp" -Ol dFeatureId $tempFeat ureId -Fea tureId "6c 1a9661-5e2 4-44be-8b0 b-52b19bcd 765da" -fi le $script -bolUnins tall $True | |
119 | ||
120 | $web.updat e() |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.