SOLVED

Update-AzWvdSessionHost cannot set AllowNewSession to false with cmdlet

Copper Contributor

Hello,

 

i am changing my automation script to new powershell commands, but i looks like that i cannot change the AllowNewSession Value of my Session Host with cmdlet Update-AzWVDSessionHost. I only can activate it.

 

Any idea what i am doing wrong?

 

BR Michael

2 Replies
best response confirmed by Michael_Kolm (Copper Contributor)
Solution
Please try to supply the -AllowNewSession parameter in Update-AzWVDSessionHost with the following:
-AllowNewSession:$true
-AllowNewSession:$false

@Soo Kuan Teo Thank you very much, it is working now!

1 best response

Accepted Solutions
best response confirmed by Michael_Kolm (Copper Contributor)
Solution
Please try to supply the -AllowNewSession parameter in Update-AzWVDSessionHost with the following:
-AllowNewSession:$true
-AllowNewSession:$false

View solution in original post