Showing results for 
Search instead for 
Did you mean: 
Post Prodigy
Post Prodigy

runninng > 1 power bi powershell script



Have 2 powershell scripts which work when run indivudually.


However, if try copy the code from script 2 into script 1 to run at end get an error.


First one audits the power bi tenant uisng powerbimgmt powershell cmdlets.


second uploads these files to sharepoiint.


Is it possible to have a powershell script to run the second after the first

is syntax





new to powershell



Also need to run blow manually before I run script 1 can we get this to run automatically inside script 1?


[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12




Community Support
Community Support

Re: runninng > 1 power bi powershell script

Hi @po,

Maybe you can consider adding additional steps to export first step records to a local temp file.
After the temp file created, you can use second powershell scripts to operate this file and remove it after finish the operations.

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Upcoming Events

Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

We are thrilled to announce we will begin running a monthly webinar series named Power BI Dev Camp.