Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

quick quesion-- command switch

Status
Not open for further replies.

Hondy

Technical User
Mar 3, 2003
864
GB
Hi

I want to run

c:\windows\system32\cluster.exe localhost /ver >> c:\test.txt

from a scheduled task (2008), what do I need to put in for the full command?

something like:
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
(and add the arguments...)

-command "& {c:\windows\system32\cluster.exe localhost /ver >> c:\test.txt}"

this doesnt work, what should it be?

Thanks
 
Can't you just run

c:\windows\system32\cluster.exe localhost /ver >> c:\test.txt

??

--------------------------------------------------------------------------------
dm4ever
My philosophy: K.I.S.S - Keep It Simple Stupid
 
If you're trying to run cluster commands from within PoSH, check out my blog post on using the back tick.

Cluster administration from PowerShell and the infamous back tick

Let me know if that helps.

Pat Richard MVP

Plan for performance, and capacity takes care of itself. Plan for capacity, and suffer poor performance.

 
58sniper, interesting but whats a back tick? Is that all in Windows 2008?

dm4ever... no I can't, I'm trying to duplicate an elevation issue from within a pre-existing PS script.

Cheers
 
i did read the link, and i didn't cross post - same topic but different issue - thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top