Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Skype With Credentials Via Powershell

  • 04-04-2016 10:17AM
    #1
    Registered Users, Registered Users 2 Posts: 263 ✭✭


    HI Guys,

    Looking for some advice on starting Skype as different users using powershell. I know the Get-Credential command will allow me to get a users credentials but is there a way that anyone knows of to pass this to an Application (Skype for business in this case)

    Cheers
    Dpjmie


Comments

  • Moderators, Arts Moderators, Regional Abroad Moderators, Paid Member Posts: 11,203 Mod ✭✭✭✭Fysh


    You can enter a Skype For Business Online session with PowerShell as documented here (Technet), but I don't think that's what you want.

    It has also been possible to launch Skype from the command line and supply the username & password as parameters, so you could easily do that in PowerShell (rather than using Get-Credential you could just use Read-Host to prompt the user for username and password, though you'd probably want to use the -AsSecureString parameter for the password, then pipe it through ConvertFrom-Securestring when you actually launch Skype). However, I've not tried this with a Microsoft Account (as opposed to an original Skype account) and what I've seen from some brief reading around suggests that it's either not possible or non-intuitive...


Advertisement