Forum Discussion
Powershell Script to list ALL videos in your 365 Stream environment
- Oct 22, 2022
Anyone looking at this script should also look at the PowerShell script that was released by Microsoft as part of the Stream (Classic) migration tools. The PowerShell script released by Microsoft can be downloaded directly from Stream (Classic) admin page and also has a PowerBI Desktop template that can be used to analyze the output CSVs.
See this part of the migration help articles for more info:
https://learn.microsoft.com/stream/streamnew/migration-details#stream-classic-video-report
Here is the URL I use for Western US. different regions have different datacenters, so you need to update the first part of the URL, the uswe-1
Sorry for the mess, I just wanted to remove any ID's and user info.
Here is the output from the browser.
I had to copy and paste this into a txt file, then change the .txt to .json
- WhatTheForkApr 06, 2021Copper ContributorI tried running the script but is not providing me any list. It's just creating a blank cache csv file.
- Dorje-McKinnonAug 05, 2021Steel Contributor
Hi WhatTheFork
My guess is that you didn't manually save the JSON files into the folder defined in the script.
This new code will make it a bit easier (JSON files auto open in their own browser tabs), BUT you still have to save each one as a JSON file into the folder you define in the script. Then your CSV won't be blank.
- Frank ChenApr 28, 2021Brass Contributor
Appreciate Dorje-McKinnon idea, I also created a windows form application which will automatically enumerate that API and save the result to a CSV file. Please reference to frankchen76 / StreamsInventory GitHub repository for the code. I also created a blog post Inventory videos from Classic Stream to explain the detail steps. Thanks