I am trying to limit the script from running for users when they use terminal services on remote servers.