Thank you for your help. I've fixed the credential portion (thanks for the catch) and I'm looking into hast tables.
I'm having trouble with lines 102 - 126 of my script. The variable is not populating with info and I'm having difficulty getting the 'if' portion of my script to check if a value is true, the continue to run the script.
Thoughts?
#Check to see if the filer is licensed for multistore.
#If it is, check for NFS/iSCSI related items.
$NFSiSCSIVerify = Get-NaLicense -Name multistore
if ($NFSViSCSIVerify.Licensed -eq "TRUE")
{
#Get vFiler info
Get-NaVfiler | Out-String -Stream | Add-Content -Path $ControllerConfigFile
$NFSiSCSIControllerList = Get-NaVfiler
#Get NFS Export info running in memory
Add-Content -Path $ControllerConfigFile -Value "
NFS exports in memory
"
Invoke-NaSsh -Command "vfiler run * exportfs" | Out-String -Stream | Add-Content -Path $ControllerConfigFile
#Run scripts against NFS/iSCSI controllers
ForEach ($NFSiSCSIController in $NFSiSCSIControllerList)
{
#get NFS Exports info from the exports file
Add-Content -Path $ControllerConfigFile -Value "
NFS exports in the exports file -- Shoud match what is in memory...
"
Read-NaFile $("/vol/" + $NFSiSCSIController + "/etc/exports") | Out-String -Stream | Add-Content -Path $ControllerConfigFile
}
}