After running Invoke-VMScript with User accout which has Administrator Role i get below error :
Error : Permission to perform this operation was denied. Required permission VirtualMachine.GuestOperations.Modify
What can be the reason ??
That looks like the account you are using to connect to the VCSA is missing the privilege 'virtualmachine.guestoperations.modify'.Can you check if the Role assigned to your Principal that has permssions on that VM, holds that privilege?