Hey
I’m a trainee ICT technician, but haven’t a huge amount of knowledge when it comes to scripting. The most I’ve really used cmd and MS-DOS for is running old games back in the days of apogee. sigh ah the memories…
Anyways One of my tasks at my job is to keep an eye on the users to make sure that they aren’t into stuff they shouldn’t be. This also includes making sure that they aren’t using company laptops to store pirated media.
I’m trying to write a batch file that can run the dir command on the network at work to display a list of all the files in a number of different locations. 'tisn’t working for me. This is what I’m trying to run:
runas /user:domain\username “dir \computername\c$”
It then prompts me for a password, then gives the following error:
2: The system cannot find the file specified.
Anyone got any ideas?