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
Dorje-McKinnonThanks for your efforts to build the script and make our lives easier. However, when I rum the URL (After changing the values) I'm getting a blank excel file.
Can someone help me out here?
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
 
- Dorje-McKinnonMar 06, 2021Steel Contributorthanks for answering Jonathan_Ogden
- 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.