Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Wednesday, May 2, 2018 2:55 PM
There's not much training on it, so I'm asking here. I've created basic ppkg to run, cleanup, and to install and run scripts. I add an application, then a batch file, then a ps1 file and change the command line to run it as a Powershell. For some reason, I cannot get software to install, Powershell PS1s or command line batch files to run. Is there something I'm missing?
All replies (5)
Monday, May 14, 2018 7:34 AM âś…Answered | 1 vote
Actually you can use a command line to execute multiple bat file.
Or you can use code to let multiple bat file in one bat file.
For more details, you can contact Script Center to help you on the script issue:
https://technet.microsoft.com/en-us/scriptcenter/bb410849.aspx
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].
Thursday, May 3, 2018 3:15 AM
To make the problem more clear, you are going to add an application to ppkg, which failed.
Here are the steps:
Taking installation of Office as an example:
You can enable the logging when you install the application, then we can analyze it if it failed.
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].
Friday, May 4, 2018 1:19 PM
So I would need to use a ppkg per settings and applications?
If so, I'd need multiple ppkgs that are ranked and is this what I would need to do? ...
ppkg1 > "Provision desktop devices" with basic settings with no applications
ppkg2 > "Advanced provisioning" with Office
ppkg3 > "Advanced provisioning" with Powershell script 1
ppkg4 > "Advanced provisioning" with Powershell script 2
Let me know if this is right, thanks.
Monday, May 7, 2018 8:43 AM
No. But what is the purpose of batch file and ps command ?
How did you configure them?
It is suggested that you can choose Advanced Provisioning>all windows desktop edition.
To add the batch file or ps, go to Provisioningcommands/devicecontext/commandfiles, add the .bat file. Then go to Provisioningcommands/devicecontext/commandline to add the commandline to run the script. You can refer to
Then to add the application, you have to use create a batch file to install the application, reference:
https://en.it-pirate.eu/windows-10-provisioning-packages-install-multiple-applications-by-command-line/Note: this is a 3rd party link, we don't have any warranties on this website. It's just for your convenience.
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].
Friday, May 11, 2018 1:40 PM
The powershell scripts change multiple settings for:
Removing specific apps (Twitter, Candy Crush, etc)
Enable RDP
Enable WMI
Enable WinRM
But if I did it the way you mentioned, I can only use one command line, but I have multiple scripts to run.