Search found 96 matches

by owinsloe
Tue Jul 10, 2018 7:16 pm
Forum: PowerShell GUIs
Topic: ColorDialog
Replies: 13
Views: 3152

Re: ColorDialog

Storing the color across sessions...this might help
https://trevorsullivan.net/2016/07/25/p ... variables/
Good luck
by owinsloe
Mon Apr 09, 2018 5:04 pm
Forum: Former and Future Customers - Questions
Topic: Additional seats for PS Studio best practice
Replies: 1
Views: 18995

Additional seats for PS Studio best practice

To help you better we need some information from you. *** Please fill in the fields below if you are currently using a Trial Version of the Product. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this infor...
by owinsloe
Wed Dec 13, 2017 1:57 pm
Forum: PowerShell GUIs
Topic: How to open a new form from a form
Replies: 6
Views: 2131

Re: How to open a new form from a form

If you only want to prompt the user for a response, then I use a popup function quite a lot. I cant recall where I grabbed this from, but it is very useful... Function Show-PopUp { [CmdletBinding()][OutputType([int])] Param ( [parameter(Mandatory = $true, ValueFromPipeLine = $true)][Alias("Msg")][st...
by owinsloe
Thu Oct 19, 2017 12:41 pm
Forum: PowerShell Studio
Topic: Unwanted newline when accessing win32_LogicalDisk
Replies: 8
Views: 3598

Re: Unwanted newline when accessing win32_LogicalDisk

Brilliant...as a side effect of setting '$progresspreference = 'SilentlyContinue'' it also got rid of the annoying result display from Invoke-WebRequest that I tried heaps of things to avoid but couldn't. so thanks for that!! # Test internet connectivity $Results = @() $URI = "www.whatismyip.com" Lo...
by owinsloe
Thu Oct 19, 2017 12:30 pm
Forum: PowerShell Studio
Topic: Unwanted newline when accessing win32_LogicalDisk
Replies: 8
Views: 3598

Re: Unwanted newline when accessing win32_LogicalDisk

Thanks Alexander.

I captured the bytes back and compared EXE v ps1 runs and saw the same thing but could not trim or -replace the results.

Became very frustrating. Have tried your suggestion and that did resolve the issue.

Thanks again.
by owinsloe
Wed Oct 18, 2017 6:32 pm
Forum: PowerShell Studio
Topic: Unwanted newline when accessing win32_LogicalDisk
Replies: 8
Views: 3598

Re: Unwanted newline when accessing win32_LogicalDisk

Hmmm, (thanks BTW for looking at this)....I tried using a variation of your example and something still not quite right. I want to store just the drive letter is a simple has for reuse later in my script thus the &script:drive. It now looks like gwmi is causing a newline, possibly because I'm not us...
by owinsloe
Wed Oct 18, 2017 5:38 pm
Forum: PowerShell Studio
Topic: Unwanted newline when accessing win32_LogicalDisk
Replies: 8
Views: 3598

Re: Unwanted newline when accessing win32_LogicalDisk

Hey thanks for that. Yes I was using $_ but added the $Obj as I thought that maybe the $_.free was being interpreted as some internal reserved variable. All good, will give that a whirl.
Cheers
by owinsloe
Wed Oct 18, 2017 4:20 pm
Forum: PowerShell Studio
Topic: Unwanted newline when accessing win32_LogicalDisk
Replies: 8
Views: 3598

Unwanted newline when accessing win32_LogicalDisk

Afternoon, I'm running current PSS and on a Windows 10 computer. I am experiencing an unusual issue when gathering output from the win32_logicaldisk class. When I run the code through PSS the output appears as I would expect. When I compile the code and run the output the return value on the object'...
by owinsloe
Mon Aug 28, 2017 2:10 pm
Forum: PowerShell Studio
Topic: Enable word completion while typing
Replies: 4
Views: 1782

Re: Enable word completion while typing

Disregard please. Found that I needed to uncheck ''Enable word completion while typing' and check ''Autocomplete on exact match only'.
Thanks for the help!!
by owinsloe
Mon Aug 28, 2017 2:04 pm
Forum: PowerShell Studio
Topic: Enable word completion while typing
Replies: 4
Views: 1782

Re: Enable word completion while typing

Thanks (apologies for opening on wrong forum) I'm using PSS2017 and yes , found the option but it's unchecked. The behavior that's occurring is when I enter a variable (eg $t) then space to enter an '=', the $t is expanded from the drop down variable menu to what ever is in first $t... variable in t...