Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 182126

Comparison of VM-Folder-ID and Folder-ID

$
0
0

Hi all,

 

i would like to compare the Folder-ID of an VM-Parent-Folder and another Folder

 

If the VM-Folder-ID is equal to FolderID = do nothing

If the VM-folder is not equal to FolderID = do something

 

I have the following lines:

 

PS C:\> $VMFolderID

 

 

FolderId                                                                                                                           

--------                                                                                                                           

Folder-group-v54375                                                                                                                

 

 

 

PS C:\> $FolderID

 

Id                                                                                                                                 

--                                                                                                                                 

Folder-group-v54375                                                                                                                

 

 

 

PS C:\> $VMFolderID -eq $FolderID

 

False

 

What´s going wrong here?

 

Thanks in advance

 

Chakoe


Viewing all articles
Browse latest Browse all 182126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>