SOLVED

Run command on startup

New Contributor

Is there a way that when I open powershell to run Connect-SPOService -Url https://contoso-admin.sharepoint.com?

 

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 (New Contributor)
Solution
PowerShell profiles allow you to do this easily, read about them here: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_profiles?vi...