4. 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.

4.1 Files compared

# Location File Last Modified
1 RAMS-2.3.0.zip\RAMS-2.3.0\ps\misc getSecurityGroupUsers.ps1 Tue Aug 21 21:28:28 2018 UTC
2 RAMS-2.3.0.zip\RAMS-2.3.0\ps\misc getSecurityGroupUsers.ps1 Fri Nov 9 14:54:12 2018 UTC

4.2 Comparison summary

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

4.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

4.4 Active regular expressions

No regular expressions were active.

4.5 Comparison detail

  1   <#
  2   .SYNOPSIS
  3       Utilit y and Test ing script  to retrie ve a list  of securit y groups a nd all the  users in  each group
  4  
  5   .DESCRIPTI ON
  6       Builds  a csv lis t of all S harePoint  security g roups and  the users  in each gr oup. The f ormat is b uilt so th at 
  7       the ou tput can b e run dire ctly to re move all u sers from  the securi ty groups,  using Imp ort-RAMSUs ers.ps1. Y ou will 
  8       probab ly want to  remove th e people t hat you wa nt to keep  in the sy stem and r emove the  standard S harePoint  groups
  9       from t he list. T he output  file is na med "$($we bTitle).Se curityGrou pUsers.$($ rundate).c sv" and wi ll be loca ted in 
  10       the cu rrent dire ctory. 
  11  
  12   .EXAMPLE
  13       #when  run from t he powersh ell comman d prompt.
  14       .\GetS ecurityGro upUsers.ps
  15  
  16   #>
  17   If ((Get-P SSnapIn -N ame Micros oft.ShareP oint.Power Shell -Err orAction S ilentlyCon tinue) -eq  $null )  
  18       Add-PS SnapIn -Na me Microso ft.SharePo int.PowerS hell 
  19  
  20  
  21   if ((Get-M odule -Nam e RAMS_Mod ule_Util)  -ne $null)  {
  22       Remove -Module -N ame RAMS_M odule_Util
  23   }
  24  
  25   try {
  26       if ($e nv:COMPUTE RNAME -mat ch "VAPH")  {
  27           Im port-Modul e .\module \RAMS_Modu le_Util.ps d1 -Disabl eNameCheck ing -Globa l
  28       }
  29       else {
  30           Im port-Modul e ..\Utili tyScripts\ RAMS_Modul e_Util.psd 1 -Disable NameChecki ng -Global
  31       }
  32   } catch {
  33       #write -host "Una ble to loa d RAMS_Mod ule_Util.p sd1" -Fore groundColo r Red
  34       throw  "Unable to  load RAMS _Module_Ut il.psd1"
  35   }
  36  
  37  
  38   #$site = G et-SPSite  "https:// DNS . URL /sites/IRB Applicatio ns"
  39   #$web = $s ite.OpenWe b()
  40   $web = Get -SiteWeb
  41   $webTitle  = $web.Tit le.Replace (" ","")
  42   $groups =  $web.siteg roups
  43   $groupMemb ers = New- Object Sys tem.Collec tions.Arra yList
  44   $rundate =  Get-Date  -UFormat " %Y%m%d%H%M "
  45   $filename  = "$($webT itle).Secu rityGroupU sers.$($ru ndate).csv "
  46  
  47  
  48   #Write-Hos t "Securit y Group`tP erson`tAct ion" -fore groundcolo r cyan
  49   foreach ($ grp in $gr oups) {
  50       #"Grou p: " + $gr p.name;
  51       $group Name = $gr p.name
  52       
  53       #write -host "Gro up: " $gro upName   - foreground color gree n
  54       foreac h ($user i n $grp.use rs) {
  55                $userDis playName =  $user.Dis playName.T rim()
  56                $output  = New-Obje ct -TypeNa me "System .Object";
  57                Add-Memb er -InputO bject $out put -Membe rType Note Property - Name "Secu rity Group " -Value $ groupName
  58                Add-Memb er -InputO bject $out put -Membe rType Note Property - Name "Pers on" -Value  $userDisp layName
  59                Add-Memb er -InputO bject $out put -Membe rType Note Property - Name "Acti on" -Value  "Remove"
  60                $groupMe mbers.Add( $output) |  Out-Null
  61                #write-h ost "$grou pName`t$us erDisplayN ame`tRemov e"    -for egroundcol or cyan
  62       }
  63   }
  64   Write-Outp ut -inputO bject $gro upMembers  -NoEnumera te | Expor t-CSV -Pat h $filenam e -NoTypeI nformation
  65   Write-Host  "$filenam e contains  the user  informatio n." -Foreg roundColor  Green
  66   Write-Host  " " -Fore groundColo r White