Search found 7 matches

by MoneySolver
Mon Apr 27, 2020 10:49 am
Forum: PowerShell GUIs
Topic: How do I share a .psf
Replies: 3
Views: 1017

Re: How do I share a .psf

Thanks for that explanation. With that being said, I'm still in need of a solution. Or is the answer that I just have to pass every single piece of information from the controls(which is a lot) as arguments into the processing form (which will house the big function that does the processing).
by MoneySolver
Mon Apr 27, 2020 9:52 am
Forum: PowerShell GUIs
Topic: How do I share a .psf
Replies: 3
Views: 1017

How do I share a .psf

When you look at the properties of a .psf project file, there is a property called "Shared". It's currently greyed out and I cannot figure out how to change this. Now before you go saying "why would you want to make a file shared, that isn't best practice". I'm totally open to su...
by MoneySolver
Tue Mar 17, 2020 11:40 am
Forum: PowerShell GUIs
Topic: Change combobox selected item based on selected item of another combobox
Replies: 1
Views: 932

Re: Change combobox selected item based on selected item of another combobox

This is solved. I stumbled across the findstring method which returns the index number. I then can put that into the combobox.selectedindex property. from my testing, I can only leverage the selectedindex property. trying to set the selectedtext gives weird and inconsistent results. on top of that, ...
by MoneySolver
Tue Mar 17, 2020 10:40 am
Forum: PowerShell GUIs
Topic: Change combobox selected item based on selected item of another combobox
Replies: 1
Views: 932

Change combobox selected item based on selected item of another combobox

I'm looking for assistance on the logic for the following. Please read this request carefully as a lot of people misunderstand what I'm asking. I have two comboboxes that are already pre-populated with items (powershell objects). I want the second combobox's selected item to be determined based on w...
by MoneySolver
Tue Feb 25, 2020 8:56 am
Forum: PowerShell
Topic: Environment variables not recognized when compiled
Replies: 5
Views: 4264

Re: Environment variables not recognized when compiled

I could kind of understand that may be the cause because the service was running under system but after changing the service to run under a domain account, it still could not pull that environment variable. I decided to abandon the dynamic method for now and just leverage the config file by having t...
by MoneySolver
Mon Feb 24, 2020 1:48 pm
Forum: PowerShell
Topic: Environment variables not recognized when compiled
Replies: 5
Views: 4264

Re: Environment variables not recognized when compiled

Thanks for the suggestion but none of the three versions you provided worked. They all returned the same error as my version. "Cannot validate argument on parameter 'ComputerName'. The argument is null or empty". Can you explain why my method was syntactically wrong when it worked in every...
by MoneySolver
Mon Feb 24, 2020 1:12 pm
Forum: PowerShell
Topic: Environment variables not recognized when compiled
Replies: 5
Views: 4264

Environment variables not recognized when compiled

I'm trying to dynamically leverage the currently connected domain controller by using the environment variable $env:LOGONSERVER. More specifically like $DomainController = ($env:LOGONSERVER).Replace("\\", "") That works in every powershell scenario except when I compile it as a W...