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-McKinnon , take a peek at this one https://bit.ly/PnPScriptSamplesMSStream,
It's wrapped up in a nice way, asking for creds and getting the tokens needed to export a csv with a report. Ill be adding more stuff soon
- Dorje-McKinnonJan 31, 2022Iron Contributor
Thanks ScoutmanPt for your code and helping out the others on this list. Appreciate it 🙂
- ConradMurrayJan 27, 2022Brass Contributor
ScoutmanPt Thought this might be another option, but no...
At line:237 char:40
+ ContentType,Created,Modified, `
+ ~
Missing argument in parameter list.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingArgumentand
Get-StreamToken : The term 'Get-StreamToken' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
included, verify that the path is correct and try again.
At line:3 char:33
+ $streamTokenConfiguration = Get-StreamToken -Tenant $Tenant -Cred ...
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Get-StreamToken:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundExceptionGet-RequestedAssets : The term 'Get-RequestedAssets' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path
was included, verify that the path is correct and try again.
At line:4 char:18
+ $allVideos = Get-RequestedAssets -token $streamTokenConfiguration ...
+ ~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Get-RequestedAssets:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundExceptionExport-ReportAssets : The term 'Export-ReportAssets' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path
was included, verify that the path is correct and try again.
At line:5 char:5
+ Export-ReportAssets -assets $allVideos -label "Videos"-fileName " ...
+ ~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Export-ReportAssets:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundExceptionExport-ReportAssets : The term 'Export-ReportAssets' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path
was included, verify that the path is correct and try again.
At line:7 char:5
+ Export-ReportAssets -assets $videosNotMigrated -label "VideosNotM ...
+ ~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Export-ReportAssets:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException- ScoutmanPtFeb 01, 2022Copper ContributorHowdy, this is definitely weird: just rechecked a couple of time and cant seam to get that error.
Do you mind to open issue here?
Thanks
- RolzzzzJan 14, 2022Copper Contributor
ScoutmanPt Was pretty excited about this, but all things I tried, I get stuck with this screen and can't get any further...
- ScoutmanPtJan 14, 2022Copper Contributor
Howdy Rolzzzz thats Microsoft cookies kicking in.
Do the following :connect to your O365 Ms stream and logout, make sure you close all the browser windows.
Buzz if have any problem.
Best regards
@Scoutmanpt
- rgupta255Jan 14, 2022Copper Contributor
I tried what you said about logging in an out, but getting stuck as well at the logon screen.