WVD syntax correction

%3CLINGO-SUB%20id%3D%22lingo-sub-2393590%22%20slang%3D%22en-US%22%3EWVD%20syntax%20correction%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2393590%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3C%2FP%3E%3CP%3EI%20am%20new%20to%20WVD%20and%20i%20am%20using%20wvd%20classic.%20I%20want%20to%20assign%2Fremove%20the%20user%20to%20WVD%20app%20group.%20Please%20correct%20me%20if%20the%20below%20syntaxes%20are%20correct.%3C%2FP%3E%3CP%3ETo%20create%20WVD%3CBR%20%2F%3EAdd-RdsAppGroupUser%20-TenantName%20%22MyTenant%22%20-HostPoolName%20%22MyPool%22%20-AppGroupName%20%22WVD%20Desktop%22%20-UserPrincipalName%20%22%3CA%20href%3D%22mailto%3Amaxwell%40mydomain.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Emaxwell%40mydomain.com%3C%2FA%3E%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETo%20Delete%20WVD%3C%2FP%3E%3CP%3ERemove-RdsAppGroupUser%20-TenantName%20%22MyTenant%22%20-HostPoolName%20%22MyPool%22%20-AppGroupName%20%22WVD%20Desktop%22%20-UserPrincipalName%20%22%3CA%20href%3D%22mailto%3Amaxwell%40mydomain.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Emaxwell%40mydomain.com%3C%2FA%3E%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20is%20the%20syntax%20to%20get%20the%20session%20hostname%20for%20this%20wvd.%3C%2FP%3E%3CP%3EGet-RdsSessionHost%20-TenantName%20%22MyTenant%22%20-HostPoolName%20%22MyPool%22%20-AppGroupName%20%22WVD%20Desktop%22%20-UserPrincipalName%20%22%3CA%20href%3D%22mailto%3Amaxwell%40mydomain.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Emaxwell%40mydomain.com%3C%2FA%3E%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGet-RdsAppGroupUser%20-TenantName%20%22MyTenant%22%20-HostPoolName%20%22MyPool%22%20-AppGroupName%20%22WVD%20Desktop%22%20-UserPrincipalName%20%22%3CA%20href%3D%22mailto%3Amaxwell%40mydomain.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Emaxwell%40mydomain.com%3C%2FA%3E%22%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

Hi

I am new to WVD and i am using wvd classic. I want to assign/remove the user to WVD app group. Please correct me if the below syntaxes are correct.

To create WVD
Add-RdsAppGroupUser -TenantName "MyTenant" -HostPoolName "MyPool" -AppGroupName "WVD Desktop" -UserPrincipalName "maxwell@mydomain.com"

 

To Delete WVD

Remove-RdsAppGroupUser -TenantName "MyTenant" -HostPoolName "MyPool" -AppGroupName "WVD Desktop" -UserPrincipalName "maxwell@mydomain.com"

 

What is the syntax to get the session hostname for this wvd.

Get-RdsSessionHost -TenantName "MyTenant" -HostPoolName "MyPool" -AppGroupName "WVD Desktop" -UserPrincipalName "maxwell@mydomain.com"

 

Get-RdsAppGroupUser -TenantName "MyTenant" -HostPoolName "MyPool" -AppGroupName "WVD Desktop" -UserPrincipalName "maxwell@mydomain.com"

0 Replies