Jump to content

Recommended Posts

Posted
Microsoft Windows PowerShell command line shell and scripting language helps IT Professionals achieve greater productivity. Using a new admin-focused scripting language, more than 130 standard command line tools, and consistent syntax and utilities, Windows PowerShell allows IT Professionals to more easily control system administration and accelerate automation. Windows PowerShell is easy to adopt, learn, and use, because it works with your existing IT infrastructure and existing script investments, and because it runs on Windows XP, Windows Vista, Windows Server 2003 and Windows Server “Longhorn”. Exchange Server 2007, System Center Operations Manager 2007, System Center Data Protection Manager V2, and System Center Virtual Machine Manager leverage Windows PowerShell to improve efficiency and productivity.

 

You can get it from here:

 

http://www.microsoft.com/windowsserver2003/technologies/management/powershell/download.mspx

 

Nath.

Posted
Microsoft Windows PowerShell command line shell and scripting language helps IT Professionals achieve greater productivity. Using a new admin-focused scripting language, more than 130 standard command line tools, and consistent syntax and utilities, Windows PowerShell allows IT Professionals to more easily control system administration and accelerate automation. Windows PowerShell is easy to adopt, learn, and use, because it works with your existing IT infrastructure and existing script investments, and because it runs on Windows XP, Windows Vista, Windows Server 2003 and Windows Server “Longhorn”. Exchange Server 2007, System Center Operations Manager 2007, System Center Data Protection Manager V2, and System Center Virtual Machine Manager leverage Windows PowerShell to improve efficiency and productivity.

 

sed 's/Windows Powershell/Cygwin Bash Shell/g'

 

From the description its been available for years:

http://www.cygwin.com/

Posted
Now Now Geoff let's not get too cynical :) BTW 20years too late (showing your age there Geoff) now we know your not 25 like you keep telling everyone hehe.
  • 3 months later...
Posted

well i havent got much working yet, just messing with it

but

PS C:\> foreach ($x in net view | findstr \\ {echo $x.remove(0,2)}

 

gives a list of computers with the '\\' removed

 

i got remove from here:

http://msdn2.microsoft.com/en-us/library/system.string_methods.aspx

 

i suspect all these string methods would work, which could be pretty handy

 

you can browse the registry from the command prompt as if it was a file system!

 

you can create softlinks and aliases

 

wmi integrated with a get-wmi command.

 

piping seems to work a lot better

Posted

ooh there's built-in wget like functionality

 

PS C:\>$wc = new-object System.Net.WebClient
PS C:\>$wc.DownloadString('http://www.google.com') | out-file c:\temp\ss2.txt

Posted

Anyone find something it does that bash doesn't already do?

I still don't get the point of learning so that it can only be applied to MS servers when you can learn a more established (and faster developing) technolgy that can be applied to MS as well as *nix machines.

Not aimed at enyone particular but people so often complain that they can't implement a particular technogy becasue they don't have the sills, then happily learn a restrictive technology such as powershell/vbs that I don't see has any advantage -except maybe it doesn't require an installer.

Posted

Indeed, you've already got a choice of Cygwn (including bash and friends), Python (including Microsofts own IronPython.NET implementation), Perl, Ruby, VBS and a host of other scripting solutions. Do we really need any more?

 

OTOH, I do think the command line needed an overhaul. However, as I said, I don't think this is the right direction to head off in.

Posted

well perhaps its not for everyone. Ive always liked dos cos its fairly simple but a bit limited. Vbscript is can be overly complicated for some things. Im just hoping powershell is somewhere in-between.

Generally I'm all for *nix stuff as long as someone else does it. :D

  • 3 weeks later...
Posted

Well, after Geoff and CyberNerd's glowing reviews, I thougtht I'd give it a bash (d'ya see what I did there).

 

I can now CD to UNCs without drive mapping. You can also CD in to the registry. "Far out man!"

 

Command completion woohoo! At last I don't have to memorise the contents of system32 anymore. Command substitution without the venerable FOR /F.

 

Also, like *nix shells we now have aliases and an rc files (both per user and system wide)

 

The thing that makes PowerShell different from *nix shells is that it is object oriented and gives you access to the .net framework

It's as OO as you can get in MS admin scripting without falling into C#.

 

It'll make processing the XML from the SIMS.net commandReporter a lot easier. I can then slip into ADSI without breaking a sweat to create/update user accounts in AD.

 

The syntax and general look of the language is a bit odd though. Maybe they thought "If we make it arcane then the *nix guys will come over to take a look".

 

People on the *nix side might be complaining now but there will probably be borrowings as with .net to Mono.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...