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 5 years and 3 months 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.
$buttonCallChildForm_Click={
#TODO: Place custom script here
if((Show-ChildForm_psf) -eq 'OK')
{
}
}
The child form is a tool for deleting device in SCCM so the user need access right to the configmgr module and the cmsite psdrive.
What solutions is possible to achieve above functionality
Attachments
2019-01-02_07-51-43.gif (45.17 KiB) Viewed 2669 times
1. Call another exe with start-process -credential
a single form exe created from psf can you pass param to this exe or do you need to build it as a project?
2. Convert the project main to support param.
Main call it self with start-process -credential but with param to start up the right sub psf inside the main.
way 1 would be easy to do but then i have a lot of files to manage. way 2 keep it all in same project....simpler to manage
have work a little with your demo...is there a way open more then one sub psf form? right now it lock so you need to close a open subform before you can start a new subform?
This topic is 5 years and 3 months 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.