Search found 12771 matches

by jvierra
Mon Oct 22, 2018 1:31 am
Forum: Windows PowerShell
Topic: CacheExport
Replies: 7
Views: 146

Re: CacheExport

You cannot use Enter-Pssession in any script. It is intended only for use intreractively.
Use "New-PsSession"
by jvierra
Sun Oct 21, 2018 11:12 am
Forum: Windows PowerShell
Topic: CacheExport
Replies: 7
Views: 146

Re: CacheExport

What does it say? I use remote sessions in PowerShell forms all of the time.
by jvierra
Sun Oct 21, 2018 10:45 am
Forum: Windows PowerShell
Topic: CacheExport
Replies: 7
Views: 146

Re: CacheExport

Since when was that ever true? Of course you can use remote sessions.
by jvierra
Sat Oct 20, 2018 11:14 am
Forum: Windows PowerShell
Topic: CacheExport
Replies: 7
Views: 146

Re: CacheExport

You cannot run Exchange commands remotely. You need to either install the shell or use a remote connection and import the session.

https://blogs.technet.microsoft.com/samdrey/2018/04/06/how-to-load-remote-powershell-session-on-exchange-2010-2013-2016-exchange-online-o365-2/
by jvierra
Fri Oct 19, 2018 2:12 pm
Forum: PowerShell GUIs
Topic: Click button and search AD
Replies: 8
Views: 259

Re: Click button and search AD


$listbox1.DataSource = [collections.arraylist]Get-AdGroup -Filter "Name -like 'SCCM*'"
$listbox1.DisplayMember = 'Name'
by jvierra
Fri Oct 19, 2018 11:25 am
Forum: PowerShell GUIs
Topic: Click button and search AD
Replies: 8
Views: 259

Re: Click button and search AD

Here are some videos that will help you get started with forms:

https://www.youtube.com/user/SAPIENTech/search?query=forms
by jvierra
Fri Oct 19, 2018 10:43 am
Forum: PowerShell GUIs
Topic: Click button and search AD
Replies: 8
Views: 259

Re: Click button and search AD

Yes, that part is easy. I can get the groups and display them in the Richtext window. But then you have to copy/paste the group name into another textbox and then click yet another button. I want to click 1 button that does everything. Or is that not possible? It sounds to me like you want to displ...
by jvierra
Fri Oct 19, 2018 10:33 am
Forum: PowerShell GUIs
Topic: Click button and search AD
Replies: 8
Views: 259

Re: Click button and search AD

Why do you have to copy and paste? What is it you are trying to do? I recommend reading the articles on designing forms for administration. https://info.sapien.com/index.php/guis/gui-design-best-practice/user-interface-design-for-administrators Alos review the lists of articles available on the left...
by jvierra
Fri Oct 19, 2018 9:43 am
Forum: PowerShell GUIs
Topic: Out-DataTable
Replies: 2
Views: 112

Re: Out-DataTable

ConvertTo-DataTable works to add any collection to a DataGridView and with all other data bound controls. What is happening that makes you think it doesn't work. What is it that does not sort correctly? Remember that numbers stored as strings will not sort as expected in ay utility or data function.
by jvierra
Fri Oct 19, 2018 9:38 am
Forum: PowerShell GUIs
Topic: Click button and search AD
Replies: 8
Views: 259

Re: Click button and search AD

The simple answer is to use Get-AdGroup.

$groups = Get-AdGroup -Filter "Name -like 'SCCM*'"

This will fill the variable with all groups that begin with "SCCM".