Search found 15 matches
- Sat Sep 29, 2018 6:46 pm
- Forum: PowerShell GUIs
- Topic: openfiledialog control set and jobs with credentials
- Replies: 19
- Views: 5430
Re: openfiledialog control set and jobs with credentials
My mistake. I posted in Powershell Studio, which seemed to say it was handled by Sapien techs, but apparently got bumped to this forum and didn't realized the difference. This is the first time I've been in these forums for more than "what checkbox makes this happen?" questions. For your t...
- Sat Sep 29, 2018 6:10 pm
- Forum: PowerShell GUIs
- Topic: openfiledialog control set and jobs with credentials
- Replies: 19
- Views: 5430
Re: openfiledialog control set and jobs with credentials
Really? You need to be more specific if I'm to understand your help. The difference between working and not working is a control set from PowerShell Studio. The. Code. Works... The. System. Works. PowerShell Studio, as it's installed on my system, can only find that working condition under specific ...
- Sat Sep 29, 2018 5:22 pm
- Forum: PowerShell GUIs
- Topic: openfiledialog control set and jobs with credentials
- Replies: 19
- Views: 5430
Re: openfiledialog control set and jobs with credentials
mainform.psf is attached I've been playing with debugging. Changed Cred_click to $buttonCred_Click={ $textbox1.Text += "`r`n***Cred_click***" try { $job = start-job -Name "withcreds" -Credential $mycreds -ScriptBlock { "Incredible!" } -ErrorAction Stop } catch{ $textbox...
- Sat Sep 29, 2018 4:17 pm
- Forum: PowerShell GUIs
- Topic: openfiledialog control set and jobs with credentials
- Replies: 19
- Views: 5430
Re: openfiledialog control set and jobs with credentials
OK, this is as simple as it gets... Mainform: $form1_Load={ #TODO: Initialize Form Controls here } $buttonCred_Click={ #TODO: Place custom script here $job = start-job -Name "withcreds" -Credential $mycreds -ScriptBlock { "Incredible!" } Start-Sleep -Seconds 3 $textbox1.Text = $j...
- Sat Sep 29, 2018 3:05 pm
- Forum: PowerShell Studio
- Topic: get-wmiobject causes stream of errors in output window
- Replies: 1
- Views: 2386
get-wmiobject causes stream of errors in output window
Product, version and build: PowerShell Studio 2018 v5.5.154 32 or 64 bit version of product:64 Operating system: Win10 32 or 64 bit OS: 64 I'm referencing a post from Aug 11, 2016 "gwmi causes wmi browser to start slowing things down" https://www.sapien.com/forums/viewtopic.php?f=12&t=...
- Fri Sep 28, 2018 4:04 pm
- Forum: PowerShell GUIs
- Topic: openfiledialog control set and jobs with credentials
- Replies: 19
- Views: 5430
Re: openfiledialog control set and jobs with credentials
Failure: (from OP) ERROR: [localhost] An error occurred while starting the background process. Error reported: The directory name is invalid. ERROR: + CategoryInfo : OpenError: (localhost:String) [], PSRemotingTransportException ERROR: + FullyQualifiedErrorId : -2147467259,PSSessionStateBroken This ...
- Fri Sep 28, 2018 3:12 pm
- Forum: PowerShell GUIs
- Topic: openfiledialog control set and jobs with credentials
- Replies: 19
- Views: 5430
Re: openfiledialog control set and jobs with credentials
Possibly... but I have, in recent iterations, designed the simplest code necessary to take input from a form and submit the appropriate script to the job, and return results to the form. Do you see the latest code as 'way over complicated'? or the previous? because that's about all the code in the p...
- Fri Sep 28, 2018 2:04 pm
- Forum: PowerShell GUIs
- Topic: openfiledialog control set and jobs with credentials
- Replies: 19
- Views: 5430
Re: openfiledialog control set and jobs with credentials
Yes, thank you. Sorry my POC code was a little rough. But please note the OP (original post)... it worked. How's this? $jobscript = { param ($casenumber,$inputfolder,$outputfolder,$logfolder,$inplace,$recurse) $arguments = @{ Folder = $inputfolder; LogFile = ($logfolder + "\$casenumber-Unprotec...
- Fri Sep 28, 2018 12:14 pm
- Forum: PowerShell GUIs
- Topic: openfiledialog control set and jobs with credentials
- Replies: 19
- Views: 5430
Re: openfiledialog control set and jobs with credentials
Here's all that code that might run during my 'experiments'. The dialogs were all brought in with "Textbox - Browse for File" and "Textbox - Browse for Folder" control sets. Log-Session event is just a custom function that formats text for the log window on the form. $txt... is a...
- Fri Sep 28, 2018 10:39 am
- Forum: PowerShell GUIs
- Topic: openfiledialog control set and jobs with credentials
- Replies: 19
- Views: 5430
openfiledialog control set and jobs with credentials
Product, version and build: PowerShell Studio 2018 v5.5.154 32 or 64 bit version of product: 64 Operating system: Win10 32 or 64 bit OS: 64 running everything in STA mode I have a GUI app that collects file and folder information from the user with folderbrowserdialogs and an openfiledialog control ...