Sam_ Posted March 28, 2018 Posted March 28, 2018 I'm trying to get SCCM to reference a script in a shared folder to be used in a task sequence but it is failing with "access is denied", what account does SCCM use during the task sequence? Is it not the account I use to login and manage SCCM? Does the SYSTEM account need adding to the shared permissions of the folder? If I add everyone as full access in advanced sharing it works fine, but I dont want everyone to have full access. Thanks
FN-GM Posted March 28, 2018 Posted March 28, 2018 When I need to do something like that I put the script in a package and run it as a step in SCCM. Means you don't have to faff around.
Sam_ Posted March 28, 2018 Author Posted March 28, 2018 When I need to do something like that I put the script in a package and run it as a step in SCCM. Means you don't have to faff around. I have tried this but it still fails with an Incorrect function error, heres a screenshot:
FN-GM Posted March 28, 2018 Posted March 28, 2018 Put it into a batch file. Put that into a package and run the batch file from the package.
Arthur Posted March 28, 2018 Posted March 28, 2018 Try this as the command line (assuming SetRes.cmd is already in your package)... cmd /c %~dp0SetRes.cmd
free780 Posted March 28, 2018 Posted March 28, 2018 Make sure your SCCM Network Account is configured with read only access to shares and NTFS. Also give domain computers read access.
Sam_ Posted March 29, 2018 Author Posted March 29, 2018 Thanks for the suggestions guys, got it working by editing the script as it was essentially incorrect for being in a package.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now