I'm trying to develop a PS script that will automatically run a command as sudo on the Ubuntu server when a disk space threshold is reached. The script works when run from my pc, but doesn't run when the action executes, apparently. Is there anyway to see why an execute script failed? The actual sudo command is just to test to make sure its doing an action Script below
asked 21 Sep '17, 12:40 davidwolf |
I've since installed and imported the module needed on both the central server and satellites. I've discovered the error preventing the script from running is:
But I don't know what to do from this point because I can successfully run the script manually from the server and satellite. answered 27 Sep '17, 15:48 davidwolf |