Show-DeferPrompt [Updated]

Thanks a lot! I will try tomorrow Morning! And i will give you a feedback​:blush::wink:

Yessss!!! it’s Work :slight_smile:

Do you know if it’s possible to desactivate the “Select time” Option?

FoldZan1,
Thank you i redownloaded from the same location and this time it works ok. Did you possibly change anything in it? I have another question, once i verified working, i started changing the prompts and language but looks like that again messed up things…
I see in your config.xml there are languages, I assume these are used based on OS language, is there any possibility to enforce one or other language usage without my trying translate and try to find out why things not work after translation :slight_smile: thanks in advance for all your assistance.

Update:
I was able to update InstallationUI to override the default OS language, however the Defer screen language is partially changed. I Will see what else i can do to change rest.

Use the -DeferTimeOptions IncrementalOnly parameter.

Show-DeferPrompt -DeferTimeOptions IncrementalOnly

I didn’t really make it with language options in mind. So you’d have to manage that part.

1 Like

I have been able to set the language.
Have you tested deployment through Intune? I am getting soproadic prompts. It sonetimes prompt 2 times, and third time it doesnt. I need to reboot, wait some time intune to check and then kicks 3rd defer for example.
Whether it is your downloaded code or mine updated same issue. I see the scheduled job is set to run with computername$. When the task is not running , i see the warming is task scheduler history, “task scheduler did not launch task because user domain\computername$ was not logged on when the launching conditions were met. Ensure user is logged or change task definition to allow launching when user is logged off.”
Would you think of any simple solution ?

I have not tested in Intune yet, just MECM. Probably something I’ll be doing in the near future.

2 Likes

Great It’s Works :slight_smile:

Hank you for your help

1 Like

Hi FoldZan1,

I think i am a step further :slight_smile: I changed the code in line 361 in Extension.ps1 as below;

-Setup the Principal and Runlevel
-Get logged in user
$UserId = Get-WmiObject Win32_Process -Filter “Name=‘explorer.exe’” | ForEach-Object { $_.GetOwner() } | Select-Object -Unique -Expand User
$Principal = New-ScheduledTaskPrincipal -UserId $userId -RunLevel Highest
This way I can grab the username and run the task under logged on user as System from Intune. The prompts are now working better. However i am having an issue when I am running the Install (either through Install Now or waiting deferrals to expire), the install starts 2 times. While the first one is running (uninstalling prompt for previous versions of Citrix), another Defer screen pops up to start the install. Would you think any possible solutions why it starts 2 times?

Have you checked the log for the install? C:\Windows\Logs\Software

Couldn’t find anything obvious in the logs. Do you want to double check, i can share with you?

Hello Flodzan,

I would like to know how you use your versions of PSAPP for application deployments on SCCM.

what parameters do you use when creating the application on SCCM, so that the choice to postpone or install is visible to the user?

thanks

Unfortunately back to begin… As user has no admin rights, it didn’t work when changing the principal. It is very interesting that it felt like it was working. So I have some more foundings that i want to share.
I set it back to system now and what happens is that it defers (it prompts as it should be) however after the first defer it proceeds with installation although it looks like its deferring.
I would really appreciate, if you can do a test with intune and see what you will experience.
Kind Regards

Hi, I am getting deferprompt, if non eof the deployment process. running.


If the highlighted process is not running, I am not seeing defer prompt. What should I do to show the defer prompt, even none of the deployment process running.

Thank you
Kabilan

See the message above from Foldzan1

So I think what you’d have to do to get this working properly (for your request) is to do the following:
in the AppDeployToolkitExtensions.ps1 file, comment out the following lines:
image

and:
image

Then, in the Deploy-Application.ps1 file,

2 Likes

Thanks for the reply.

Is it possible to have timer, if the user doesn’t click now, can the installation starts automatically after waiting for 10 mins?

Okay I was able to recreate the issue you’re having…

In the AppDeployToolkitExtensions.ps1 file change the following line from:
image
To:
image

Then you should be able to use the parameter for the countdown timer.
image

1 Like

It works, thank you so much.

Hi,

Thanks for sharing all this. It helps me so much. But I have just one issue left. I set up defer three times for 15 minutes. When I click first defer, the defer prompt doesn’t show up again. I thought I would see the prompt three times every 15 minutes until the remaining deferrals expire. Is there a way to set it up like this?