# Managing zoom rooms via powershell

**URL:** <https://devforum.zoom.us/t/managing-zoom-rooms-via-powershell/97502>\
**Category:** Authentication\
**Created:** [October 28, 2023, 10:18am UTC](https://devforum.zoom.us/t/managing-zoom-rooms-via-powershell/97502 "2023-10-28T10:18:48Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![zoltan.kiss.4](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/zoltan.kiss.4/32/54147_2.png) [@zoltan.kiss.4](https://devforum.zoom.us/u/zoltan.kiss.4)\
**Post date:** [October 28, 2023, 10:18am UTC](https://devforum.zoom.us/t/managing-zoom-rooms-via-powershell/97502/1 "2023-10-28T10:18:48Z")

</div>

Hello!

I would like to managing our zoom via powershell. I downloaded the zoomps and i can connect our zoom environment with the  
Connect-PSZoom -AccountID ‘XXX’ -ClientID ‘XXX’ -ClientSecret ‘XXX’

Many zoom command works but many important commands not.

for example this doesn’t work:  
Restart-zoomroom  
The error is:

> **Invoke-ZoomRestMethod : The remote server returned the following error: (401) Unauthorized.**  
> At C:\Program Files\WindowsPowerShell\Modules\pszoom\2.0.4.1\Public\Rooms\Restart-ZoomRoom.ps1:68 char:25
> 
> - … $response = Invoke-ZoomRestMethod -Uri $request.Uri -Body $RequestBod …
> - 
> 
> ```
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> ```
> 
> - CategoryInfo : AuthenticationError: ([https://api.zoo](https://api.zoo)…voqVaw/zrclient:) [Write-Error], WriteErrorException
> - FullyQualifiedErrorId : 401,Invoke-ZoomRestMethod

Somebody can help me, how can i set the full access for the all commands?

Many thanks!

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [November 1, 2023, 4:47pm UTC](https://devforum.zoom.us/t/managing-zoom-rooms-via-powershell/97502/2 "2023-11-01T16:47:02Z")

</div>

Hi @zoltan.kiss.4  
Thanks for reaching out to us, I am happy to help here!  
Could you point me to the integration you are using to make these api calls?

---

<div class="post-metadata">

**Author:** ![zoltan.kiss.4](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/zoltan.kiss.4/32/54147_2.png) [@zoltan.kiss.4](https://devforum.zoom.us/u/zoltan.kiss.4)\
**Post date:** [November 2, 2023, 6:08am UTC](https://devforum.zoom.us/t/managing-zoom-rooms-via-powershell/97502/3 "2023-11-02T06:08:35Z")

</div>

Hello!  
I have only Oauth api for connect to zoomps with our environment.

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [November 3, 2023, 7:45pm UTC](https://devforum.zoom.us/t/managing-zoom-rooms-via-powershell/97502/4 "2023-11-03T19:45:55Z")

</div>

I see @zoltan.kiss.4  
Could you share with me what specific endpoints you are trying to call that are giving you errors?

---

<div class="post-metadata">

**Author:** ![zoltan.kiss.4](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/zoltan.kiss.4/32/54147_2.png) [@zoltan.kiss.4](https://devforum.zoom.us/u/zoltan.kiss.4)\
**Post date:** [November 9, 2023, 12:02pm UTC](https://devforum.zoom.us/t/managing-zoom-rooms-via-powershell/97502/5 "2023-11-09T12:02:05Z")

</div>

Hi!  
I have only this:  
PS C:\Users\kisszoltan7\Documents\Visual Studio 2017\> Restart-ZoomRoom -RoomId g-GFjHPWToi6XFwQxZVKCQ  
Invoke-ZoomRestMethod : A távoli kiszolgáló a következő hibát küldte vissza: (401) Jogosulatlan.  
At C:\Program Files\WindowsPowerShell\Modules\pszoom\2.0.4.1\Public\Rooms\Restart-ZoomRoom.ps1:68 char:25

- … $response = Invoke-ZoomRestMethod -Uri $request.Uri -Body $RequestBod …
- 

```
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

```

  - CategoryInfo : AuthenticationError: ([https://api.zoo](https://api.zoo)…xZVKCQ/zrclient:) [Write-Error], WriteErrorException
  - FullyQualifiedErrorId : 401,Invoke-ZoomRestMethod

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [November 9, 2023, 3:04pm UTC](https://devforum.zoom.us/t/managing-zoom-rooms-via-powershell/97502/6 "2023-11-09T15:04:00Z")

</div>

Can you please share the link to the Documentation that you are using to run these commands? @zoltan.kiss.4  
I am having trouble understanding your issue.

---

<div class="post-metadata">

**Author:** ![zoltan.kiss.4](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/zoltan.kiss.4/32/54147_2.png) [@zoltan.kiss.4](https://devforum.zoom.us/u/zoltan.kiss.4)\
**Post date:** [November 22, 2023, 6:40am UTC](https://devforum.zoom.us/t/managing-zoom-rooms-via-powershell/97502/7 "2023-11-22T06:40:47Z")

</div>

Hello!  
Here is my ps commands:  
_Import-Module pszoom_

_Connect-PSZoom -AccountID ‘xxx’ -ClientID ‘xxx’ -ClientSecret ‘xxx’_  
_Restart-ZoomRoom -roomid NPpUZFWAThWAcO\_xf1cF1g_  
After the, this “restart-zoomroom” command invite a PS function. The error message is:  
“_Invoke-ZoomRestMethod : The remote server returned the following error: (401) Unauthorized_.”  
Many type of command’s result is same

---

<div class="post-metadata">

**Author:** ![zoltan.kiss.4](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/zoltan.kiss.4/32/54147_2.png) [@zoltan.kiss.4](https://devforum.zoom.us/u/zoltan.kiss.4)\
**Post date:** [November 22, 2023, 6:48am UTC](https://devforum.zoom.us/t/managing-zoom-rooms-via-powershell/97502/8 "2023-11-22T06:48:20Z")

</div>

The Doc: [PowerShell Gallery | PSZoom 2.0.4.2](https://www.powershellgallery.com/packages/PSZoom/2.0.4.2)

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [November 22, 2023, 4:28pm UTC](https://devforum.zoom.us/t/managing-zoom-rooms-via-powershell/97502/9 "2023-11-22T16:28:57Z")

</div>

Thanks @zoltan.kiss.4  
We did not develop this package, so I am not able to give you the right support.  
I would suggest you to reach out to the creator of it

---

<div class="post-metadata">

**Author:** ![keaya](https://avatars.discourse-cdn.com/v4/letter/k/e274bd/32.png) [@keaya](https://devforum.zoom.us/u/keaya)\
**Post date:** [October 17, 2024, 10:53am UTC](https://devforum.zoom.us/t/managing-zoom-rooms-via-powershell/97502/10 "2024-10-17T10:53:30Z")

</div>

Hi \_ did you figure out the issue?  
I am no programmer but am comfortable with PS.  
So trying to figure out how to use the PS module. So if you have any hints or tips.  
My connect-PSZoom worked  
However my commands get a remote server returned an error so doing something wrong.
