Can someone tell me what I'm doing wrong here ?
RunAs( "mma", "testdomain", "mypassword", 0, @ComSpec, @SystemDir, 'net share matt_test /delete')
Also tried:
RunAs( "mma", "testdomain", "mypassword", 0, @ComSpec & "/c" & "net share matt_test /delete", "",@SW_HIDE)
Also tried:
RunAs( "mma", "testdomain", "mypassword", 0, "test_delete2.cmd" , "testservermatt" , @SW_HIDE)
I wish RunAsSet could be put back - never had any problems with that !!