18. EPMO Open Source Coordination Office Redaction File Detail Report

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.

18.1 Files compared

# Location File Last Modified
1 RAMS-2.3.0.zip\RAMS-2.3.0\ps Get-SPUserSolutionInWebApplication.ps1 Wed Aug 22 15:25:52 2018 UTC
2 RAMS-2.3.0.zip\RAMS-2.3.0\ps Get-SPUserSolutionInWebApplication.ps1 Fri Nov 9 14:54:12 2018 UTC

18.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 160
Changed 1 2
Inserted 0 0
Removed 0 0

18.3 Comparison options

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

18.4 Active regular expressions

No regular expressions were active.

18.5 Comparison detail

  1   <#
  2  
  3   .SYNOPSIS
  4       Gets a  list of S PUserSolut ions or a  specific S PUserSolut ion in a w eb applica tion.
  5  
  6   .DESCRIPTI ON
  7       Loops  through ea ch site in  a web app lication a nd retriev es the SPU serSolutio ns. Builds  an ArrayL ist with 
  8       Soluti onName, So lutionId,  SolutionSt atus, and  SiteCollec tionUrl.
  9       At the  end, prin ts the Arr ayList wit h SPUserSo lution inf ormation.
  10  
  11   .PARAMETER  SolutionN ame
  12       [Strin g] The nam e of the s olution fi le.
  13  
  14   .PARAMETER  WebApplic ationUrl
  15       [Strin g] The URL  for the W eb Applica tion.
  16       
  17   .NOTES
  18       modifi ed based o n script f rom https: //blog.ith inksharepo int.com/20 15/11/30/p owershell- getting-sa ndbox-solu tions-in-a -sharepoin t-web-appl ication/
  19  
  20   .EXAMPLE
  21         .\Get-SPUs erSolution InWebAppli cation -So lutionName  "Solution  Name" -We bApplicati onUrl "htt ps:// DNS . URL /sites/IRB Applicatio ns" 
  22  
  23   #>
  24   param (
  25      [Parame ter(Mandat ory=$false , HelpMess age='Solut ion Name') ]
  26      [string ]$Solution Name="",
  27      [Parame ter(Mandat ory=$false , HelpMess age='Solut ion Name') ]
  28      [string ]$WebAppli cationUrl= ""
  29   )
  30   # modified  based on  script fro m https:// blog.ithin ksharepoin t.com/2015 /11/30/pow ershell-ge tting-sand box-soluti ons-in-a-s harepoint- web-applic ation/
  31   $memoryAss ignment =  Start-SPAs signment;
  32   $solutions  = New-Obj ect System .Collectio ns.ArrayLi st
  33   $numberOfS olutionsFo und = 0;
  34   #$webAppli cation = G et-SPWebAp plication  -Identity  $WebApplic ationUrl - ErrorActio n Silently Continue - Assignment Collection  $memoryAs signment;
  35   $webApplic ation = Ge t-SPWebApp lication - Identity $ WebApplica tionUrl -A ssignmentC ollection  $memoryAss ignment;
  36   if($webApp lication - ne $null)  {
  37      #enumer ate throug h site col lections i n web appl ication
  38      $allSit es = Get-S PSite -Web Applicatio n $webAppl ication -L imit ALL - Confirm:$f alse -Assi gnmentColl ection $me moryAssign ment;
  39      foreach ($checkSit e in $allS ites) {
  40         #Wri te-Output  "Checking  Site " $ch eckSite.Ur l " for so lution " $ SolutionNa me;
  41         if($ SolutionNa me -eq "")  {
  42            $ checkSolut ions = Get -SPUserSol ution -Sit e $checkSi te -Assign mentCollec tion $memo ryAssignme nt;
  43            f oreach($so lution in  $checkSolu tions) {
  44                $output  = New-Obje ct -TypeNa me "System .Object";
  45                Add-Memb er -InputO bject $out put -Membe rType Note Property - Name "Solu tionName"  -Value "";
  46                Add-Memb er -InputO bject $out put -Membe rType Note Property - Name "Solu tionId" -V alue "";
  47                Add-Memb er -InputO bject $out put -Membe rType Note Property - Name "Solu tionStatus " -Value " ";
  48                Add-Memb er -InputO bject $out put -Membe rType Note Property - Name "Site Collection Url" -Valu e "";
  49                $output. SolutionNa me = $solu tion.Name;
  50                $output. SolutionId  = $soluti on.Solutio nId;
  51                $output. SolutionSt atus = $so lution.Sta tus;
  52                $output. SiteCollec tionUrl =  $checkSite .Url;
  53                $solutio ns.Add($ou tput) | Ou t-Null
  54                #Write-O utput -Inp utObject $ output;
  55                #Write-H ost "$($so lution.Nam e)`t$($che ckSite.Url )" -Foregr oundColor  White;
  56                $numberO fSolutions Found++
  57            }
  58         } el se {
  59            $ checkSolut ion = Get- SPUserSolu tion -Iden tity $Solu tionName - Site $chec kSite -Err orAction S ilentlyCon tinue -Ass ignmentCol lection $m emoryAssig nment;
  60            i f($checkSo lution -ne  $null) {
  61                $output  = New-Obje ct -TypeNa me "System .Object";
  62                Add-Memb er -InputO bject $out put -Membe rType Note Property - Name "Solu tionName"  -Value "";
  63                Add-Memb er -InputO bject $out put -Membe rType Note Property - Name "Solu tionId" -V alue "";
  64                Add-Memb er -InputO bject $out put -Membe rType Note Property - Name "Solu tionStatus " -Value " ";
  65                Add-Memb er -InputO bject $out put -Membe rType Note Property - Name "Site Collection Url" -Valu e "";
  66                $output. SolutionNa me = $chec kSolution. Name;
  67                $output. SolutionId  = $checkS olution.So lutionId;
  68                $output. SolutionSt atus = $ch eckSolutio n.Status;
  69                $output. SiteCollec tionUrl =  $checkSite .Url;
  70                $solutio ns.Add($ou tput) | Ou t-Null
  71                #Write-O utput -Inp utObject $ output;
  72                #Write-H ost "$($ch eckSolutio n.Name)`t$ ($checkSit e.Url)" -F oregroundC olor White ;
  73                $numberO fSolutions Found++
  74            }
  75         }
  76      }
  77   }
  78   #$solution s | %{Writ e-Host $_. Solution.N ame in $_. SiteCollec tion.Url}
  79   $solutions  | Sort So lutionName  | format- table -pro perty Solu tionName,  SolutionId , Solution Status, Si teCollecti onUrl -Aut oSize
  80   Write-Outp ut "Found  $numberOfS olutionsFo und Instan ces of Sol ution $Sol utionName" ;
  81   Stop-SPAss ignment $m emoryAssig nment;