Search found 26 matches

by bhnuser
Wed Feb 13, 2019 12:51 am
Forum: Windows PowerShell
Topic: New PsSession with a Progress Bar
Replies: 10
Views: 314

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 } $updateScript = { ...
by bhnuser
Tue Feb 12, 2019 1:52 am
Forum: Windows PowerShell
Topic: New PsSession with a Progress Bar
Replies: 10
Views: 314

Re: New PsSession with a Progress Bar

Yeah i see this is not easy as i thought. The Problem is, that i create 3 PS-Sessions and while i start the programm it takes about 30 seconds and this is a little bit frustrating if you do not see any progress on the start. But i found maybe an other way to display the progress. I refered to the po...
by bhnuser
Thu Feb 07, 2019 12:25 am
Forum: Windows PowerShell
Topic: New PsSession with a Progress Bar
Replies: 10
Views: 314

Re: New PsSession with a Progress Bar

Im so sorry. But what i like to ask is how to build a progress bar like this: https://www.sapien.com/forums/viewtopic.php?f=12&t=12486&p=67236&hilit=progress+bar+session#p67236 MDinice has a progress bar showing the progress of a connection to the server. This is what i would like to ad to my projec...
by bhnuser
Thu Feb 07, 2019 12:09 am
Forum: Windows PowerShell
Topic: New PsSession with a Progress Bar
Replies: 10
Views: 314

New PsSession with a Progress Bar

Hey, at the moment i try to add a progress bar to my project. This progress bar should show the progress of a connection to my AD- and Exchange-Server. I have already looked up here in the forum but can not find a solution for me. How the progress bar can synchronous with the progress of the functio...
by bhnuser
Wed Feb 06, 2019 11:11 pm
Forum: PowerShell GUIs
Topic: KeyDown-Event
Replies: 2
Views: 88

Re: KeyDown-Event

I tried it with a MessageBox. As if from nowhere it works without any reason.

I will continue to monitor it.
by bhnuser
Tue Feb 05, 2019 7:30 am
Forum: PowerShell GUIs
Topic: KeyDown-Event
Replies: 2
Views: 88

KeyDown-Event

Hello everyone, at the time i build a new GUI for some employees. They can search a AD-User and can edit him. Here are the question/problem: When i create a KeyDown-Event in a textbox, it works fine in the PowerShell Studio. But if build an executable file it wont work. How i tried it: $textboxUsern...
by bhnuser
Fri Jan 11, 2019 2:57 am
Forum: PowerShell GUIs
Topic: Change picture with a Buttonclick
Replies: 4
Views: 323

Re: Change picture with a Buttonclick

Just assign a new image to the control in the buttonclick. $picturebox1.Image = [System.Drawing.Image]::FromFile($filename) Thank you for the helpful question. But now is my question how i can add image-files to my project so i can open them in a imagebox from every computer. I tried to add them in...
by bhnuser
Tue Jan 08, 2019 6:14 am
Forum: PowerShell GUIs
Topic: Change picture with a Buttonclick
Replies: 4
Views: 323

Change picture with a Buttonclick

Hello everybody, i have a short question. Is it possible to change a picture in a picturebox when i click a button? My problem is, that i can show one picture over the properties and dont know how to change it in the script. Btw.: I attached the picture to my PowerShell Studio Project. The Project s...
by bhnuser
Thu Oct 25, 2018 2:34 am
Forum: Windows PowerShell
Topic: Display specific OU of an AD-Object
Replies: 9
Views: 862

Re: Display specific OU of an AD-Object

I thank you very much. It works for me now. I realized it now with your first suggest: $distinguishedName = CN=Test\, User,OU=NewUsers,OU=_Global,OU=Country,DC=company,DC=com or $distinguishedName = CN=Test\, User2,OU=Users,OU=DE,OU=Country,DC=company,DC=com or $distinguishedName = CN=Test\, User3,O...
by bhnuser
Thu Oct 25, 2018 1:55 am
Forum: Windows PowerShell
Topic: Display specific OU of an AD-Object
Replies: 9
Views: 862

Re: Display specific OU of an AD-Object

Thank you. This is very helpful for me. It's a little bit tricky. What i want is to display only the string "_Global", "DE" or "IN". This OUs are below the OU Country. Like: company.com/Country/_Global, company.com/Country/DE or company.com/Country/IN The rest of the path should be ignored. But i wi...