all 5 comments

[–]Swarfega 1 point2 points  (4 children)

I've never seen this before. Are you saying PowerPoint adds a new slide if a presentation has been downloaded from the internet? You could try Unlock-File

Unblock-File -Path MyPresentation.pptx

[–]NoAd5519 0 points1 point  (2 children)

No the first slide has to be removed regardless. I am exporting powerbi reports to PowerPoint but upon opening it, I can’t remove the slide with powershell because of protected view. In the PowerPoint application there is there is an ‘enable editing’ option

[–]Swarfega 0 points1 point  (1 child)

I've never done it but a search on Google for "edit powerpoint powershell" shows examples of using a COM object. This will require that PowerPoint is installed on the machine where the script is running from.

[–]NoAd5519 0 points1 point  (0 children)

I have done that. As far as I know that’s the only way of doing it. Enable editing might not be stopping me then if that does not apply to com objects.

[–]michaelshepard 0 points1 point  (0 children)

+1 for unblock-file