I'm creating user profile service application in sharepoint server 2013 . for creating new sync connection , I need to enter Forest name. But I don't have permissions to see AD . I just have Farm account.
I have tried the below powershell cmd but no luck.
$forest = [System.DirectoryServices.ActiveDirectory.Forest]::GetCurrentForest()
So anyone have smart idea to know forest name?? Thanks.