Search found 13620 matches

by jvierra
Thu Jun 27, 2019 9:47 pm
Forum: Windows PowerShell
Topic: Combine the Get-ADUser Powershell script to produce single result
Replies: 8
Views: 1114

Re: Combine the Get-ADUser Powershell script to produce single result

You are trying to output collection objects. You will have to write a computed select to convert them to delimited strings. Note that I didn't attempt to fix anything but what you first asked about. To get the format of the objects in a format you want you will have to write the code to do that. Jus...
by jvierra
Thu Jun 27, 2019 7:39 pm
Forum: Windows PowerShell
Topic: Combine the Get-ADUser Powershell script to produce single result
Replies: 8
Views: 1114

Re: Combine the Get-ADUser Powershell script to produce single result

I did find one error in the code you copied and pasted. Also there is an issue with HomeDB property which the following will overcome. $properties = 'homeMDB,msExchRemoteRecipientType,msExchRecipientDisplayType,msExchRecipientTypeDetails,proxyAddresses' -split ',' $CSVPath = 'C:\Results.CSV' Get-ADU...
by jvierra
Thu Jun 27, 2019 7:17 pm
Forum: Windows PowerShell
Topic: Combine the Get-ADUser Powershell script to produce single result
Replies: 8
Views: 1114

Re: Combine the Get-ADUser Powershell script to produce single result

You need to remove the export and see if you are getting any results. The where is what you wrote but that does not mean that there are any records that meet those criteria. To debug a where clause just run each element one at a time to see if it gives results then ad elements back one at a time to ...
by jvierra
Wed Jun 26, 2019 11:28 am
Forum: PowerShell GUIs
Topic: Circular Light Indictor Widget
Replies: 6
Views: 262

Re: Circular Light Indictor Widget

Same control and code but altered for new look in the designer.
led3.jpg
led3.jpg (9.65 KiB) Viewed 239 times
by jvierra
Wed Jun 26, 2019 11:24 am
Forum: PowerShell GUIs
Topic: Circular Light Indictor Widget
Replies: 6
Views: 262

Re: Circular Light Indictor Widget

Here is a cute little toggle LED.
by jvierra
Wed Jun 26, 2019 11:02 am
Forum: PowerShell GUIs
Topic: Circular Light Indictor Widget
Replies: 6
Views: 262

Re: Circular Light Indictor Widget

Here is a quick and dirty example. You can resize the LED without changing the code.

Using images would allow you to use pictures of LEDs or stoplights as an annunciator/indicator.
by jvierra
Wed Jun 26, 2019 10:33 am
Forum: PowerShell GUIs
Topic: Circular Light Indictor Widget
Replies: 6
Views: 262

Re: Circular Light Indictor Widget

I would just use an picture control and paint a circular color in the center. Set the paint color to red or green as needed. It shouldn't take more thanabout 5 lines of code. You could also just add two images (LED) and set the image as needed. A third possibility is to use the XAML/WPF custom contr...
by jvierra
Wed Jun 26, 2019 9:33 am
Forum: Windows PowerShell
Topic: foreach loop randomizes sort-object list
Replies: 1
Views: 606

Re: foreach loop randomizes sort-object list

The code does start at the top of the sorted objects. The files are sorted by name. Sort by date to get the latest last.
by jvierra
Wed Jun 26, 2019 7:46 am
Forum: PowerShell GUIs
Topic: running part of a script with different credentials.
Replies: 5
Views: 324

Re: running part of a script with different credentials.

You cannot pass a security object between sessions. Using credentials creates a new security session.

Place the whole script in the job and it should work as expected.
by jvierra
Tue Jun 25, 2019 12:40 pm
Forum: Windows PowerShell
Topic: Recent Items in ISE
Replies: 7
Views: 822

Re: Recent Items in ISE

The correct name for these aer "jump lists" and they can only be cleared by clearing all jump lists.

The data for individual jump lists is stored here:

$env:USERPROFILE\AppData\Roaming\Microsoft\Windows\Recent\AutomaticDestinations