Home

Can you create a Team via Powershell that has a custom channel and file pinned to the team?

%3CLINGO-SUB%20id%3D%22lingo-sub-367799%22%20slang%3D%22en-US%22%3ECan%20you%20create%20a%20Team%20via%20Powershell%20that%20has%20a%20custom%20channel%20and%20file%20pinned%20to%20the%20team%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-367799%22%20slang%3D%22en-US%22%3E%3CP%3EHello%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20like%20to%20create%20a%20Team%20automatically%20using%20powershell%20but%20add%20a%20channel%20called%20'test'%20and%20I%20would%20also%20like%20to%3C%2FP%3E%3CUL%3E%3CLI%3EUpload%20an%20excel%20file%20to%20the%20team%20under%20channel%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3ETest%3C%2FSTRONG%3E%3C%2FLI%3E%3CLI%3E%26nbsp%3Bpin%20the%20excel%20file%20to%20the%20channel.%26nbsp%3B%26nbsp%3B%3C%2FLI%3E%3C%2FUL%3E%3CP%3EI%20know%20i%20can%20create%20a%20team%20using%20P.S%20and%20a%20channel%20but%20its%20the%20last%20two%20bullet%20points%20i%20am%20unsure%20off.%3C%2FP%3E%3CP%3EJust%20hoping%20for%20a%20yes%20or%20no%20answer%20to%20the%20last%20two%20bullets%20for%20now%2C%20so%20I%20want%20to%20automatically%20create%205%20teams%2C%20all%20with%20a%20channel%20called%20test%2C%20all%20with%20an%20excel%20file%20either%20uploaded%20or%20pinned%20to%20the%20top%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you!!!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-367799%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdministrator%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAnalytics%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EBest%20Practices%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EHow-to%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EUser%20Interface%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-368660%22%20slang%3D%22en-US%22%3ERe%3A%20Can%20you%20create%20a%20Team%20via%20Powershell%20that%20has%20a%20custom%20channel%20and%20file%20pinned%20to%20the%20team%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-368660%22%20slang%3D%22en-US%22%3EBut%20you%20can%20use%20the%20Graph%20API%20in%20PowerShell%20%3B)%3C%2Fimg%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-367938%22%20slang%3D%22en-US%22%3ERe%3A%20Can%20you%20create%20a%20Team%20via%20Powershell%20that%20has%20a%20custom%20channel%20and%20file%20pinned%20to%20the%20team%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-367938%22%20slang%3D%22en-US%22%3EHi!%20No%20you%20can%E2%80%99t%20accomplish%20all%20this%20with%20powershell%20alone!%20You%20need%20to%20utilize%20the%20graph%20via%20a%20flow%20to%20get%20the%20tabs%20and%20add%20content%20via%20the%20flow%3C%2FLINGO-BODY%3E
Highlighted
testio2
Contributor

Hello

 

I would like to create a Team automatically using powershell but add a channel called 'test' and I would also like to

  • Upload an excel file to the team under channel Test
  •  pin the excel file to the channel.  

I know i can create a team using P.S and a channel but its the last two bullet points i am unsure off.

Just hoping for a yes or no answer to the last two bullets for now, so I want to automatically create 5 teams, all with a channel called test, all with an excel file either uploaded or pinned to the top

 

Thank you!!!

2 Replies
Highlighted
Hi! No you can’t accomplish all this with powershell alone! You need to utilize the graph via a flow to get the tabs and add content via the flow
Highlighted
But you can use the Graph API in PowerShell ;)