I am trying to sort out what I need to modify in either the script that runs or the deployment in SCCM. Took a bit of a break on this as we've been deploying Office company wide. I think I've got it working. Then modified the directoies to fit my needs.
Runs Hidden, only when a user is logged in, with user's rights, UNC name, runs once for every user who logs in. Thanks again for the help guys. If I didn't take your advice directly it still helped steer me in a direction that works for me. Sign up today to participate, stay informed, earn points and establish a reputation for yourself! Log in. XCOPY batch file does not run for non-admins. Here is the script that runs in the batch file Software Deployment Scripting batch scripting.
Answer Summary:. Posted by: quattro 7 years ago. I have also set the TS to download content locally 1st before running the TS. The file I am copying is a config file required for some networked NEC projectors. I wouldn't copy from the server, that doesn't scale at all if you have multiple sites.
I have already read that link a few times now and this is still not working and I don't think I'm fully understanding it anyway. And also exactly what you put into your command line path in programs.
SCCM continues to consistently chuck a wobbly soon as you start to try and do things a little different. Its one of the most frustrating systems I have ever worked with in my 9 year IT career, that said I am starting to see the benefits of it but to try and get everything working the way you want takes a considerable amount of time. Please explain and again thank you all very much for your time. I think appdata is only valid on some OS's.
It's not on XP I am pretty sure. John, thank you for persisting with me. I'm reasonably new to sccm about 5mths in so still trying to get my head around some aspects of it. I will give your recommendation a try and post back my results. You are right that the above path will be different for XP, this is windows 7 default user profile path that I am working on. Soon as I have this working I will write a script for XP. Still no joy I'm afraid.
I tried a few different times and I was getting a task sequence has failed with error code I managed to get rid of this error but when the task sequence window opens to execute the file copy it just closes down again and nothing happens. Can you think of anything else? Thanks again John.
I still think you can't use a variable for the users profile. When SCCM runs a program it's executed as local system, unless you specifically tell it to run with the logged on users right.
It's not supposed to copy from your network share, that's the point. Having a package copy from a network share doesnt' scale. Unless you are a really small shop with only 1 location you shouldn't be doing that. So I realize that you posted this a few months ago, but I'm a little annoyed at the lack of solution to your original problem. Additionally, none of the solutions marked truly answer your question.
Learn more. Asked 8 years ago. Active 5 years, 10 months ago. Viewed 10k times. Khushi Khushi 49 1 1 gold badge 3 3 silver badges 7 7 bronze badges. Try placing a pause command on the second line to see if the batch file is running or not. Add a comment. Active Oldest Votes. Do you know what directory the program is running in CWD?
That's where the results of gpresult are going if the output redirection succeeds. Why are you using xcopy when you're only copying one file? If the target ends with the directory separator backslash , xcopy treats it like it's a directory. If it doesn't and the target doesn't exist, xcopy asks you what to do , which causes automated processes to pause indefinitely waiting for user input. Ric Nagy Ric Nagy 1 1 1 gold badge 1 1 silver badge 1 1 bronze badge.
Sign up or log in Sign up using Google. Sign up using Facebook.
0コメント