Search found 399 matches
- Wed Nov 01, 2017 12:08 pm
- Forum: PowerShell
- Topic: powershell script to login in remote machine
- Replies: 7
- Views: 8219
Re: powershell script to login in remote machine
Thanks JVierra! This is Great information.
- Wed Nov 01, 2017 10:48 am
- Forum: PowerShell
- Topic: powershell script to login in remote machine
- Replies: 7
- Views: 8219
Re: powershell script to login in remote machine
I agree with JVierra! Take in to consideration all security guidelines.
Always protect network credentials.
Always protect network credentials.
- Wed Nov 01, 2017 10:24 am
- Forum: PowerShell
- Topic: powershell script to login in remote machine
- Replies: 7
- Views: 8219
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.
So, this is for you're own use.
- Wed Nov 01, 2017 10:22 am
- Forum: PowerShell
- Topic: powershell script to login in remote machine
- Replies: 7
- Views: 8219
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 Sy...
- Wed Oct 18, 2017 5:47 pm
- Forum: PowerShell Studio
- Topic: Unwanted newline when accessing win32_LogicalDisk
- Replies: 8
- Views: 4852
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:/...
- Wed Oct 11, 2017 8:20 am
- Forum: PowerShell GUIs
- Topic: Hiding file in list box
- Replies: 4
- Views: 2399
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.
Of course, it's possible to use both the '-filter' parameter or use the "... | where-object{.." to narrow the files.
- Wed Oct 11, 2017 8:11 am
- Forum: PowerShell GUIs
- Topic: Run Code after Form Load
- Replies: 2
- Views: 6855
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...
- Tue Oct 10, 2017 1:18 pm
- Forum: PowerShell Studio
- Topic: Writing Help Files
- Replies: 2
- Views: 1236
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 int...
- Thu Oct 05, 2017 8:47 am
- Forum: PrimalScript
- Topic: Source file not found
- Replies: 6
- Views: 8722
Re: Source file not found
If it helps in any way, I found an article in Kaspersky support on creating an exclusion rules: https://support.kaspersky.com/12160
- Wed Oct 04, 2017 5:21 pm
- Forum: VBScript
- Topic: Scipt to copy folder and delete another
- Replies: 3
- Views: 17773
Re: Scipt to copy folder and delete another
Or, as JVierra said... Learn and use PowerShell: Here's how it would look using both PowerShell with the DOS command you provided, as in PowerShell you can run most (if not all) of the DOS Command: $SourceComputer = "Computer1"; $TargetComputer = "Computer2"; $SourcePath = "...