Quantcast
Channel: Configuration Manager 2012 - Operating System Deployment forum
Viewing all articles
Browse latest Browse all 9126

Powershell script not executing in Windows 8.1 TS

$
0
0

I have this simple powershell script that will create a log file in a certain directory. I added a "Run Command Line" step in my task sequence to call my powershell script

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File .\POSTINSTALL.ps1

When I did not specify any account in "Run this step as the following account" section, the log file was created in the directory. But when I specify an account in "Run this step as the following account", the log file was not created. The account that I have used have full admin rights on the directory as I have added the account in local admin group using another task sequence step. I have also modified the security rights of the folder to give all users and administrators to have full control of the folder, but the log file was not created. Any idea why the script only works with System account?

Note that I have only experience this on a Windows 8.1 OS. The script works in Windows 7 whether I specify an account in "Run this step.." or not.


Viewing all articles
Browse latest Browse all 9126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>