Cancelled

Powershell Script

Simple task to modify a powershell script to add a new option.

I use powershell 'app deploy toolkit' to deploy applications to computers using Microsoft Configuration Manager and prompt users to restart their computer.

The current script in the toolkit already does everything I need but I can't seem to use the 2 options that I need at the same time. Here is what I mean....

In the script, I use a command called 'Show-InstallationRestartPrompt' which is used to prompt a user to restart the computer.

Command #1 - if I use this command:

"Show-InstallationRestartPrompt -countdownseconds 600 -countdownnohide 300"

The above command prompts the user to restart computer with a 10 min countdown clock with 2 buttons, "restart now" and "restart later". If a user chooses to "restart later", the prompt goes away. When the countdown reaches 5 minutes, the prompt returns to the screen and the user can't click on "restart later". The user must click on "restart now" or the computer will restart automatically when the countdown reaches zero.

Command #2 - if I use this command:

"Show-InstallationRestartPrompt -nocountdown"

The above command prompts the user to restart computer with NO countdown. the prompt has 2 buttons, "restart now" and "restart later". If a user chooses to "restart later", the prompt goes away. [BUT HERE IS THE DIFFERENCE] This command uses a value in an xml file called 'InstallationRestartprompt_persistInterval' which I can set to 1 minute. This means that after the user clicks on "restart later", the prompt keeps coming back every 1 minute. There is no countdown so the computer is never forced to reboot if the user keeps clicking on "restart later".

------------------

So.... I can use command 1 or 2 and they work great but I need to have the countdown clock with the 'persistInterval' and it doesn't seem to be supported. When I add the countdown option, the script ignores the 'persistInterval'

So the project is... look at the powershell and xml files and find a way to use the "countdown and countdownnohide" options with the 'persistInterval'.

-------------------

You can find the script here:

[url removed, login to view]

the name of the poweshell script is "[url removed, login to view]" and the xml file is "[url removed, login to view]"

The attached word document is very detailed. Just search for "Show-InstallationRestartPrompt"

Skills: Powershell

See more: script modify site, soft modify web script, script modify text file, modify php script, python script modify file, modify dolphin script, script modify csv file, python script modify html, script modify images flash, modify popup script, modify install script

About the Employer:
( 2 reviews ) Tampa, United States

Project ID: #14901960

2 freelancers are bidding on average $185 for this job

venkat071292

Greetings!! I am an Microsoft certified professional. I have rich experience in windows powershell and have worked on multiple automation projects. I have worked on similar projects and I can fix the issue posted by More

$120 USD in 3 days
(4 Reviews)
2.8
$250 USD in 3 days
(0 Reviews)
0.0