Re: What permissions do I need to use admin$ ?

From: Kerry Brown (kerry_at_kdbNOSPAMsys-tems.c*a*m)
Date: 11/29/05


Date: Tue, 29 Nov 2005 13:27:52 -0800

Maury Markowitz wrote:
> "Kerry Brown" wrote:
>
>> What are you trying to accomplish with psexec?
>
> All I need to do is run a batch file. The batch file spawns an
> interactive application that imports data into a db. The morons that
> wrote it included a "batch mode", but it nevertheless displays both a
> splash screen as well as a dialog box saying it's complete.
>
> I have tried every possible tool I can think of...
>
> "at" fails because the application appears to be setting the working
> directory, which for some reason is not allowed. at runs as the
> logged in user, which in this case is the admin.
>
> rcmd fails because on this machine any attempt to run with "allow
> access to desktop", which is required for an interactive app, fails
> with an error about kernel32.dll failing to initialize. MS has a tech
> note on this error, but it does not describe how to fix it in terms I
> can understand.
>
> psexec fails as I mentioned, with an "Access is denied".
>
> However, I have made progress with psexec. By simply using:
>
> psexec \\server cmd
>
> ...with no user or pass I _was_ able to run cmd! However when I ran
> the batch file in question, psexec never returns from the importer
> program. I assume it is "frozen" waiting for the user to click
> something which is not visible on the screen.
>
> This shouldn't be this hard! Am I overlooking some other solution?
>
> Maury

Did you see Steven L Umbach's post? Adding your domain account to the local
administrators group on the server might work.

It's been a long time since I used NT4 and I've never used psexec so I'm out
of ideas.

Kerry



Relevant Pages

  • Re: Renaming computers using Logon scripts from GPO
    ... I already used psexec for many different things, but never to rename computers, sometimes things can get a little bit complicated, but other times they're very sinple and in most times running psexec against large number of machines can save you a lot of work, at least to me:). ... Inside that batch file insert the following code "cmd", save the file and close it. ... As I told you from the beginning I never used this tool to rename computers, or perhaps you may find other tools that do the same thing with less work, but since you can use this tool to open, or copy your own scripts and then run them from remote location, does not sound impossible to automate this job. ...
    (microsoft.public.windows.server.active_directory)
  • Re: win32 process
    ... how can my vb.net code know that it has finished executing ... I am using Win32_Process to launch a batch file on a remote computer. ... There's a free tool from SysInternals called PsExec though, ... much more powerful - it can actually communicate StdIn and StdOut with ...
    (microsoft.public.win32.programmer.wmi)
  • Re: remotely invoke .bat file to run on target machine
    ... I'm writing a batch file that uses PsExec many times to perform many ... The internal commands of CMD.EXE are run the same way you would run them ... >> To use PsExec I use a wrapper batch file to copy the utility and the batch ...
    (microsoft.public.windows.server.scripting)
  • Re: remotely invoke .bat file to run on target machine
    ... I'm writing a batch file that uses PsExec many times to perform many ... > To use PsExec I use a wrapper batch file to copy the utility and the batch ...
    (microsoft.public.windows.server.scripting)