Search found 12391 matches

by jvierra
Fri Jul 20, 2018 1:46 am
Forum: PowerShell GUIs
Topic: GUI hang when specific script engine is chosen
Replies: 3
Views: 91

Re: GUI hang when specific script engine is chosen

See the following to learn how to best use Azure with Forms: https://www.sapien.com/blog/2018/07/19/ ... ound-jobs/
by jvierra
Fri Jul 20, 2018 12:20 am
Forum: Windows PowerShell
Topic: Bulk enable the AD mail user using PowerShell ?
Replies: 1
Views: 58

Re: Bulk enable the AD mail user using PowerShell ?

Just execute the command in a loop once for each user.
by jvierra
Fri Jul 20, 2018 12:19 am
Forum: PowerShell GUIs
Topic: Get-Aduser and DGV
Replies: 9
Views: 156

Re: Get-Aduser and DGV

To get group membership use

Get-ADPrincipalGroupMembership userid

Please do not post pictures of code. They are mostly unreadable on the web and cannot be copied.
by jvierra
Fri Jul 20, 2018 12:17 am
Forum: Windows PowerShell
Topic: PowerShell script to compare files on multiple UNC shared folder and show the difference only as .CSV table ?
Replies: 6
Views: 104

Re: PowerShell script to compare files on multiple UNC shared folder and show the difference only as .CSV table ?

Note that the correct method of using this is:

Compare-Object $a $b |Where {$_.SideIndicator -eq '=>'} | Select InputObject
by jvierra
Fri Jul 20, 2018 12:03 am
Forum: Windows PowerShell
Topic: PowerShell script to compare files on multiple UNC shared folder and show the difference only as .CSV table ?
Replies: 6
Views: 104

Re: PowerShell script to compare files on multiple UNC shared folder and show the difference only as .CSV table ?

You will have to debug the script since we cannot run it.

Do the script at a prompt one line at a time and check the results.
by jvierra
Thu Jul 19, 2018 11:57 pm
Forum: PowerShell GUIs
Topic: Get-Aduser and DGV
Replies: 9
Views: 156

Re: Get-Aduser and DGV

I cannot know what you are doing if you don't post the correct code.
by jvierra
Thu Jul 19, 2018 11:45 pm
Forum: PowerShell GUIs
Topic: Get-Aduser and DGV
Replies: 9
Views: 156

Re: Get-Aduser and DGV

You are only using Get-AdUser. The code does not get group membership.
by jvierra
Thu Jul 19, 2018 11:37 pm
Forum: PowerShell GUIs
Topic: Get-Aduser and DGV
Replies: 9
Views: 156

Re: Get-Aduser and DGV

Works fine for me.

One user - one row.
by jvierra
Thu Jul 19, 2018 11:20 pm
Forum: PowerShell GUIs
Topic: GUI hang when specific script engine is chosen
Replies: 3
Views: 91

Re: GUI hang when specific script engine is chosen

Yes. A loop will always hang a form. A form in PowerShell has only one thread. A loop blocks that thread and freezes the form.

See: https://info.sapien.com/index.php/guis/ ... sive-loops