Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm building a script that will run WatiN, a tool that makes Web Application Testing possible, on a remote machine. I won't go in to any details, but the scripts does the following:

  • Create a network-share on the remote client machine (Windows 7)
  • Copy a runner to the remote machine
  • Create a test database on an other server
  • Copy the web-application to a webserver
  • Start the runner on the remote machine
  • Copy the results back to the current machine
  • Clean-up the remote machine

To do stuff on the remote machine I use PsExec, this works fine and in fact the script runs fine except one step, the first.

The problem is that the network-share that I have created on the remote machine is read-only. With PsExec I run the following script on the remote machine:

net share WatiN=C:\RemoteWatin /GRANT:Everyone, FULL

The grant doesn't work, can anyone help me out?

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

The problem was that I had no rights to GRANT Everyone FULL control, but it does work when I grant myself full control.

Here's my working command:

net share WatiN-%1=C:\RemoteWatin\%1 /GRANT:%USERDOMAIN%\%USERNAME%,FULL
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.