Score:0

Windows, Collect information that requires admin rights

cn flag

I'm making an enterprise dashboard for system status/etc but finding that most of the commands I'll need to run on individual servers, will require administrative privileges to collect the data. For example, "appcmd list sites" will require admin.

So I thought about making a directory, setup a scheduled task on each server to run as an admin account, to run whatever command, then picking up the file with another service account that only has read access to that directory.

I also realized that if I choose to have something like this run a script, I'd need to protect that script so that it can't be edited by a non-administrator, or just make tasks that explicitly point to the executable, such as appcmd.

Struggling a bit on the idea of how to best collect admin-only information. I can't be the only one to try to solve this, any tips?

djdomi avatar
za flag
hows about to write a small pre compiled file that runs the commands?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.