Đã Hủy

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"

Kỹ năng: Powershell

Xem thêm: simple powershell script, script modify site, soft modify web script, script modify text file, ajax login script simple, powershell script add users excel file, modify php script, shop script simple, mp3 download script simple email, php template script simple custom, python script modify file, php script simple classified, modify dolphin script, modify java script cell phone, captcha mail form free script simple, php script simple project manager, script modify csv file, comment script simple, user profile script simple, python script modify html, script modify images flash, excel vba script modify existing vba, php formmail script simple, outlook script modify subject line forward, modify popup script

Về Bên Thuê:
( 2 nhận xét ) Tampa, United States

Mã Dự Án: #14901960

2 freelancer đang chào giá trung bình $185 cho công việc này

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 Thêm

$120 USD trong 3 ngày
(4 Đánh Giá)
2.8
$250 USD trong 3 ngày
(0 Đánh Giá)
0.0