Saved Bookmarks
| 1. |
Solve : copy names & info from disk drives to a .txt file? |
|
Answer» would the fsutil command return excess information? gumbaz,Quote is there anyway at all to make this script work propperly in a guest account.. As far as I know, only local Administrators have permission to ACCESS WMI. You could try using the runas command or perhaps Group Policy. PS. Glad to hear the script is working for you. what is the runas command..?? what does it do..?? how to use it in my case..??Runas is a utility that allows you to run jobs under another user's credentials. Type runas /? at a commnad prompt for full details. Runas is a security breach in that passwords must be shared. Check out Group Policy which may offer a better solution. Question: why does the guest account need to run this script? WELL basically im making a batch app to log what kind of devices get plugged into my public PC and then dump the infos into a file for later viewing. but I want it to work on my guest account though.. Quote from: gumbaz on July 01, 2008, 08:42:44 PM well basically im making a batch app to log what kind of devices get plugged into my public PC and then dump the infos into a file for later viewing. but I want it to work on my guest account though..the problem is how are you going to log anything if the guy plugs in and out the device before you execute your script? And when running such "monitoring" mechanism, why would you want to run it as guest, if you are the administrator? makes no sense. USBs, CD and any kind of removable devices can be logged by utilities already created to do such stuff. If you want to do it from scratch, you may want to try configuring your PC to log such events (if possible) and write scripts to query the logs. Or you could write a script that MONITORS removable devices and run it as a service. |
|