Src/Private/Get-AbrOntapVserverCIFSShare.ps1
function Get-AbrOntapVserverCIFSShare { <# .SYNOPSIS Used by As Built Report to retrieve NetApp ONTAP Vserver CIFS Share information from the Cluster Management Network .DESCRIPTION .NOTES Version: 0.4.0 Author: Jonathan Colon Twitter: @jcolonfzenpr Github: rebelinux .EXAMPLE .LINK #> [CmdletBinding()] param ( ) begin { Write-PscriboMessage "Collecting ONTAP CIFS Share information." } process { $VserverData = Get-NcCifsShare $VserverObj = @() if ($VserverData) { foreach ($Item in $VserverData) { $inObj = [ordered] @{ 'Vserver Name' = $Item.CifsServer 'Share Name' = $Item.ShareName 'Volume' = $Item.Volume 'Path' = $Item.Path } $VserverObj += [pscustomobject]$inobj } $TableParams = @{ Name = "Vserver CIFS Share Information - $($ClusterInfo.ClusterName)" List = $false ColumnWidths = 20, 20, 20, 40 } if ($Report.ShowTableCaptions) { $TableParams['Caption'] = "- $($TableParams.Name)" } $VserverObj | Table @TableParams } } end {} } |