Mar 1, 2009

BASTA! Spring 09: SharePoint & PowerShell

Many peoples asked me to share my presentation about SharePoint & PowerShell from the BASTA! Spring 09 – here it is.

In general .NET developers aren’t familiar with PowerShell, though it’s really great and helpful tool. I recommend everyone just use it! If you master it, every piece of software is your slave, regardless it is based on .NET, COM or WMI.

The base evolution of PowerShell is everything in PowerShell is a .NET object!

In the Java magazine they compared the Bash with PowerShell and PowerShell won, because it is build on .NET.

There are many SharePoint-Solution-Life-Cycle-Tasks and for sure .NET tasks PowerShell can help you:

  • Migration
  • Build Process
  • Deployment
  • Prototyping
  • Automate Admin Tasks
  • Rapid Development
  • Learning
  • Alternative UI
  • Trouble Shooting
  • Admin-Tool for your own Software
  • Testing
  • Scripting language for your own software

My favorite is scripting language for your own software. It is really cool and powerful to build PowerShell functions around your .NET DLLs. By the way, same does Microsoft.

What do you think how SharePoint 14 can be scripted? Stsadm.exe?

 One of my fun demos to demonstrate the power of PowerShell:

  • Automate PowerPoint, create slide on the fly and post a tweet

 

$pptApp = new-object -com "powerpoint.application"

$ppt = $pptApp.Presentations.Add()

$slide = $ppt.Slides.Add(1,1)

$shape = $slide.Shapes.Item(1)

$shape.TextFrame.TextRange.Text ="PowerShell rocks!"

$shape.AnimationSettings.Animate=$true

$shape.AnimationSettings.EntryEffect=3332

## Now replace "PowerShell rocks!" with the following script:

## "Twitter this via PowerPoint" | out-twitter

## out-twitter is slightly modified version of Jeff Hicks Out-Twitter

## paste the out-twitter script to your $profile

## http://blog.sapien.com/index.php/2008/06/23/out-twitter/

## you have to add "$request.ServicePoint.Expect100Continue = $false"

## Now invoke your script from PowerShell with the following line:

Invoke-Expression $shape.TextFrame.TextRange.Text

Made the complete presentation this way ;-)

I’ve also a done a demo how you can embed PowerShell in a SharePoint WebPart in about 5 minutes. Following soon…

Some pics of the presenation:

 b2 b1

You will see what the chain saw meant when you watch the presentation ;-)

12 comments:

sin wak said...

Intended for executing this additionally exploration within the unique pop under ads circle, which often will let you generate income, many you should do is usually to fit this label of their circle in conjunction with other sorts of applicable key terms that will assist you in figuring out if you experience almost any unique dilemma to be able unique corporation. One example is, people fit this label on the corporation in conjunction with other sorts of key terms like check complications connected with hoaxes. If you will get a number of facts, which often states that that it unique circle don't even have some sort of trustworthiness of definitely not doing in time expenses, then you definately really should lower of which available promptly. A different added in means of looking for a beneficial CPA circle will likely be by means of picking out the cpm advertising web page to investigate this cracked inbound links or maybe graphics which will really exist. You have to to make certain applicable websites will be rich simply in addition to easily. It's also sensible to seek to contact the support services in addition to mail these individuals in relation to ones requests in addition to issues in addition to look at the amount of time period is it being considered by means of these individuals intended for addressing ones issues. You will need to look at every aspect on the circle possibly the unit volumes. More or less everything facts will likely be effective additionally. Everthing will depend on people, if you would like do well in addition to acquire a ton of money on the circle. At this time there popunder isn't a different complications; your responsibility will probably often connect you with come to be loaded so they can bust people.

PDF signature said...

Congratulations, your blog is appealing and informative. Going through your Information, I found quite a few new ideas to implement.

Hug Day said...

happy hug day 2016
happy hug day 2016 Date SMS Messages Quotes
How Hug Day Is Celebrated
Happy hug day sms

Hug Day said...

happy hug day 2016
happy hug day 2016 Date SMS Messages Quotes
Hug day Celebration Ideas
hug day sms for bf/gf

风骚达哥 said...

20160423 junda
air jordans
cheap oakley sunglasses
kate spade outlet
adidas stan smith
ray ban sunglasses
michael kors outlet
nike air max shoes
cheap omega watches
yeezy boost 350
michael kors outlet online
michael kors outlet online
nike free runs
air jordan uk
michael kors outlet online
pandora charms
ray ban outlet
calvin klein outlet
fitflops sale clearance
toms outlet
nike huarache white
sac longchamp
toms outlet
michael kors outlet clearance
bottega veneta outlet
armani watches
gucci handbags
nike blazer
oakley sunglasses
true religion jeans
cheap jordans
ray bans
hollister
bottega veneta handbags
jimmy choo outlet
oakley sunglasses
converse
prada outlet
reebok shoes
true religion
burberry outlet

Fangyaya said...

air jordan shoes
air jordan 4
louis vuitton outlet online
kobe shoes 11
louis vuitton outlet stores
toms shoes
air max 95
michael kors outlet clearance
coach outlet
ray ban outlet
louis vuitton outlet
hollister clothing
jordan 3 powder blue
nfl jerseys
louis vuitton outlet
longchamp le pliage
michael kors outlet clearance
kd 7 shoes
michael kors outlet online
louis vuitton
kobe 8
jordan retro 8
lebron james shoes 13
celine bags
nike store
pandora jewelry
louis vuitton purses
kate spade handbags
coach outlet
michael kors outlet online
nike running shoes
ralph lauren outlet
louis vuitton outlet
cheap jordans
coach factory outlet
michael kors purses
gucci belts
louis vuitton outlet stores
adidas yeezy 350
tory burch flats
20168.8chenjinyan

dada24 Xu said...

ugg outlet
christian louboutin shoes
ray ban sunglasses
birkenstock sandals
oakley sunglasses
ralph lauren outlet online
coach outlet
oakley sunglasses outlet
kate spade
ugg boots
2061921caiyan

chenlina said...

michael kors uk
uggs on sale
pittsburgh steelers jerseys
louis vuitton outlet
ray ban sunglasses
michael kors outlet clearance
coach outlet store online
ralph lauren clearance
ugg boots
pandora jewelry
chenlina20160923

Paulo said...

What you have to think about bank dispossessions. When you purchase a home, you as a rule put some cash down and after that you have a home loan on the rest of the equalization of the property. usapaydayloanstore.com/chicago

Paulo said...

There are no charges or application costs at all to process and giving a government understudy solidification advance. It's illegal to request progress expenses for organizing a government instruction credit or solidifying elected training advances. https://www.usacheckcashingstore.com/san-diego

Paulo said...

With a simple alternative to reimburse the advance, it gets to be helpful the distance around. This unsecured business loan is reimbursed through future deals exchanges from your business charge card exchanges. Payday Loans San-diego

Home Improvement NYC said...

Ajrin Construction Inc. is a licensed New York general construction firm working as General Contractors in NYC, truly devoted to our services and remain firm until our Clients’ purposes are served to satisfaction. We feel much concerned of the value of your property, safety and security more than our profit or anything else.
Home Improvement NYC