Search found 12093 matches

by jvierra
Tue Apr 17, 2018 4:28 pm
Forum: PowerShell GUIs
Topic: Custom Form with TransparencyKey and controls
Replies: 2
Views: 70

Re: Custom Form with TransparencyKey and controls

Also you will need to set the controls background to match the key and only those controls will be transparent. The transparent controls will not accept any input.

See this for complete details: https://msdn.microsoft.com/en-us/librar ... .110).aspx
by jvierra
Tue Apr 17, 2018 4:25 pm
Forum: PowerShell GUIs
Topic: Custom Form with TransparencyKey and controls
Replies: 2
Views: 70

Re: Custom Form with TransparencyKey and controls

I think you have some other issue unless you are setting the control to "Transparent" which effectively disables the form.
by jvierra
Tue Apr 17, 2018 9:01 am
Forum: PowerShell GUIs
Topic: Management Groups in Listview
Replies: 3
Views: 151

Re: Management Groups in Listview

Here is how to correctly load a ListBox from an array of strings: $users = Get-AdUser -SearchBase 'OU=_Global,OU=Country,DC=lenze,DC=com' -Filter * [void]$listUsername.Items.AddRange($users.Name) Use the "SelectedIndexChanged" event of the ListBox to populate the list of groups. Your full question i...
by jvierra
Tue Apr 17, 2018 6:14 am
Forum: Windows PowerShell
Topic: Autocomplet select event
Replies: 1
Views: 63

Re: Autocomplet select event

I would suggest using an auto-complete list or combo box and use the "SelectedIndexChanged" event to detect the selection.

The "Validated" event of the textbox is how you could do it with a text box.
by jvierra
Mon Apr 16, 2018 4:39 pm
Forum: Windows PowerShell
Topic: Executing Remote Script
Replies: 10
Views: 361

Re: Executing Remote Script

Yes - that was my original assessment. You need to use correct credentials on each share. You solution is NOT a remote copy. It is just a normal copy.
After mapping the drives RoboCopy will work with either the drive letter or the UNC. This is normal Windows behavior.
by jvierra
Mon Apr 16, 2018 12:17 pm
Forum: Windows PowerShell
Topic: Executing Remote Script
Replies: 10
Views: 361

Re: Executing Remote Script

Log into the remote system and run the copy. Without WsMan there is no other option.
by jvierra
Mon Apr 16, 2018 11:07 am
Forum: Windows PowerShell
Topic: Executing Remote Script
Replies: 10
Views: 361

Re: Executing Remote Script

RC can copy UNC paths easily.
If the NAS does not have WsMan enabled or if you are no an admin on the NAS then you cannot use a remote session.

RDP has nothing to do with remoting.
by jvierra
Mon Apr 16, 2018 10:18 am
Forum: Windows PowerShell
Topic: Executing Remote Script
Replies: 10
Views: 361

Re: Executing Remote Script

If you don't have permissions on a NAS then you cannot gain access with a PsSession as a NAS is not a PsRemotable device except if it is a Windows NT based NAS and has WsMan enabled. For all others you must have been granted the correct permissions to access the system. These are the most obvious is...
by jvierra
Mon Apr 16, 2018 7:24 am
Forum: Windows PowerShell
Topic: Populating Variables in External Text File
Replies: 2
Views: 149

Re: Populating Variables in External Text File

Example: $body = @' <pre> Dear {0}, Your free gift of {1} for being a dear customer has been shipped on {2} <\pre> '@ $body -f 'Jane Dough', 'vanilla cake', '12/31/2031' https://blogs.technet.microsoft.com/heyscriptingguy/2015/12/31/powertip-use-here-strings-with-powershell/ The "-f" operator is the...
by jvierra
Sun Apr 15, 2018 12:11 pm
Forum: PowerShell GUIs
Topic: ListView subitems not showing in Tile view
Replies: 10
Views: 209

Re: ListView subitems not showing in Tile view

It appears you may have posted the wrong form as this form has no data and appears to have a random array of panels and other controls.

Post just a simple ListView showing the issue you wish help with.

Attached is an example of some of the ways to use a ListView