Would you agree? ;)
Unfortunately I do have an experience similar to that.
From one of my previous jobs., I wrote a tool to automate a tiresome manual process. The tool speeds up the process for about 400%. But the end result, I was given a memo for "doing the task (writing the tool) that is not part of the tasks list" and given a warning "not to do that again".
Hrrrmmm.... I also did a tool that calculates coordinates for me (used in graphic projects), which also speeds up the actual process. Now, I am dependent to that tool because I'm too slow when doing it manually -- akala kasi nila ganon kadali kasi mabilis kong natatapos. Hmp!