Run command on startup

Copper Contributor

Is there a way that when I open powershell to run Connect-SPOService -Url


I have to run this every time and it would be nice if it started when I started the SharePoint Online Management Shell.

1 Reply
best response confirmed by Mark Smith (Copper Contributor)
PowerShell profiles allow you to do this easily, read about them here: