Search found 40 matches

by PXL_Posh
Thu Nov 07, 2019 6:18 am
Forum: PrimalScript
Topic: start-job alternate credentials directory name is invalid
Replies: 11
Views: 1592

Re: start-job alternate credentials directory name is invalid

Thank you all for your help Alexander Riedel and mxtrinidad! The password using "| ConvertTo-SecureString -Key (1..32)" wouldn't work for you unless your encrypted password was generated using -key (1..32) Apologies, csv is used elsewhere but in sanitizing it for the post I made some mistakes. The t...
by PXL_Posh
Wed Nov 06, 2019 2:19 pm
Forum: PrimalScript
Topic: start-job alternate credentials directory name is invalid
Replies: 11
Views: 1592

Re: start-job alternate credentials directory name is invalid

Issue ODDLY, resolved: [environment]::CurrentDirectory='C:\Windows\System32\WindowsPowerShell\v1.0' $sqlJob = Start-Job -ScriptBlock $sqlScript -Credential $cred -ArgumentList ($arg1, $arg2) $recJob = Receive-Job -Job $sqlJob -Wait -ErrorAction Inquire The args are provided in the event someone need...
by PXL_Posh
Wed Nov 06, 2019 11:22 am
Forum: PrimalScript
Topic: start-job alternate credentials directory name is invalid
Replies: 11
Views: 1592

Re: start-job alternate credentials directory name is invalid

how would that differ from PrimalScript console (ctrl+F8), to ISE to standard running of PrimalScript? Ideally, this would work no matter the source system. Earlier in the year a version of this construct was generated and continues to work on two separate systems. It's not the same query but it is ...
by PXL_Posh
Wed Nov 06, 2019 9:47 am
Forum: PrimalScript
Topic: start-job alternate credentials directory name is invalid
Replies: 11
Views: 1592

Re: start-job alternate credentials directory name is invalid

ISE is tested fresh each time. It is closed and reopened.
Even between user sessions the script will complete successfully

PrimalScript ribbon has v5 selected
With and without elevation
Also with and without STA mode


Ctrl+F8 worked
by PXL_Posh
Wed Nov 06, 2019 9:07 am
Forum: PrimalScript
Topic: start-job alternate credentials directory name is invalid
Replies: 11
Views: 1592

start-job alternate credentials directory name is invalid

Product, version and build: SAPIEN PrimalScript 2019 - v7.6.135.0 - 64 bit Operating system: 64 bit OS: Windows 10 Enterprise *** Please add details and screenshots as needed below. *** When attempting to use alternate credentials an error is being thrown. ERROR: [localhost] An error occurred while ...
by PXL_Posh
Tue Jun 11, 2019 10:17 am
Forum: Windows PowerShell
Topic: PSJob not running for v5 Host (silent)
Replies: 5
Views: 2191

Re: PSJob not running for v5 Host (silent)

jvierra wrote:
Tue Jun 11, 2019 9:56 am
This looks to be part of WPF code. Are you trying to call a function in a WPF form?
Yes, I am calling the fuction in a WPF form.
by PXL_Posh
Tue Jun 11, 2019 10:17 am
Forum: Windows PowerShell
Topic: PSJob not running for v5 Host (silent)
Replies: 5
Views: 2191

Re: PSJob not running for v5 Host (silent)

Thank you for your reply davidc. Unfortunately, I've tried a console host and nothing spits out. I tried again for the sake of testing and no errors. I also ran the debug in powershell studio. SAPIEN PowerShell V5 Host (Command line) The receive-job has the -wait parameter which I hope is sufficient...
by PXL_Posh
Tue Jun 11, 2019 9:31 am
Forum: Windows PowerShell
Topic: PSJob not running for v5 Host (silent)
Replies: 5
Views: 2191

PSJob not running for v5 Host (silent)

Product, version and build: 64 bit version of product: Powershell Studio 2019 v5.6.156 Operating system: 64 bit Windows 10 Enterprise Using sychronized hashtable and xml with STA The script will not generate the xml nor the csv. In addition, I'm not seeing the additional window indicating the psjob ...
by PXL_Posh
Wed Jun 13, 2018 11:16 am
Forum: PowerShell Studio
Topic: MSI plus batch file
Replies: 5
Views: 1305

Re: MSI plus batch file

How would I organize that in the setup? File: cmd.exe Folder: C:\Windows\Sysnative Argument: /c [installdir]file.bat Did not accept folder. File: C:\Windows\Sysnative\cmd.exe Folder: ( cannot be blank ) INSTALLDIR Argugment: /c [installdir]file.bat did not like command File: cmd.exe Folder: INSTALLD...