Produced by Araxis Merge on 11/9/2018 12:16:34 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.3.0.zip\RAMS-2.3.0\ps\misc | Get-SPUserSolutionInWebApplication.ps1 | Wed Aug 22 15:43:34 2018 UTC |
2 | RAMS-2.3.0.zip\RAMS-2.3.0\ps\misc | Get-SPUserSolutionInWebApplication.ps1 | Thu Nov 8 21:18:20 2018 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 4 | 140 |
Changed | 3 | 6 |
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 | .SYNOPSIS | |
3 | Utilit y and Test ing script to retrie ve SPUserS olution in formation | |
4 | ||
5 | .DESCRIPTI ON | |
6 | If the SolutionN ame is emp ty, then a ll SPUserS olutions a re retriev ed, otherw ise inform ation abou t the spec ific | |
7 | soluti onName is retrieved and displa yed. | |
8 | ||
9 | .PARAMETER SolutionN ame | |
10 | [Strin g] The nam e of the s olution to get infor maiton abo ut. If "" or not pro vided, all solutions are repor ted. | |
11 | ||
12 | .PARAMETER WebApplic ationUrl | |
13 | [Strin g] The URL of the we bApplicati on. | |
14 | ||
15 | .EXAMPLE | |
16 | #when run from t he powersh ell comman d prompt. | |
17 | #get i nformation about all solutionN ames | |
18 | .\Get-SPUs erSolution InWebAppli cation.ps1 -WebAppli cationUrl "https:// DNS . URL /sites/IRB Applicatio n" | |
19 | ||
20 | .EXAMPLE | |
21 | #when run from t he powersh ell comman d prompt. | |
22 | #get i nformation about all solutionN ames | |
23 | .\Get-SPUs erSolution InWebAppli cation.ps1 -WebAppli cationUrl "https:// DNS . URL /sites/IRB Applicatio n" -Soluti onName "" | |
24 | ||
25 | .EXAMPLE | |
26 | #when run from t he powersh ell comman d prompt. | |
27 | #get i nformation about a s pecific so lutionName | |
28 | .\Get-SPUs erSolution InWebAppli cation.ps1 -WebAppli cationUrl "https:// DNS . URL /sites/IRB Applicatio n" -Soluti onName "rw f_SetDocum entTitleTo Filename" | |
29 | ||
30 | #> | |
31 | param ( | |
32 | [Param eter(Manda tory=$fals e, HelpMes sage='Solu tion Name' )] | |
33 | [strin g]$Solutio nName="", | |
34 | [Param eter(Manda tory=$fals e, HelpMes sage='Solu tion Name' )] | |
35 | [strin g]$WebAppl icationUrl ="" | |
36 | ) | |
37 | ||
38 | $memoryAss ignment = Start-SPAs signment; | |
39 | $numberOfS olutionsFo und = 0; | |
40 | $webApplic ation = Ge t-SPWebApp lication - Identity $ WebApplica tionUrl -E rrorAction SilentlyC ontinue -A ssignmentC ollection $memoryAss ignment; | |
41 | if($webApp lication - ne $null) { | |
42 | #enume rate throu gh site co llections in web app lication | |
43 | $allSi tes = Get- SPSite -We bApplicati on $webApp lication - Limit ALL -Confirm:$ false -Ass ignmentCol lection $m emoryAssig nment; | |
44 | foreac h($checkSi te in $all Sites) { | |
45 | #W rite-Outpu t "Checkin g Site " $ checkSite. Url " for solution " $Solution Name; | |
46 | if ($Solution Name -eq " ") { | |
47 | $checkSo lutions = Get-SPUser Solution - Site $chec kSite -Ass ignmentCol lection $m emoryAssig nment; | |
48 | foreach( $solution in $checkS olutions) { | |
49 | $out put = New- Object -Ty peName "Sy stem.Objec t"; | |
50 | Add- Member -In putObject $output -M emberType NoteProper ty -Name " Solution" -Value ""; | |
51 | Add- Member -In putObject $output -M emberType NoteProper ty -Name " SiteCollec tion" -Val ue ""; | |
52 | $out put.Soluti on = $solu tion; | |
53 | $out put.SiteCo llection = $checkSit e; | |
54 | Writ e-Output - InputObjec t $output; | |
55 | $num berOfSolut ionsFound+ + | |
56 | } | |
57 | } else { | |
58 | $checkSo lution = G et-SPUserS olution -I dentity $S olutionNam e -Site $c heckSite - ErrorActio n Silently Continue - Assignment Collection $memoryAs signment; | |
59 | if($chec kSolution -ne $null) { | |
60 | $out put = New- Object -Ty peName "Sy stem.Objec t"; | |
61 | Add- Member -In putObject $output -M emberType NoteProper ty -Name " Solution" -Value ""; | |
62 | Add- Member -In putObject $output -M emberType NoteProper ty -Name " SiteCollec tion" -Val ue ""; | |
63 | $out put.Soluti on = $chec kSolution; | |
64 | $out put.SiteCo llection = $checkSit e; | |
65 | Writ e-Output - InputObjec t $output; | |
66 | $num berOfSolut ionsFound+ + | |
67 | } | |
68 | } | |
69 | } | |
70 | } | |
71 | ||
72 | Write-Outp ut "Found $numberOfS olutionsFo und Instan ces of Sol ution $Sol utionName" ; | |
73 | Stop-SPAss ignment $m emoryAssig nment; |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.