Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
117 views
in Technique[技术] by (71.8m points)

How to launch teams.exe with powershell

I've been trying to launch teams using powershell, i've succeeded launching teams using the destination path under the shortcut property, and then running it in powershell.

C:Usersuser1AppDataLocalMicrosoftTeamsUpdate.exe --processStart "Teams.exe"

But this only works for the local user, if i run the script with another user teams won't launch. i've storing the user in a variable.

$user = $env:UserName 

C:Users$userAppDataLocalMicrosoftTeamsUpdate.exe --processStart "Teams.exe"

This doesn't work. So my question how can I launch teams.exe(make it visible)? I want to make it like how you can launch word with start winword.exe

question from:https://stackoverflow.com/questions/65932454/how-to-launch-teams-exe-with-powershell

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...