PSAppDeployToolkit | Project Homepage & Forums | Command Line Interface library
kandi X-RAY | PSAppDeployToolkit Summary
kandi X-RAY | PSAppDeployToolkit Summary
Project Homepage & Forums
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of PSAppDeployToolkit
PSAppDeployToolkit Key Features
PSAppDeployToolkit Examples and Code Snippets
Community Discussions
Trending Discussions on PSAppDeployToolkit
QUESTION
I am trying to use the PSAPPDelpoymenttoolkit. Is there a way I can show a popup to the user that they need to logoff? And when that happens execute the installation code I need? Basically I need to rename a folder that is in use when a user is logged on. So I want them to be prompted to logoff and then have my code rename the folder. Is this possible?
https://psappdeploytoolkit.com/
Something like this would log them off but how can I show a dialog box?
...ANSWER
Answered 2020-Mar-17 at 20:20In the below code, user gets a pop-up. They can click 'OK' or 'Cancel'. If cancel they get another popup that says they clicked cancel. If they click OK then your command will execute. Powershell does not natively have this ability, we had to tap into .net for this.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install PSAppDeployToolkit
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page