Search found 28 matches

by PS_Ross
Mon Jul 16, 2018 6:11 am
Forum: PowerShell GUIs
Topic: 365 EWS Impersonation
Replies: 11
Views: 607

Re: 365 EWS Impersonation

Looks like that did it. Thanks bud.
by PS_Ross
Fri Jul 13, 2018 12:39 pm
Forum: PowerShell GUIs
Topic: 365 EWS Impersonation
Replies: 11
Views: 607

Re: 365 EWS Impersonation

If that is the output, then it is not working correctly. Sure the command is executing successfully, but that is not a correct recipient filter. I am not sure your experience with EWS Impersonation, but the output of the "RecipientFilter" command should not just be "DC=$groupdn", it should reflect t...
by PS_Ross
Fri Jul 13, 2018 10:57 am
Forum: PowerShell GUIs
Topic: 365 EWS Impersonation
Replies: 11
Views: 607

Re: 365 EWS Impersonation

I was using your suggestion from your previous post, think about how I am asking for help. So if you recommend something within reason, I am going to try it. Go back and look at your previous post where you literally typed the following line yourself; New-ManagementScope -Name $ScopeName -RecipientR...
by PS_Ross
Fri Jul 13, 2018 7:15 am
Forum: PowerShell GUIs
Topic: 365 EWS Impersonation
Replies: 11
Views: 607

Re: 365 EWS Impersonation

Yea, they definitely are tricky at times. So the top option you mentioned above won't work because we need the brackets, however I tried the 2nd option, which yields something slightly different. It looks like it tried to read it, but only took part of it. I have attached a screen shot of the output...
by PS_Ross
Fri Jul 13, 2018 6:38 am
Forum: PowerShell GUIs
Topic: 365 EWS Impersonation
Replies: 11
Views: 607

Re: 365 EWS Impersonation

Thanks for the response jvierra.

The syntax requires those characters, the command cannot be run without them. I did try your suggestion just so I could show you the error, I have attached a screenshot of the error for your reference.
by PS_Ross
Fri Jul 13, 2018 6:09 am
Forum: PowerShell GUIs
Topic: 365 EWS Impersonation
Replies: 11
Views: 607

365 EWS Impersonation

When trying to create code for EWS Impersonation, I am running into an issue with the -RecipientRestrictionFilter parameter. Using the following code in my program; $ScopeName = $textbox5.Text $GroupDN = $textbox6.Text New-ManagementScope -Name:$ScopeName -RecipientRestrictionFilter:{memberofgroup -...
by PS_Ross
Wed Apr 11, 2018 8:02 am
Forum: PowerShell GUIs
Topic: Datagridview selected cells
Replies: 6
Views: 847

Re: Datagridview selected cells

Disregard please. I was able to get the selected cell value by using $datagridview1.SelectedCells[0].Value

Thank you for the response.
by PS_Ross
Wed Apr 11, 2018 7:42 am
Forum: PowerShell GUIs
Topic: Datagridview selected cells
Replies: 6
Views: 847

Re: Datagridview selected cells

Ok, that much I figured out when the code I tried didn't work.. So I am aware of that much up to this point. When the program is run, and the datagrid populates the data I am having fed to it from a powershell query, a user will be able to click on those results.. Screen shot below.. https://1drv.ms...
by PS_Ross
Wed Apr 11, 2018 6:59 am
Forum: PowerShell GUIs
Topic: Datagridview selected cells
Replies: 6
Views: 847

Datagridview selected cells

I am trying to capture the selected cells in a datagridview, using a multi-select datagrid. So far I have something like this, although not working..

$selections = $datagridview1.SelectedCells()
foreach ($item in $selections)
{
Do stuff
}