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
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 : MissingArgument
and
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 : CommandNotFoundException
Get-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 : CommandNotFoundException
Export-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 : CommandNotFoundException
Export-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
Do you mind to open issue here?
Thanks