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.
Best Answer
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.
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).