Yep, as long as things can execute independently, then you don't need to
specify cmd /c. One example of where you'd need to use cmd /c is if you're
calling the "start" command directly (outside of a batch file). You can't
call "start" from a task sequence Run Command Line step, because "start" is
not a stand-alone command. It's a function that is interpreted exclusively
by cmd.exe.

 

Cheers,

Trevor Sullivan

 

From: [email protected] [mailto:[email protected]]
On Behalf Of Daniel Ratliff
Sent: Friday, September 20, 2013 11:22 AM
To: [email protected]
Subject: RE: [MDT-OSD] RE: Enable WinRM

 

Ahh, never knew that is what defined the use of cmd /c. Good to know!

 

Daniel Ratliff 

 

From: [email protected] <mailto:[email protected]>
[mailto:[email protected]] On Behalf Of Jason Sandys
Sent: Friday, September 20, 2013 12:12 PM
To: [email protected] <mailto:[email protected]> 
Subject: RE: [MDT-OSD] RE: Enable WinRM

 

Ahh, yes it is. Slightly different reason then: a cmd will automatically
execute in the command-shell because of its file association and thus still
no need to specify cmd /c.

 

J

 

From: [email protected] <mailto:[email protected]>
[mailto:[email protected]]
<mailto:[mailto:[email protected]]>  On Behalf Of Trevor
Sullivan
Sent: Friday, September 20, 2013 11:06 AM
To: [email protected] <mailto:[email protected]> 
Subject: RE: [MDT-OSD] RE: Enable WinRM

 

Winrm is a cmd file that wraps a VBscript (winrm.vbs), and is not in the
portable executable format. But your point still stands.

 

Cheers,

Trevor Sullivan

 

From: [email protected] <mailto:[email protected]>
[mailto:[email protected]] On Behalf Of Jason Sandys
Sent: Friday, September 20, 2013 11:03 AM
To: [email protected] <mailto:[email protected]> 
Subject: [MDT-OSD] RE: Enable WinRM

 

Winrm is an exe, no need to use a command shell to launch it.

 

J

 

From: [email protected] <mailto:[email protected]>
[mailto:[email protected]] On Behalf Of Daniel Ratliff
Sent: Friday, September 20, 2013 10:50 AM
To: [email protected] <mailto:[email protected]> 
Subject: [MDT-OSD] RE: Enable WinRM

 

Missing cmd /c. 

 

Daniel Ratliff

 

From: [email protected] <mailto:[email protected]>
[mailto:[email protected]] On Behalf Of Marcum, John
Sent: Friday, September 20, 2013 10:36 AM
To: [email protected] <mailto:[email protected]> 
Subject: [MDT-OSD] Enable WinRM

 

Is anyone enabling WinRM in a task sequence? I am trying on Win 7 x64 and
the step in the task sequence reports it is failing. I am just running the
command line winrm qc -q 

 

  _____  

John Marcum
Sr. Desktop Architect

Bradley Arant Boult Cummings LLP

  _____  

 

 

  _____  


Confidentiality Notice: This e-mail is from a law firm and may be protected
by the attorney-client or work product privileges. If you have received this
message in error, please notify the sender by replying to this e-mail and
then delete it from your computer.


The information transmitted is intended only for the person or entity to
which it is addressed
and may contain CONFIDENTIAL material. If you receive this
material/information in error,
please contact the sender and delete or destroy the material/information.


The information transmitted is intended only for the person or entity to
which it is addressed
and may contain CONFIDENTIAL material. If you receive this
material/information in error,
please contact the sender and delete or destroy the material/information.


Reply via email to