Search found 48 matches

by bhnuser
Tue May 21, 2019 2:32 am
Forum: PowerShell
Topic: Password as plain text in script
Replies: 3
Views: 3645

Password as plain text in script

Hello everybody, i have a question about the password in a script. It should be a service user with high rights in the script deposited so that it is transparent to the end user. The script is exported to an executable file (.exe). My question is how can I implement it without a user can get to the ...
by bhnuser
Wed Apr 10, 2019 11:38 pm
Forum: PowerShell
Topic: PSSession to Skype-Server
Replies: 2
Views: 2994

Re: PSSession to Skype-Server

I'm aware of how I can see the cmdlets. The problem was that on the Skype server the cmdlets are displayed to me but not in a PowerShell session on my local machine. Now I have solved the problem. It was a mistake in the permission. I missed a higher privilege group to pull all the commands in the P...
by bhnuser
Fri Mar 22, 2019 7:17 am
Forum: PowerShell
Topic: PSSession to Skype-Server
Replies: 2
Views: 2994

PSSession to Skype-Server

Hello everybody, i got some problems with a script from the internet. It works on my Skype for Business Server 2015 but if i create a PowerShell-Session to the Server it won't work. Which script i use is Get-fBNumbers.ps1 (can found on the internet). My Problem is now, if i import the PowerShell-Ses...
by bhnuser
Thu Mar 21, 2019 11:52 pm
Forum: PowerShell Studio
Topic: Start ps1-Script in a form
Replies: 2
Views: 2554

Re: Start ps1-Script in a form

Thank you very much. It works for me now :)
by bhnuser
Wed Mar 20, 2019 7:34 am
Forum: PowerShell Studio
Topic: Start ps1-Script in a form
Replies: 2
Views: 2554

Start ps1-Script in a form

Hello everybody, I have received a script for my self-made tool from my colleagues and would like to incorporate it. Unfortunately I do not know how I can execute a script with a push of a button. The script as seen the attachments should be included in the project. To open other forms i can use: Sh...
by bhnuser
Mon Feb 25, 2019 3:49 am
Forum: PowerShell
Topic: New PsSession with a Progress Bar
Replies: 18
Views: 7208

Re: New PsSession with a Progress Bar

You have to have the module (RSAT) installed on any system that needs to use it. It cannot be passed to a remote system. Is there no way to pass the Get-ADUser cmdlet on the job? Finally, the cmdlets are stored in a psm1 in the temp folder. If it does not work, is there any way to permanently save ...
by bhnuser
Mon Feb 25, 2019 1:29 am
Forum: PowerShell
Topic: New PsSession with a Progress Bar
Replies: 18
Views: 7208

Re: New PsSession with a Progress Bar

Here is how you will have to do this to get the users and maintain the results while animating the button. $jobScript = { Param( $Server, $User ) $userProperties = 'set required properties here' Get-ADUser -Server $Server -Filter "Name -like '$User'" -Properties $userProperties } $updateS...
by bhnuser
Thu Feb 21, 2019 10:46 pm
Forum: PowerShell
Topic: New PsSession with a Progress Bar
Replies: 18
Views: 7208

Re: New PsSession with a Progress Bar

jvierra wrote: Thu Feb 21, 2019 7:10 am What you are trying todo cannot be done. A job runs in a separate process and processes are isolated from each other.
Too bad. Is not it possible to indicate progress or otherwise in any other way while the code is running (as above)?
Currently only the button is disabled and no more.
by bhnuser
Thu Feb 21, 2019 6:56 am
Forum: PowerShell
Topic: New PsSession with a Progress Bar
Replies: 18
Views: 7208

Re: New PsSession with a Progress Bar

So i am back at this topic and hope i can solve my issue with you. I would like to start a new session with New-PSSession but the loadtime is more than 20 seconds. So i would like to a an animated button in my script to show the user that the process is active. But how i can start a job with the fol...
by bhnuser
Thu Feb 21, 2019 2:10 am
Forum: PowerShell
Topic: Close a form and open a new one
Replies: 4
Views: 2787

Re: Close a form and open a new one

You cannot open a form inside a form and then close the current form. The function that opens your main form blocks all code execution in the calling form. To do this open the login in the Startup.pss file and after it closes open the main form. Thank you very much! I did not know that Startup.pss ...