Why dont scripts deploy to all machines on a smart label?
Hi guys,
I have been having some trouble trying to figure this out by myself so I have come here to see if someone can explain why what I am seeing is happening.
We are running Version: 6.4.120756 of Kace with version 6.4.522 of the Agent.
So I have created a smart label that labels all Windows 10 Pro x64 machines on our network. The smart label has 200 computers on it. I can see that about 50 or so are offline currently. The rest are online.
I have an online script that is configured to run on Windows 10 Pro x64 machines only. When I run the online script against the 200 computers, the script only targeted then pushed to 9 computers. That's a tiny fraction of the number it should be deploying to. There is no conceivable way that many computers were on but not signed into by any users, at the time the script was run.
If a Windows 10 Pro x64 computer was online and had a used signed into it at the time the script was run and the online script was configured to run on Windows 10 Pro x64 computers, why would a script not get targeted then pushed to that machine?
I have tried changing the script so it's not so specific about the operating system it can run on, so its just 'Windows' as opposed to 'Windows 10 Pro x64' and it ran on 60 computers that time but still nowhere near as many as it should.
Usually, what I see when a run an online script on a machine that is online but not signed in, it will still be targeted and pushed to that machine but it will fail due to not having a user signed in. But I'm not even seeing that.
If anyone could help me understand what on earth is happening here I would really appreciate it!
Cheers.
3 Comments
[ + ] Show comments
Answers (1)
Answer Summary:
Please log in to answer
Posted by:
five.
7 years ago
Top Answer
After talking to my jumpstart trainer about this issue. I think the problem is that at least on my end. I create the smart label and then go run the script against that new label. The problem with smart labels, is that they aren't applied when you make them. They are applied as clients check-in. So it would take x amount of time before your entire inventory has checked in and has that new smart label applied. And that is why it's sporadic, because as things check in the list will grow. I have not verified that was the issue, but it does make sense.
If I am reading correctly, Your label has 200 machines and when hitting Run Now (In the Scripting Page), only a few machines are targeted...
The only time I see this happen is when the Target OS range is incorrect.
Do you have the "Allow run without a logged-in user" checked as well? - Desktop Jockey 7 years ago
Sorry that is what I was trying to say when I said I configured the script to run on Windows 10 Pro x64.
I have since changed that to just "Microsoft Windows" by unchecking the "select specific operating systems" option under the Deploy section. But the problem still exists, just to a lesser extent.
I don't have "Allow run without a logged-in user" checked. I didn't want the script to run without a logged in user as I needed them to acknowldge some message windows etc. And sometimes with other scripts, they would still deploy to a machine without a logged in user anyway. They would just fail and show in the logs it was due to there being no logged in user.
Unless I am mistaken, Kace does not do any checking for logged in users before deploying a script, so this shouldn't be a reason it doesn't get targeted or pushed. But maybe I am wrong about that? - designworks 7 years ago
Creating a manual label and then deploying using that label deploys to the expected amount of computers.
It would appear that someone has changed the check-in interval for the agents on our K1000 to 6 hours. =/
And from looking at the logs, compounding things is, under the "On Success" section of the Task, the "runkbot 4 0" that is executed in the script right after the "run program", doesn't appear to be getting executed if the "run program" completes with an error. >_<
Can anyone confirm if that expected behaviour? A whole section of a Task in a script terminates if there is an error? - designworks 7 years ago
Its not designed as I thought, to break out of the script when any step in a task sequence fails? - designworks 7 years ago
I'm doing the same thing as you now too. Smart Labels are a largely a waste of time for script deployment. Manual labels are a more reliable alternative. - designworks 7 years ago