Search found 12396 matches

by jvierra
Sun Jul 22, 2018 6:21 am
Forum: Windows PowerShell
Topic: browse folder function problem
Replies: 3
Views: 51

Re: browse folder function problem

The following is a safe way to join multiple path segments.

$global:DestPath = [system.io.path]::Combine($Back_Rec_Path.'BACKUP',$Env:USERNAME)
by jvierra
Sun Jul 22, 2018 2:04 am
Forum: PowerShell GUIs
Topic: Painting new borders on groupboxes produces extra lines on sub-controls
Replies: 5
Views: 121

Re: Painting new borders on groupboxes produces extra lines on sub-controls

Why must you draw a border when a GroupBox has a border property that can be set?

I tested you code and it does not draw around anything but the GroupBox.
by jvierra
Sun Jul 22, 2018 1:39 am
Forum: PowerShell GUIs
Topic: Painting new borders on groupboxes produces extra lines on sub-controls
Replies: 5
Views: 121

Re: Painting new borders on groupboxes produces extra lines on sub-controls

The paint event is submitted to the parent control for every child control. You have to detect when the paint is painting the frame only. A GroupBox is a collection of parts and is the parent to all contained controls.
by jvierra
Fri Jul 20, 2018 1:46 am
Forum: PowerShell GUIs
Topic: GUI hang when specific script engine is chosen
Replies: 3
Views: 114

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: 76

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: 235

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: 121

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