Search found 12660 matches

by jvierra
Fri Sep 14, 2018 2:29 pm
Forum: PowerShell GUIs
Topic: DoubleClick Treeview Node problem
Replies: 5
Views: 162

Re: DoubleClick Treeview Node problem

The following code will block the annoying expanding and collapsing with a double-click. $treeviewNav_BeforeExpand=[System.Windows.Forms.TreeViewCancelEventHandler]{ #Event Argument: $_ = [System.Windows.Forms.TreeViewCancelEventArgs] if($_.Action -eq 'ByMouse'){$_.Cancel = $true} } You can now use ...
by jvierra
Fri Sep 14, 2018 2:08 pm
Forum: PowerShell GUIs
Topic: DoubleClick Treeview Node problem
Replies: 5
Views: 162

Re: DoubleClick Treeview Node problem

Google knows not where-from they speak. The only way to modify the double-click is to create a new treeview which is why most programmers never use it to manage checkboxes. Even "overriding" the class cannot do this. You issue has been an issue with programmers since the fist version of the control ...
by jvierra
Fri Sep 14, 2018 1:24 am
Forum: PowerShell GUIs
Topic: DoubleClick Treeview Node problem
Replies: 5
Views: 162

Re: DoubleClick Treeview Node problem

Here is the official Microsoft method from the SDK. It uses only one recursive function.
by jvierra
Thu Sep 13, 2018 6:11 pm
Forum: PowerShell GUIs
Topic: DoubleClick Treeview Node problem
Replies: 5
Views: 162

Re: DoubleClick Treeview Node problem

Try this:
by jvierra
Thu Sep 13, 2018 2:48 pm
Forum: Windows PowerShell
Topic: Adding and Removing permissions from shared folder
Replies: 3
Views: 114

Re: Adding and Removing permissions from shared folder

On a folder or on a share? You cannot use either to alter a share. Both only change the underlying folder.
ICACLS works correctly in PowerShell. No need to change it.
by jvierra
Thu Sep 13, 2018 9:41 am
Forum: Windows PowerShell
Topic: outlook email with body and signature
Replies: 6
Views: 131

Re: outlook email with body and signature

Try it like this. $recipients = 'jjones@domain.com' $subject = 'Notice of closure for Incident' $ol = New-Object -ComObject Outlook.Application $ns = $ol.GetNameSpace("MAPI") $mailItem = $ol.CreateItem(0) $insp = $mailItem.GetInspector() [Void]$mailItem.Recipients.Add($recipients) $mailItem.Subject ...
by jvierra
Thu Sep 13, 2018 9:37 am
Forum: Windows PowerShell
Topic: Connection error
Replies: 8
Views: 158

Re: Connection error

You cannot remotely execute many commands because of the "second hop" restriction. The error says that this is the cause as you are getting an error trying to connect to the farm. This is a limitation on all Windows remoting and is not caused by PSS. "Cannot access the local farm" This is because th...
by jvierra
Thu Sep 13, 2018 9:05 am
Forum: Windows PowerShell
Topic: outlook email with body and signature
Replies: 6
Views: 131

Re: outlook email with body and signature

To preserve the inserted signature do the following.

$oMailMsg.Body = 'Hello World' + $oMailMsg.Body
by jvierra
Thu Sep 13, 2018 9:03 am
Forum: Windows PowerShell
Topic: Connection error
Replies: 8
Views: 158

Re: Connection error

PowerShell Studio just runs the code in PowerShell. No code runs under PSS. Your question is about how to use a PS command and not how to use PSS.

Please post a simple example of your PSF file so we can look at what you are doing.
by jvierra
Thu Sep 13, 2018 8:52 am
Forum: Windows PowerShell
Topic: Adding and Removing permissions from shared folder
Replies: 3
Views: 114

Re: Adding and Removing permissions from shared folder

When you need companion CmdLets use help to find them.

help get-acl -online

The help will list the paired commands and will give you examples.