Solved

PsExec command

Posted on 2013-11-12
1
1,055 Views
Last Modified: 2013-11-12
I have a network shared folder on Server1 on which I have placed SP1 for Win7 (windows6.1-KB976932-X64.exe) and batch File SP1.bat
SP1.bat  -  robocopy "\\30SWL-Server-02\SP1\windows6.1-KB976932-X64.exe" "C:\Temp"

On my Windows 7 PC,I have created pclist.txt file and placed it in the root of C (C:)
pclist.txt has name of computer (later I wanted to add PC names to it as needed)

I have user account which is a member of Domain Admin group

I opened cmd under that account and typed following command:

psexec @C:\pclist.txt –u domainname\username –p Password "\\30SWL-Server-02\SP1\SP1.bat"

The result in cmd:

C:\Windows\system32>psexec @C:\pclist.txt -u domainname\username -p Password "\\30SWL-GHOST-02\SP1\SP1.bat"

PsExec v1.98 - Execute processes remotely
Copyright (C) 2001-2010 Mark Russinovich
Sysinternals - www.sysinternals.com

\\PCNAME:

PsExec could not start ?u on PCNAME:
The system cannot find the file specified.
0
Comment
Question by:vadimmikhal
1 Comment
 
LVL 83

Accepted Solution

by:
oBdA earned 500 total points
ID: 39641672
I suspect that you created the batch file not in a plain editor like Notepad, but in a word processor that replaced the "-" with a dash or something else.
Open the file in Notepad, and make sure that every "-" is actually a minus sign.
While you're at it, make sure that all quote signs you use are real double quotes as well, not "pretty" ones.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

The password reset disk is often mentioned as the best solution to deal with the lost Windows password problem. In Windows 2008, 7, Vista and XP, a password reset disk can be easily created. But besides Windows 7/Vista/XP, Windows Server 2008 and ot…
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now