>"Not fully, but what you say about v2 is highly valid in the context of
what I'm asking. The point is, the authors of PS obviously think what I'm
saying is important, > because every v2 related blog is banging on about
remoting."
Remoting is important, but it is far from the only thing you need. As I have
said... I manage all my machines from one location using WMI and .NET in
Powershell. I get things 10x faster than anyone else.
> "Sure there is, PsExec 1.70" PsExec 1.70 is not a shell. It a program. There is huge difference. Don't
get me wrong... remoting commands is very useful, but to say that is more
powerfull than even MS DOS is an overstatement. That is single purpose app.
You can do the same thing with .NET
> "But SSH is open source and fully documented; this means it's very easy to configure for thousands of PCs. Microsoft change their "remote" options
with the wind. > The latest fad is win-rm (or what ever it's called) and
it's not installed by default so obviously isn't much good and obviously
isn't something they are pushing very > hard. They'll also blame customers
if it gets hacked for daring to install it."
It seems to me you take something comfortable for you and paint a broad stroke
that is easy. SSH is not useful unless setup correctly. And configuring properly
is not a simple task.
> "I don't want any "data". What I want is remote shell. e.g. run a BAT file on admin box that connects to 400 boxes and runs an exe on that box and send
the
Im curious... what do you want a remote shell for? I am sure you have a purpose.
My point is just because Powershell is different doesnt make it wrong. I
personally think having to touch 400 machines is ineffiecent and a waste
of time. It also has a slew of dependancies and doesnt scale well at all.
> "What makes Powershell Powerful is the 'object' nature of the shell. "
> "I don't agree. Can you elaborate on this?" This is pretty easy. Lets take a real life example.
Boss: Joe, We are running out of space and I am NOT buying anymore space.
CLEAN IT UP!
Joe: Yes, Sir
Joe: Opens Powershell Prompt
PS> Get-Childitem d:\DataShare -recurce | ?{$_.LastAccessTime -lt (get-date).addmonths(-6)}
| %{$_.fullname}
Joe: Gets back a list of all the files that havent been accessed in 6months.
Gives to his Boss.
Boss: Delete any file in that list greater than 100mb
Joe: Yes Sir.
Joe: Goes back to Powershell prompt and presses up arrow and changes it
PS> Get-Childitem d:\DataShare -recurce | ?{($_.LastAccessTime -lt (get-date).addmonths(-6))
-and ($_.length -gt 100mb)} | remove-item -whatif
Joe: Screen shows him it would delete 300 files. Presses up arrow again and
removes the -whatif
Joe: Hey Boss, I delete 30gb of data.
This is possible because when you do Get-Childitem you get back an object
with properties like LastAccessTime and Length. Object base shell removes
the need to do about 90% of the text parsing.
> "BASH/KSH and such cannot even touch the power you get with just Powershell alone. They are not even in the same ball park. "
My point is the BASH and KSH are subpar shells when compared to Powershell.
In fact the only thing that makes them usable is all the "third party" utilities
that have been built over the years.
The Moral of the story is that the Shell has been WAY over due for a make
over. Powershell does just that. Is it perfect, no. But is way better than
anything else out there.
Brandon Shell
---------------
Blog:
http://www.bsonposh.com/
PSH Scripts Project:
www.codeplex.com/psobject
GH> PsExec 1.70
GH>