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!

Welcome to the PowerShell forum everyone 2

Status
Not open for further replies.

markdmac

MIS
Dec 20, 2003
12,340
US
Well dm4ever, you beat me to the first post, but I can still take credit for requesting this forum.

I've been playing around with PowerShell a little and so far really like what I see.

I was recently contacted by a fellow employee of Microsoft that is in charge or the PowerShell development, he was looking for a VBScripter's perspective on PowerShell.

So, if anybody has any suggestions on what you would like to see added to PowerShell please let me know so I can add your feedback to my own.

Moving from VBScript to PowerShell looks like it will be both easy and confusing at the same time.

For any scripters out there that might want to see just how easy this is going to make life then read on. If you have ever tried to script Microsoft Office applications like Excel you know how difficult it can be to find out the right commands to use to control it. Sure you can break out some object explorer utility, but PowerShell has it built right in.

Give this a try is:

Code:
 $objXL = new-Object -comobject "Excel.Application"
 $objXL | get-member

Oh, joy! I went nuts when I decided to see what that would give me. Every property exposed right there for you. What more could you ask for other than examples of using it all?

Everyone can grab links to the PowerSHell download, free webcasts training, sample PowerShell Scripts and a VBScript to PowerShell conversion guide from here:


I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
 
Great post...good info. As a Vbscript and UNIX shell scripter, I'm pretty excited about PowerShell.
 
Yes, so far I am very impressed with it. Still waiting for deployment scenarios to be published. I think that will be a limiting factor in geting the technology fully adopted on existing systems.

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
 
Same here, but I'm not sure what you mean by "Deployment scenarios.
 
I tried the code above...works great. So I decided to add "lp" at the end to see if I could get a printout. That work's too.

$objXL | get-member | lp

 
What I was referring to for deployment scenarios is a way to remotely install PowerShell on servers.

I requested there be an MSI do deploy via AD, but was informed that the PowerShell needs to install into the System32 directory and MSI files are not allowed to do that. So...the team is working on a way to be able to deploy PowerShell via AD or SMS.

Large enterprises don't have the luxury of going around to each server to install, they also can't just add PowerShell to an image and update servers at will. Microsoft needs to take these situations into account and provide a means to deploy remotely. Along with deploying, they also need to provide a means to remotely configure, for example setting the default security so scripts can run.

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
 
Ok, now I've got to get back to work. You guys have got me all interested and reading up on this stuff, while my systems are suffering. [neutral]

I hope you find this post helpful,

Jonathan Almquist
Minneapolis, MN
 
I tried the code above...works great. So I decided to add "lp" at the end to see if I could get a printout. That work's too.

$objXL | get-member | lp

Microsoft has added aliases to PowerScript so that you can use commands you are familair with. lp is an alias for out-printer. So your command above is inturpreted as $objXL | get-member | out-printer. You can look at all the aliases by typing Get-Alias, you can also create your own aliases. the Out-Priter without a parameters print to your default printer. You can choose another printer using the printer's Display name. out-printer -"dispalyName
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top