Search found 34 matches

by derhoeppi
Fri Nov 09, 2018 10:12 am
Forum: PowerShell GUIs
Topic: Datagridview datasource
Replies: 19
Views: 2060

Datagridview datasource

Hi, i want to create a GUI with textboxes, buttons and a datagridview. The content of the textboxes should be written to the datagridview. I think the datagridview supports arraylists as datasource. How i could write to an arraylist and update the datagridview? With another button i want to delete s...
by derhoeppi
Tue Sep 11, 2018 5:23 am
Forum: PowerShell GUIs
Topic: Save Checkbox state in a file
Replies: 3
Views: 503

Re: Save Checkbox state in a file

Hi $form.Controls | Where{ $_.GetType().Name -eq 'CheckBox'} | Select Name, Text, Checked this one i save it in an array and then in a file. If i open the GUI i want to load the file and set the checkbox checked state. Now my problem is that i read in the file and my array says that checked is a Sys...
by derhoeppi
Fri Aug 31, 2018 1:17 am
Forum: PowerShell GUIs
Topic: Save Checkbox state in a file
Replies: 3
Views: 503

Save Checkbox state in a file

Hi, if a user run's my GUI Project it should be possible that the user change some preferences. Therefore i create an empty form where i placed some checkboxes and two buttons (Apply / Close). The apply button should call an event or function to collect the state of each checkbox an write them in a ...
by derhoeppi
Fri Aug 03, 2018 3:37 am
Forum: PowerShell GUIs
Topic: Problem with ExecutionPolicy at Startup
Replies: 5
Views: 609

Re: Problem with ExecutionPolicy at Startup

Yes i know that i can change the policy to execute a script. I tested again and recognized that the problems source is not my Powershell Studio script. A little three liner shows the same error. So i have to search for this error in my policies.
by derhoeppi
Fri Aug 03, 2018 3:17 am
Forum: PowerShell GUIs
Topic: Problem with ExecutionPolicy at Startup
Replies: 5
Views: 609

Re: Problem with ExecutionPolicy at Startup

I' dont want to override my own security policy. If i open the deployed script and i'm looking at line 1 char 46 - i cannot find anything to change the execution policy. At line 1 is a comment. The default policy is "RemoteSigned" but for testing i use "Unrestricted" in an isolated environment. I do...
by derhoeppi
Fri Aug 03, 2018 12:22 am
Forum: PowerShell GUIs
Topic: Problem with ExecutionPolicy at Startup
Replies: 5
Views: 609

Problem with ExecutionPolicy at Startup

Hi, in Powershell Studio i exported my script with the deploy function. After them i transfered the exported script to a test system where i run it. At the begin i get an error: Set-ExecutionPolicy : Windows PowerShell updated your execution policy successfully, but the setting is overridden by a po...
by derhoeppi
Fri Mar 02, 2018 1:14 am
Forum: PowerShell GUIs
Topic: Call a function from a different psf script file
Replies: 1
Views: 483

Call a function from a different psf script file

Hi, i'm working on a migration from old shell based scripts to GUI based scripts. In my old scripts are a lot of functions. I created a GUI project and want to import them. But the scope for the functions should be the whole project. Is this possible or should i import the function in every *psf fil...
by derhoeppi
Fri Mar 02, 2018 1:08 am
Forum: PowerShell GUIs
Topic: Form Grid Job Template
Replies: 4
Views: 707

Re: Form Grid Job Template

Thanks it works
by derhoeppi
Thu Mar 01, 2018 6:44 am
Forum: PowerShell GUIs
Topic: Form Grid Job Template
Replies: 4
Views: 707

Re: Form Grid Job Template

Thats the code: $buttonLoad_Click={ #TODO: Place custom script here $script:ADUser = get-aduser -server $DNSZone -Filter * -Property LockedOut, pwdLastSet, PasswordExpired, badpwdcount, lastlogon, enabled | Select GivenName, Surname, SamAccountName, LockedOut, @{ Name = "LastPasswordSet"; Expression...
by derhoeppi
Thu Mar 01, 2018 3:00 am
Forum: PowerShell GUIs
Topic: Form Grid Job Template
Replies: 4
Views: 707

Form Grid Job Template

Hi, i'm using the Grid Form Template to display data which can be search. The data i want to publish would be Active Directory Information. I get my data with Get-ADUser. As properties i used Surname,GivenName, badpwdcount, PasswordExpired. The last to options are boolean values. The function Update...