ISE vs Jobform

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 6 years and 1 month old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: ISE vs Jobform

Post by jvierra »

Each job calls completed when it is finished.

To detect if the current user is an admin on the current machine use this:

[bool]([System.Security.Principal.WindowsIdentity]::GetCurrent().Groups |?{$_ -eq 'S-1-5-32-544'})

To find any user in Administrators:
[bool](Get-LocalGroupMember administrators |?{$_.Name -eq 'DOMAIN\jsmith'})
This topic is 6 years and 1 month old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked