I use PowerCLI to set permissions on Windows vm's in our environment. I've found the "New-VIPermission" cmdlet, but when I use this cmdlet I get some warnings.
When a run this code:
I get these warnings:
WARNING: Parameter 'Entity' is obsolete. This parameter no longer accepts multiple values.
WARNING: Parameter 'Principal' is obsolete. This parameter no longer accepts multiple values.
I use a cmdlet which is documented in the VMware vSphere 6.0 Documentation Center, so what's the issue?
With regards,
Wouter
No, not as long as you are not using the parameter in the described setup, i.e. passing multiple values on the Entity and/or Principal parameter.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
These warnings come with the cmdlet, there is no check if you are actually using the parameters in the reported setup.
You can disable these alerts via the Set-PowerCLIConfiguration cmdlet with the DisplayDeprecationWarnings switch.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Hi Luc,
Thanks for your reply, sorry but I don't understand your answer.
I thought that when you get a Depreciation Warning, other means of accomplishing the task are preferred?
So is there another cmdlet for applying permissions or in other words what's wrong with my script?
No, not as long as you are not using the parameter in the described setup, i.e. passing multiple values on the Entity and/or Principal parameter.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thnx! Now I understand your answer!