Skip to content

One line PowerShell scripts to start MS Office apps to start with blank documents

To start a blank PowerPoint presentation:

$PowerPoint=New-Object -ComObject Powerpoint.Application ; 
$PowerPoint.Presentations.Add()

To start a blank Word document:

$Word=New-Object -ComObject Word.Application ;
$Word.visible=$true ;
$Word.Documents.Add()

To start a blank Excel document:

$Excel=New-Object -ComObject Excel.Application ;
$Excel.visible=$true ;
$Excel.Workbooks.Add()

To start a blank Outlook document:

start outlook

To start a blank OneNote document:

start onenote

Source : https://www.hongliji.info/2019/11/powershell-one-liner-to-start-microsoft.html

See also  Take backup of your BitBucket repositories using Shell script

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.