SOLVED

Run command on startup

Copper 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 (Copper 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...
1 best response

Accepted Solutions
best response confirmed by Mark Smith (Copper Contributor)