Most Valued User Tom_Falk_Hansen Posted May 21, 2021 Most Valued User #1 Share Posted May 21, 2021 I need to disable video on all users on a system with 230 users, is it possible to do that with powershell? Link to comment Share on other sites More sharing options...
Most Valued User SvenS Posted May 21, 2021 Most Valued User #2 Share Posted May 21, 2021 connect-ippbx $Group = Get-IpPbxGroup -GroupName "Jeder" Get-IpPbxGroupMember -GroupEntry $Group | ForEach-Object { $userEntry = $_ $ud = Get-IpPbxUserData -UserEntry $userEntry $ud.m_bUserVideoAllowed = 0 Set-IpPbxUserData -UserEntry $userEntry -UserData $ud # Status Output Write-Host "User updated: $($userEntry.Name)" } disconnect-ippbx This should work. You just have to change the GroupName to your needs. Link to comment Share on other sites More sharing options...
Most Valued User Tom_Falk_Hansen Posted May 21, 2021 Author Most Valued User #3 Share Posted May 21, 2021 thank you it worked great 🐵 Where do you get other settings from ? how can i see what to use if it ws CTI instead i would change? Link to comment Share on other sites More sharing options...
Most Valued User SvenS Posted May 21, 2021 Most Valued User #4 Share Posted May 21, 2021 To get all Values from UserData you can use this command and then modify a value to your needs $ud = Get-IpPbxUserData -Username test $ud |format-list You should start Powershell ISE and then you see all the commandlets and you can get a description with examples. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now