Skype for Buisness

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 5 years and 5 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
jpizzuco
Posts: 7
Last visit: Sat Jan 23, 2021 7:48 am

Skype for Buisness

Post by jpizzuco »

Hi Guys,
I'm trying to manage our skype for business 2015 user accounts using a GUI, But the module doesn't seem to load. This is my script

$form1_Load={
Import-Module SkypeForBusiness

}
$buttonSkype_Click = {
get-csuser useraccount
}

I'm running PS Studio 2018
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Skype for Buisness

Post by jvierra »

That module is only available on the server if the PowerShell tools have been installed.
User avatar
jpizzuco
Posts: 7
Last visit: Sat Jan 23, 2021 7:48 am

Re: Skype for Buisness

Post by jpizzuco »

I installed the skype for business management tools locally on my PC and I connect to the server and query the users
load-module skypeforbusiness
get-csuser UserName

But when I add it to my script it doesn't work
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Skype for Buisness

Post by jvierra »

Some modules for Azure and Lync won't work in a form. You will need to run that code as a job which works with Azure.
User avatar
jpizzuco
Posts: 7
Last visit: Sat Jan 23, 2021 7:48 am

Re: Skype for Buisness

Post by jpizzuco »

Can you explain "You will need to run that code as a job which works with Azure"
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Skype for Buisness

Post by jvierra »

help start-job -full

Look at the examples.
This topic is 5 years and 5 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked