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'})
ISE vs Jobform
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.
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.