2

Error Message Permissions Setup

I've checked the path names and they are correct. I've tried editing the permissions and they seem fine.

What else should I try?

EDIT:

I also tried this way: http://damonjohns.com/2014/03/12/removing-windows-8-1-modern-applications-during-your-mdt-sccm-task-sequence/

I don't get the screen but the script does not seem to be copying the ps1 files over to execute them.

My Script:

powershell.exe -Command “set-ExecutionPolicy Unrestricted -Force; cpi ‘%DEPLOYROOT%\Applications\SCRIPT - Enable Remote Managament By Opening Firewall Rules\script_enable_remote_management_open_firewall_rules.ps1′ -destination c:\; c:\script_enable_remote_management_open_firewall_rules.ps1"

EDIT: Everytime I check C:\ I do not see my rules copied over. I have also now had everything go thru without getting a FAILURE screen but I do not see the scripts and do not see them executed.

1 Answer 1

2

To run power shell scripts you will need to add it as a Task Sequence item. You can do this by adding the Run PowerShell Script entry into your Task Sequence.

Make sure that you add it after the system has restarted from installing/applying the image.

How to add into task sequence.

In the task configuration you will need to point to the ps1 file that houses your commands. You may be able to execute a single command (I am not sure).

14
  • Hey, yes, I tried that with no success. ;/
    – Jason
    Jul 7, 2014 at 1:26
  • It looks like you also need to add .net framework, DISM Cmdlets and Enhanced storage. I will update the picture if that works. I had forgot to put that in :-P Jul 7, 2014 at 13:49
  • No luck. What do you use for a CLI in your Task Sequence to get the system to run PS Scripts?
    – Jason
    Jul 7, 2014 at 14:30
  • Did you update your deployment share images? Jul 7, 2014 at 15:32
  • 1
    Thanks, I will update the answer to this question for other people :) Jul 7, 2014 at 19:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .