Hello all,
Having some problems with a script returning $var from functions.
I have the functions as the follow example:
$folderOwner = (Process-ADObj($owner))[0] ####(here i just want value $ADobjid)
$aclId = Process-ADObj($ADuser) ##(here i want varaibles $ADobjid and $ACL_TYPE_USER)
Function process-ADObj($owner) (returns following variables)
$ADobjid
$ACL_TYPE_USER
###END########
How can i get only 1 values in $ADobjid for funciton $folderOwner and $ADobjid and $ACL_TYPE_USER for function $aclId?
Any help is welcome.
Regards,