Forum Discussion
Mark Smith
Aug 13, 2021Copper Contributor
Run command on startup
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.
- 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?view=powershell-7.1
- 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?view=powershell-7.1