I have a WVD host pool with 20+ VMs in the pool. I want to enable user profiles using Azure storage. I authorized the storage in AD. Storing the user profiles requires FSlogix to be installed on all the VMs in the pool with domain admin credentials.
Right now, I have to take an RDP of the VMs individually from the PDC to install the FSlogix on them. When I try to have this installed using custom script extension on the portal, the tool gets installed with local admin privileges and hence storing and retrieving the user profiles in the storage doesn't work.
I need some way to automate the installation on all VMs remotely. GPO is not an option because it only pushes the software but it only gets installed when the user logs in.
I want to know how I can install the software on all the VMs (either in one go or using custom script extension on the VMs) with domain admin credentials. When I tried passing the credentials in 'Invoke-command' with custom script in extension, it failed with "Access denied" message