Search found 251 matches

by mxtrinidad
Tue Nov 14, 2017 12:11 pm
Forum: PowerShell GUIs
Topic: Output is formatted differently after build
Replies: 17
Views: 2181

Re: Output is formatted differently after build

Curious! Can you please provide the PowerShell Studio version?

Thanks
by mxtrinidad
Tue Nov 14, 2017 10:03 am
Forum: PowerShell GUIs
Topic: Output is formatted differently after build
Replies: 17
Views: 2181

Re: Output is formatted differently after build

Try the following command as I've seen it working with RichTextBox.

"... | Out-string -width 1000"

Hope this help!
by mxtrinidad
Wed Nov 01, 2017 12:08 pm
Forum: Windows PowerShell
Topic: powershell script to login in remote machine
Replies: 7
Views: 3076

Re: powershell script to login in remote machine

Thanks JVierra! This is Great information.
by mxtrinidad
Wed Nov 01, 2017 10:48 am
Forum: Windows PowerShell
Topic: powershell script to login in remote machine
Replies: 7
Views: 3076

Re: powershell script to login in remote machine

I agree with JVierra! Take in to consideration all security guidelines.
Always protect network credentials.
by mxtrinidad
Wed Nov 01, 2017 10:24 am
Forum: Windows PowerShell
Topic: powershell script to login in remote machine
Replies: 7
Views: 3076

Re: powershell script to login in remote machine

Keep in mind! If you're sharing this script, you're giving away the credential information.
So, this is for you're own use.

:)
by mxtrinidad
Wed Nov 01, 2017 10:22 am
Forum: Windows PowerShell
Topic: powershell script to login in remote machine
Replies: 7
Views: 3076

Re: powershell script to login in remote machine

If your intention is not to be prompt for credentials, you could use the following code snippet to accomplish it: ## - Code top build credential: $MyUserName = "Domain\MyUserName"; $MyPassword = ConvertTo-SecureString '$pwd1n!' -asplaintext -force; $MyCredentials2 = new-object -typename System.Manag...
by mxtrinidad
Wed Oct 18, 2017 5:47 pm
Forum: PowerShell Studio
Topic: Unwanted newline when accessing win32_LogicalDisk
Replies: 8
Views: 1467

Re: Unwanted newline when accessing win32_LogicalDisk

I did get the same results you describe but the code needed some improvements. The for-each could be change to use the select-object, which is the one (and must use) effective way to got thru the psobject. Then, the output formatting can vary (look at .NET Documentation on String formatting: https:/...
by mxtrinidad
Wed Oct 11, 2017 8:20 am
Forum: PowerShell GUIs
Topic: Hiding file in list box
Replies: 4
Views: 771

Re: Hiding file in list box

When you use 'get-childitem', you'll have the file "extention" property available. This way you can narrow the selection to be listed.
Of course, it's possible to use both the '-filter' parameter or use the "... | where-object{.." to narrow the files.
by mxtrinidad
Wed Oct 11, 2017 8:11 am
Forum: PowerShell GUIs
Topic: Run Code after Form Load
Replies: 2
Views: 930

Re: Run Code after Form Load

In a multi-form application, I normally a main form call other form(s) using a button(s) in this simple way: $MainForm_Load={ #TODO: Initialize Form Controls here } $buttonCallChildForm_Click={ #TODO: Place custom script here if((Show-ChildForm_psf) -eq 'OK') { } } Although, you can do this manually...
by mxtrinidad
Tue Oct 10, 2017 1:18 pm
Forum: PowerShell Studio
Topic: Writing Help Files
Replies: 2
Views: 353

Re: Writing Help Files

I you're talking about help file(s) for individual functions and/or module functions, in PowerShell Studio you can use "Generate Comment Based Help". At the same time the "PowerShell HelpWriter" product can assist in writing the Help file(s) structures which could be imported into PowerShell Studio....