Every time I try to run a script that includes the line Set xlObj = CreateObject("excel.application") in vbscript, I get an error saying "Line Requires Elevation". I assume this is a permissions issue, but I'm an admin on the machine where I'm trying to run this script, so I'm not sure what I need to do about this.
There is no mystery about it. We told you and you said "No that can't be it". If set to admin then a non admin can't access it.
来源:https://stackoverflow.com/questions/25982347/set-xlobj-createobjectexcel-application-requires-elevation-vbscript