<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Eric Kraus' SharePoint/.NET Blog</title><link>http://blogs.msdn.com/ekraus/default.aspx</link><description>What the field says about MOSS.</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Packing up My Documents: A PowerShell Story</title><link>http://blogs.msdn.com/ekraus/archive/2009/06/12/packing-up-my-documents-a-powershell-story.aspx</link><pubDate>Fri, 12 Jun 2009 21:31:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9739436</guid><dc:creator>ekraus</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/ekraus/comments/9739436.aspx</comments><wfw:commentRss>http://blogs.msdn.com/ekraus/commentrss.aspx?PostID=9739436</wfw:commentRss><description>&lt;p&gt;I am frequently asked by colleagues and customers for a dump of all of my SharePoint content (presentations, white papers, etc.)&amp;#160; While I continue to add files like these to my hard drive in various different locations, it has started to take me a while to aggregate them all forward.&amp;#160; It dawned on me that this need not be a half an hour exercise of locating documents.   &lt;br /&gt;    &lt;br /&gt;Bing!&amp;#160; PowerShell    &lt;br /&gt;    &lt;br /&gt;Thanks to another colleagues blog:&amp;#160; &lt;a href="http://blogs.msdn.com/daiken/archive/2007/02/12/compress-files-with-windows-powershell-then-package-a-windows-vista-sidebar-gadget.aspx"&gt;http://blogs.msdn.com/daiken/archive/2007/02/12/compress-files-with-windows-powershell-then-package-a-windows-vista-sidebar-gadget.aspx&lt;/a&gt;    &lt;br /&gt;    &lt;br /&gt;I created a few functions and added them to my PowerShell module that loads with my profile.&amp;#160; Now it’s as simple as:    &lt;br /&gt;    &lt;br /&gt;    &lt;br /&gt;&lt;font size="3" face="Courier New"&gt;Get-ChildItem -path c: -filter *sharepoint* -recurse | create-zip &amp;quot;c:\sharepoint.zip&amp;quot;&lt;/font&gt;    &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;#Special Thanks to:&amp;#160; &lt;br /&gt;# &lt;a href="http://blogs.msdn.com/daiken/archive/2007/02/12/compress-files-with-windows-powershell-then-package-a-windows-vista-sidebar-gadget.aspx"&gt;http://blogs.msdn.com/daiken/archive/2007/02/12/compress-files-with-windows-powershell-then-package-a-windows-vista-sidebar-gadget.aspx&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;# Create a new zip file from pipeline   &lt;br /&gt;function Create-Zip()    &lt;br /&gt;{    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; param    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; (    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; [string]$zipFile    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; );    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; New-Zip -zipfileName $zipFile    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; $zip = Get-Zip -zipfileName $zipFile    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; #loop through files in pipeline    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; foreach($file in $input)    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; {    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; #add file to zip and sleep 1/2 second    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; $zip.CopyHere($file.FullName)    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Start-sleep -milliseconds 500    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; } &lt;/p&gt;  &lt;p&gt;} &lt;/p&gt;  &lt;p&gt;#create a new zip file   &lt;br /&gt;function New-Zip    &lt;br /&gt;{    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; param([string]$zipfilename)    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; set-content $zipfilename (&amp;quot;PK&amp;quot; + [char]5 + [char]6 + (&amp;quot;$([char]0)&amp;quot; * 18))    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; (dir $zipfilename).IsReadOnly = $false    &lt;br /&gt;} &lt;/p&gt;  &lt;p&gt;#get the zip file   &lt;br /&gt;function Get-Zip    &lt;br /&gt;{    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; param([string]$zipfilename)    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; if(test-path($zipfilename))    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; {    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; $shellApplication = new-object -com shell.application    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; $zipFullFilename = (get-childitem $zipfilename).FullName    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; $shellApplication.NameSpace($zipFullFilename)    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; }    &lt;br /&gt;}     &lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9739436" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/ekraus/archive/tags/PowerShell/default.aspx">PowerShell</category></item><item><title>Twitter Basics</title><link>http://blogs.msdn.com/ekraus/archive/2009/06/10/twitter-basics.aspx</link><pubDate>Wed, 10 Jun 2009 16:56:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9724599</guid><dc:creator>ekraus</dc:creator><slash:comments>4</slash:comments><comments>http://blogs.msdn.com/ekraus/comments/9724599.aspx</comments><wfw:commentRss>http://blogs.msdn.com/ekraus/commentrss.aspx?PostID=9724599</wfw:commentRss><description>&lt;p&gt;&lt;em&gt;Twitter for those who just want to consume information…&lt;/em&gt;    &lt;br /&gt;    &lt;br /&gt;By now most of the world has at least heard of Twitter. For those who aren’t already using it, I imagine the vast majority have taken a stance of&amp;#160; “Why would anyone care when I go to the bathroom?”&amp;#160; Or, “Not another web site I need to sign up for…”&amp;#160; &lt;br /&gt;    &lt;br /&gt;Well, as an avid Twitter user, I couldn’t agree more.&amp;#160; However, there is a RIDUCULOUS amount of quality information out on Twitter to consume, information that &lt;strong&gt;&lt;u&gt;&lt;font color="#ff0000"&gt;doesn’t require you to create an account&lt;/font&gt;&lt;/u&gt;&lt;/strong&gt; to retrieve.&amp;#160; Albeit, creating one will bring you added value…&amp;#160; The real tricks are finding the right people and filtering out all of the garbage.&amp;#160; &lt;/p&gt;  &lt;p&gt;Here are some tips that have helped me find great value in this tool:   &lt;br /&gt;&lt;/p&gt;  &lt;h4&gt;Finding Information&lt;/h4&gt;  &lt;p&gt;-If you are looking for people to follow, check out &lt;a href="http://twibes.com"&gt;http://twibes.com&lt;/a&gt; It’s a collection of “opt-in” groups of people that usually Twitter about a common topic. The site gives you an aggregated view of what these people are saying. It’s an easy way to find people that are consistently providing good content on a subject.&amp;#160; Once you find a few people, you can go to a person’s Twitter page (&lt;a href="http://twitter.com/&amp;lt;username"&gt;http://twitter.com/&amp;lt;username&lt;/a&gt;&amp;gt;) and see who he/she is following.&amp;#160; No guarantee, but good chance they are following other quality people.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/ekraus/WindowsLiveWriter/TwitterBacktoBasics_A54D/Twibe.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Twibe" border="0" alt="Twibe" src="http://blogs.msdn.com/blogfiles/ekraus/WindowsLiveWriter/TwitterBacktoBasics_A54D/Twibe_thumb.png" width="161" height="244" /&gt;&lt;/a&gt;     &lt;br /&gt;&lt;strong&gt;“SharePoint” group on Twibes&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;-If you are just looking for some content, check out &lt;a href="http://topsy.com"&gt;http://topsy.com&lt;/a&gt;.&amp;#160; It’s a search engine crawling only Twitter messages with links, based on popularity.&amp;#160; &lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/ekraus/WindowsLiveWriter/TwitterBacktoBasics_A54D/Topsy.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Topsy" border="0" alt="Topsy" src="http://blogs.msdn.com/blogfiles/ekraus/WindowsLiveWriter/TwitterBacktoBasics_A54D/Topsy_thumb.png" width="244" height="209" /&gt;&lt;/a&gt;     &lt;br /&gt;&lt;strong&gt;Search for “sharepoint” on Topsy&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;-While I don’t like the Twitter web site itself, I don’t mind Twitter search.&amp;#160; &lt;a href="http://search.twitter.com"&gt;http://search.twitter.com&lt;/a&gt;&amp;#160; The biggest benefit here is the available RSS feed.    &lt;br /&gt;    &lt;br /&gt;&lt;a href="http://blogs.msdn.com/blogfiles/ekraus/WindowsLiveWriter/TwitterBacktoBasics_A54D/twitterSearch.png"&gt;&lt;strong&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="twitterSearch" border="0" alt="twitterSearch" src="http://blogs.msdn.com/blogfiles/ekraus/WindowsLiveWriter/TwitterBacktoBasics_A54D/twitterSearch_thumb.png" width="244" height="218" /&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;u&gt;        &lt;br /&gt;&lt;/u&gt;Twitter Search      &lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;h3&gt;How to consume?&lt;/h3&gt;  &lt;p&gt;While visiting these sites gives you an easy way to access this information without even creating an account, it may not be as convenient as other methods.&amp;#160; After you find people to follow or search criteria from these sites, you will notice that most provide an RSS feed for your query.&amp;#160; Add that RSS feed to Internet Explorer, Outlook 2007, or other RSS reader.&amp;#160; &lt;br /&gt;&lt;/p&gt; -Another great site is &lt;a title="http://www.peoplebrowsr.com/" href="http://www.peoplebrowsr.com/"&gt;http://www.peoplebrowsr.com/&lt;/a&gt;&amp;#160; It’s basically TweetDeck (see below) as a website.&amp;#160; While still a bit buggy in beta, it’s a great way to configure search queries like in TweetDeck without creating an account or downloading a client application.  &lt;br /&gt;  &lt;br /&gt;&lt;a href="http://blogs.msdn.com/blogfiles/ekraus/WindowsLiveWriter/TwitterBacktoBasics_A54D/peopleBrowsr.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="peopleBrowsr" border="0" alt="peopleBrowsr" src="http://blogs.msdn.com/blogfiles/ekraus/WindowsLiveWriter/TwitterBacktoBasics_A54D/peopleBrowsr_thumb.png" width="244" height="191" /&gt;&lt;/a&gt;   &lt;br /&gt;&lt;strong&gt;PeopleBrowsr   &lt;br /&gt;    &lt;br /&gt;    &lt;br /&gt;&lt;/strong&gt;  &lt;h3&gt;If you decide to contribute, some additional tips:&lt;/h3&gt;  &lt;p&gt;-Sign up for an account on Twitter.com site and then close your browser. The Twitter web application is horrible and you’ll never find value using the website. &lt;/p&gt;  &lt;p&gt;-Download &lt;a href="http://tweetdeck.com/beta/"&gt;TweetDeck&lt;/a&gt;&amp;#160; After you set it up, add a couple search columns based on what information you are looking for.    &lt;br /&gt;    &lt;br /&gt;&lt;a href="http://blogs.msdn.com/blogfiles/ekraus/WindowsLiveWriter/TwitterBacktoBasics_A54D/TweetDeck.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="TweetDeck" border="0" alt="TweetDeck" src="http://blogs.msdn.com/blogfiles/ekraus/WindowsLiveWriter/TwitterBacktoBasics_A54D/TweetDeck_thumb.png" width="244" height="160" /&gt;&lt;/a&gt;     &lt;br /&gt;&lt;strong&gt;My TweetDeck&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;-Network!&amp;#160; “RT” (re-tweet) messages that you find useful. It exposes you to the author. If the author thinks you provide good content, he/she will follow you. The more people that follow you, the more that will see the messages you contribute. This is useful when you are looking to post a question.&lt;/p&gt;  &lt;p&gt;I look at Twitter as a personal AP wire. There’s a lot of information traveling by, but with a few custom searches/filters, I can grab some really good info. I spend a few minutes every night reading what the world is saying about SharePoint, PowerShell, Microsoft, and Kate Moss. Just kidding about Kate Moss…but for a while I did get some garbage float in on my “MOSS or WSS” search.    &lt;br /&gt;    &lt;br /&gt;Additionally, Twitter has become an informal support forum for questions like, “Has anyone seen this error before….” I usually get a response or two within 5 minutes.&lt;/p&gt;  &lt;p&gt;Even if you never contribute, Twitter is an excellent source of “what’s going on in the world regarding ____ “ I encourage you to check it out.&amp;#160; Just don’t try to read everything…&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9724599" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/ekraus/archive/tags/social+networking/default.aspx">social networking</category><category domain="http://blogs.msdn.com/ekraus/archive/tags/social+media/default.aspx">social media</category><category domain="http://blogs.msdn.com/ekraus/archive/tags/twitter/default.aspx">twitter</category></item><item><title>PowerShell Shortcuts</title><link>http://blogs.msdn.com/ekraus/archive/2009/03/30/powershell-shortcuts.aspx</link><pubDate>Mon, 30 Mar 2009 16:01:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9519331</guid><dc:creator>ekraus</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/ekraus/comments/9519331.aspx</comments><wfw:commentRss>http://blogs.msdn.com/ekraus/commentrss.aspx?PostID=9519331</wfw:commentRss><description>&lt;p&gt;I’m all about shortcuts when it comes to development and there’s no exception for PowerShell.   &lt;br /&gt;    &lt;br /&gt;Browsing around this morning, I found two useful shortcuts that I didn’t know existed.    &lt;br /&gt;    &lt;br /&gt;&lt;strong&gt;&lt;font size="4"&gt;F7&amp;#160; “History”&lt;/font&gt;&lt;/strong&gt;-&amp;#160; Pressing the F7 key will show a dialog window in PowerShell with a list of commands from your history.&amp;#160; You can also access this list by using the cmdlet&amp;#160; “Get-History”&amp;#160; but I find the dialog WAY more easy than the cmdlet or using the Up arrow key.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;font size="4"&gt;F8&amp;#160; “Filtered Commands” &lt;/font&gt;&lt;/strong&gt;-&amp;#160; Pressing the F8 key is much like using the Up arrow key to scroll backwards through your list of commands; however, it allows you to filter the list of commands.&amp;#160; Here’s an example of a list of commands:    &lt;br /&gt;    &lt;br /&gt;1.&amp;#160; cls    &lt;br /&gt;2.&amp;#160; Write-Host “Starting my example”    &lt;br /&gt;3.&amp;#160; cls    &lt;br /&gt;4.&amp;#160; Write-Output “This is fun”    &lt;br /&gt;5.&amp;#160; cls    &lt;br /&gt;6.&amp;#160; Write-Warning –message “Uh oh, too much fun”    &lt;br /&gt;7.&amp;#160; cls    &lt;br /&gt;8.&amp;#160; Write-Host “Ending my example”    &lt;br /&gt;    &lt;br /&gt;The way to efficiently use F8, is for command line 6, type only: “write” and then press F8 several times.&amp;#160; It will cycle through all of your previous commands, but only those that started with “write”&amp;#160; (lines 2, 4, and 6).&amp;#160; &lt;br /&gt;    &lt;br /&gt;&lt;strong&gt;&lt;u&gt;Cool: &lt;/u&gt;&lt;/strong&gt;- you will also notice that the cursor is positioned at the end of your filter, so you can easily move it ahead or behind and do a Ctrl + End&amp;#160; to delete the rest of the command line to continue writing.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9519331" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/ekraus/archive/tags/PowerShell/default.aspx">PowerShell</category></item><item><title>SharePoint Administration with PowerShell</title><link>http://blogs.msdn.com/ekraus/archive/2009/03/16/sharepoint-administration-with-powershell.aspx</link><pubDate>Mon, 16 Mar 2009 17:43:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9481758</guid><dc:creator>ekraus</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/ekraus/comments/9481758.aspx</comments><wfw:commentRss>http://blogs.msdn.com/ekraus/commentrss.aspx?PostID=9481758</wfw:commentRss><description>&lt;p&gt;Last weekend, I had the opportunity to speak at Boston’s &lt;a href="http://www.sharepointsaturday.org/" target="_blank"&gt;SharePoint Saturday&lt;/a&gt;.&amp;#160; I met some great people, enjoyed some EXCELLENT food, and talked A LOT of SharePoint.    &lt;br /&gt;    &lt;br /&gt;For those who couldn’t make it, here is a link to the slide deck from my session: &lt;/p&gt;  &lt;div style="text-align: left; width: 425px" id="__ss_1151700"&gt;&lt;a style="margin: 12px 0px 3px; display: block; font: 14px helvetica,arial,sans-serif; text-decoration: underline" title="SharePoint Administration with PowerShell" href="http://www.slideshare.net/erickraus/sharepoint-administration-with-powershell?type=powerpoint"&gt;SharePoint Administration with PowerShell&lt;/a&gt;&lt;object style="margin:0px" width="425" height="355"&gt;&lt;param name="movie" value="http://static.slideshare.net/swf/ssplayer2.swf?doc=sharepointadministrationpowershell-090316104420-phpapp02&amp;amp;stripped_title=sharepoint-administration-with-powershell" /&gt;&lt;param name="allowFullScreen" value="true" /&gt;&lt;param name="allowScriptAccess" value="always" /&gt;&lt;embed src="http://static.slideshare.net/swf/ssplayer2.swf?doc=sharepointadministrationpowershell-090316104420-phpapp02&amp;amp;stripped_title=sharepoint-administration-with-powershell" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"&gt;&lt;/embed&gt;&lt;/object&gt;    &lt;div style="font-family: tahoma,arial; height: 26px; font-size: 11px; padding-top: 2px"&gt;View more &lt;a style="text-decoration: underline" href="http://www.slideshare.net/"&gt;presentations&lt;/a&gt; from &lt;a style="text-decoration: underline" href="http://www.slideshare.net/erickraus"&gt;Eric Kraus&lt;/a&gt;.&lt;/div&gt; &lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9481758" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/ekraus/archive/tags/SharePoint/default.aspx">SharePoint</category><category domain="http://blogs.msdn.com/ekraus/archive/tags/MOSS/default.aspx">MOSS</category><category domain="http://blogs.msdn.com/ekraus/archive/tags/WSS/default.aspx">WSS</category><category domain="http://blogs.msdn.com/ekraus/archive/tags/Object+Model/default.aspx">Object Model</category><category domain="http://blogs.msdn.com/ekraus/archive/tags/PowerShell/default.aspx">PowerShell</category></item><item><title>Disabling Enterprise Feature Buttons</title><link>http://blogs.msdn.com/ekraus/archive/2009/02/23/disabling-enterprise-feature-buttons.aspx</link><pubDate>Tue, 24 Feb 2009 00:13:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9441951</guid><dc:creator>ekraus</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/ekraus/comments/9441951.aspx</comments><wfw:commentRss>http://blogs.msdn.com/ekraus/commentrss.aspx?PostID=9441951</wfw:commentRss><description>&lt;p&gt;I discovered a while back that it is not possible to hide the Enterprise Features “Features” because they have Activation Dependencies.&amp;#160; You can see more on what these features include in this post:&amp;#160; &lt;a href="http://blogs.msdn.com/ekraus/archive/2008/08/13/enterprise-features-exposed.aspx" target="_blank"&gt;Enterprise Features Exposed&lt;/a&gt;.    &lt;br /&gt;    &lt;br /&gt;In a conversation this afternoon, I was talking through this concept again and thought that if disabling the feature wasn’t possible, at least I could hide the button on the page.    &lt;br /&gt;    &lt;br /&gt;So, I did a view source on the page and pulled the control ID (for which for 99% of the SharePoint sites out there will be the same).&amp;#160; Then, I added a simple style to the &lt;strong&gt;application.master&lt;/strong&gt; page in “12 Hive\TEMPLATE\LAYOUTS” which serves ManageFeatures.aspx page.    &lt;br /&gt;    &lt;br /&gt;&lt;font color="#0000ff"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#800000"&gt;script&lt;/font&gt; &lt;font color="#ff0000"&gt;language&lt;/font&gt;&lt;font color="#0000ff"&gt;=”javascript”&amp;gt;&lt;/font&gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;font color="#0000ff"&gt;var&lt;/font&gt; siteCollectionFeatureButton = &lt;font color="#800000"&gt;‘ctl00_PlaceHolderMain_featact_rptrFeatureList_ctl03_btnActivate’&lt;/font&gt;;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;font color="#0000ff"&gt;var&lt;/font&gt; siteFeatureButton = &lt;font color="#800000"&gt;‘ctl00_PlaceHolderMain_featact_rptrFeatureList_ctl17_btnActivate’&lt;/font&gt;;    &lt;br /&gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;font color="#0000ff"&gt;var&lt;/font&gt; featureButton = document.getElementById(siteCollectionFeatureButton);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; featureButton.style.visibility = &lt;font color="#800000"&gt;“hidden”&lt;/font&gt;;    &lt;br /&gt;    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; featureButton = document.getElementById(siteFeatureButton);    &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; featureButton.style.visibility = &lt;font color="#800000"&gt;“hidden”&lt;/font&gt;;    &lt;br /&gt;&lt;font color="#0000ff"&gt;&amp;lt;/&lt;font color="#800000"&gt;script&lt;/font&gt;&amp;gt;&lt;/font&gt;    &lt;br /&gt;    &lt;br /&gt;    &lt;br /&gt;&lt;a href="http://blogs.msdn.com/blogfiles/ekraus/WindowsLiveWriter/DisablingEnterpriseFeatureButtons_10036/hidingEnterprise.jpg"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="hidingEnterprise" border="0" alt="hidingEnterprise" src="http://blogs.msdn.com/blogfiles/ekraus/WindowsLiveWriter/DisablingEnterpriseFeatureButtons_10036/hidingEnterprise_thumb.jpg" width="504" height="194" /&gt;&lt;/a&gt;     &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;Whether hiding to prevent activation or deactivation, both will still be possible via object model and stsadm.exe&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9441951" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/ekraus/archive/tags/SharePoint/default.aspx">SharePoint</category><category domain="http://blogs.msdn.com/ekraus/archive/tags/MOSS/default.aspx">MOSS</category><category domain="http://blogs.msdn.com/ekraus/archive/tags/Features/default.aspx">Features</category><category domain="http://blogs.msdn.com/ekraus/archive/tags/Enterprise/default.aspx">Enterprise</category></item><item><title>SharePoint + PowerShell Memory Leak</title><link>http://blogs.msdn.com/ekraus/archive/2009/02/12/sharepoint-powershell-memory-leak.aspx</link><pubDate>Fri, 13 Feb 2009 01:04:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9416508</guid><dc:creator>ekraus</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/ekraus/comments/9416508.aspx</comments><wfw:commentRss>http://blogs.msdn.com/ekraus/commentrss.aspx?PostID=9416508</wfw:commentRss><description>&lt;p&gt;It’s very important that anyone working with SharePoint object model be concerned with the appropriate management of memory.&amp;#160; Most developers are aware of the need to dispose objects properly, but we some times get sloppy when it comes to things like PowerShell.   &lt;br /&gt;    &lt;br /&gt;&lt;a href="http://sharepoint.microsoft.com/blogs/zach" target="_blank"&gt;Zach Rosenfield&lt;/a&gt; just posted a very important note for anyone using PowerShell with the SharePoint object model.&amp;#160; A memory leak can occur on EVERY object if the objects are referenced across several “sentences” or pipelines.    &lt;br /&gt;    &lt;br /&gt;e.g.&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;    &lt;br /&gt;PS&amp;gt;&amp;#160;&amp;#160; $site = new-object Microsoft.SharePoint.SPSite(“http://contoso”)    &lt;br /&gt;PS&amp;gt;&amp;#160;&amp;#160; $site.Title    &lt;br /&gt;PS&amp;gt;&amp;#160;&amp;#160; $site.Dispose()    &lt;br /&gt;    &lt;br /&gt;The example above would still cause some memory to leak because the SPSite object is referenced on several pipelines (threads) and lost along the way.    &lt;br /&gt;    &lt;br /&gt;Zach’s post can be found here with a good work around:&amp;#160; &lt;a title="http://blogs.msdn.com/sharepoint/archive/2009/02/11/sharepoint-and-powershell-knowledge.aspx" href="http://blogs.msdn.com/sharepoint/archive/2009/02/11/sharepoint-and-powershell-knowledge.aspx"&gt;http://blogs.msdn.com/sharepoint/archive/2009/02/11/sharepoint-and-powershell-knowledge.aspx&lt;/a&gt;    &lt;br /&gt;    &lt;br /&gt;&lt;strong&gt;&lt;u&gt;&lt;/u&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;h4&gt;&lt;strong&gt;&lt;u&gt;IMPORTANT:&lt;/u&gt;&lt;/strong&gt;    &lt;br /&gt;&lt;/h4&gt;  &lt;p&gt;&lt;strong&gt;&lt;u&gt;&lt;/u&gt;&lt;/strong&gt;I did confirm today that the issue only pertains to scripts executed across multiple threads/pipelines in the shell.&amp;#160; This means that writing your commands in functions, script files, modules, etc. are all still recommended best practices as they are executed from the shell in a single sentence….thus resulting in a single pipeline (thread).    &lt;br /&gt;    &lt;br /&gt;e.g.&amp;#160; &lt;br /&gt;    &lt;br /&gt;PS&amp;gt;&amp;#160;&amp;#160; Get-SPSiteTitle(“http://contoso”)    &lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9416508" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/ekraus/archive/tags/SharePoint/default.aspx">SharePoint</category><category domain="http://blogs.msdn.com/ekraus/archive/tags/MOSS/default.aspx">MOSS</category><category domain="http://blogs.msdn.com/ekraus/archive/tags/WSS/default.aspx">WSS</category><category domain="http://blogs.msdn.com/ekraus/archive/tags/Object+Model/default.aspx">Object Model</category><category domain="http://blogs.msdn.com/ekraus/archive/tags/PowerShell/default.aspx">PowerShell</category><category domain="http://blogs.msdn.com/ekraus/archive/tags/Development/default.aspx">Development</category></item><item><title>Filter SharePoint Event Log Entries</title><link>http://blogs.msdn.com/ekraus/archive/2009/02/04/filter-sharepoint-event-log-entries.aspx</link><pubDate>Thu, 05 Feb 2009 01:52:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9397248</guid><dc:creator>ekraus</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/ekraus/comments/9397248.aspx</comments><wfw:commentRss>http://blogs.msdn.com/ekraus/commentrss.aspx?PostID=9397248</wfw:commentRss><description>&lt;p&gt;I’ve posted this under my &lt;a href="http://blogs.msdn.com/ekraus/archive/2009/01/30/101-uses-for-powershell.aspx" target="_blank"&gt;101 Uses for PowerShell&lt;/a&gt; , but I thought it was so helpful that it deserved it’s own post.    &lt;br /&gt;    &lt;br /&gt;The script below uses PowerShell to get a collection of event entries from the “Application” Event Log.&amp;#160; It passes a wildcard filter for any source like&amp;#160; ‘*sharepoint*’ and returns the last 20 entries written to the event log.&amp;#160; &lt;br /&gt;    &lt;br /&gt;The cool thing is that these objects are piped to a gridview.&amp;#160; From there, I can apply additional filtering, like:&amp;#160; “Show me all events where ‘user’ is in the message.”&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;div style="background-color: #ffffcc"&gt;   &lt;br /&gt;get-eventlog –logname Application –source ‘*sharepoint*’ –newest 20 | out-gridview     &lt;br /&gt;    &lt;br /&gt;&lt;/div&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/ekraus/WindowsLiveWriter/FilteredEventLogforSharePointEvents_10C76/eventlogPS.jpg"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="eventlogPS" border="0" alt="eventlogPS" src="http://blogs.msdn.com/blogfiles/ekraus/WindowsLiveWriter/FilteredEventLogforSharePointEvents_10C76/eventlogPS_thumb.jpg" width="404" height="307" /&gt;&lt;/a&gt;&amp;#160; &lt;br /&gt;    &lt;br /&gt;Wanna take your event log entries home with you?&amp;#160; Try this out:&amp;#160; instead of sending the entries through the pipeline to the gridview, send them to a CSV file:&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;div style="background-color: #ffffcc"&gt;   &lt;br /&gt;get-eventlog –logname Application –source ‘*sharepoint*’&amp;#160; | export-csv c:\eventlog.csv&amp;#160; &lt;br /&gt;    &lt;br /&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9397248" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/ekraus/archive/tags/SharePoint/default.aspx">SharePoint</category><category domain="http://blogs.msdn.com/ekraus/archive/tags/Support/default.aspx">Support</category><category domain="http://blogs.msdn.com/ekraus/archive/tags/PowerShell/default.aspx">PowerShell</category></item><item><title>101 Uses for PowerShell</title><link>http://blogs.msdn.com/ekraus/archive/2009/01/30/101-uses-for-powershell.aspx</link><pubDate>Fri, 30 Jan 2009 23:11:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9385479</guid><dc:creator>ekraus</dc:creator><slash:comments>3</slash:comments><comments>http://blogs.msdn.com/ekraus/comments/9385479.aspx</comments><wfw:commentRss>http://blogs.msdn.com/ekraus/commentrss.aspx?PostID=9385479</wfw:commentRss><description>I’ve had a request to consolidate all of my little script examples into a single blog post. While I’m not starting out with all 101 examples, I will continually update this post with scripts ideas and examples. Enjoy. Active Directory Using Quest’s FREE...(&lt;a href="http://blogs.msdn.com/ekraus/archive/2009/01/30/101-uses-for-powershell.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9385479" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/ekraus/archive/tags/PowerShell/default.aspx">PowerShell</category></item><item><title>Feature Development Help From PowerShell</title><link>http://blogs.msdn.com/ekraus/archive/2009/01/29/feature-development-help-from-powershell.aspx</link><pubDate>Thu, 29 Jan 2009 22:46:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9383810</guid><dc:creator>ekraus</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/ekraus/comments/9383810.aspx</comments><wfw:commentRss>http://blogs.msdn.com/ekraus/commentrss.aspx?PostID=9383810</wfw:commentRss><description>In my last post, I wrote about using WSPBuilder to automate the process of creating the manifest.xml and solution.ddf files.&amp;#160; But what about the elements.xml file in your feature?&amp;#160; For a lot of my customers doing WCM solutions on MOSS, they...(&lt;a href="http://blogs.msdn.com/ekraus/archive/2009/01/29/feature-development-help-from-powershell.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9383810" width="1" height="1"&gt;</description></item><item><title>Automating your SharePoint Development with PowerShell</title><link>http://blogs.msdn.com/ekraus/archive/2009/01/27/automating-your-sharepoint-development-with-powershell.aspx</link><pubDate>Wed, 28 Jan 2009 03:43:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9379632</guid><dc:creator>ekraus</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/ekraus/comments/9379632.aspx</comments><wfw:commentRss>http://blogs.msdn.com/ekraus/commentrss.aspx?PostID=9379632</wfw:commentRss><description>Developing in SharePoint is much like preparing a large holiday meal.&amp;#160; It involves strict ingredients for the recipes, which must be prepared in the correct order using the finite tools you have in your kitchen.&amp;#160; No matter how many times you...(&lt;a href="http://blogs.msdn.com/ekraus/archive/2009/01/27/automating-your-sharepoint-development-with-powershell.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9379632" width="1" height="1"&gt;</description></item><item><title>Twin Cities SharePoint Camp: SharePoint+OBA</title><link>http://blogs.msdn.com/ekraus/archive/2009/01/26/twin-cities-sharepoint-camp-sharepoint-oba.aspx</link><pubDate>Tue, 27 Jan 2009 05:09:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9376846</guid><dc:creator>ekraus</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/ekraus/comments/9376846.aspx</comments><wfw:commentRss>http://blogs.msdn.com/ekraus/commentrss.aspx?PostID=9376846</wfw:commentRss><description>Last weekend, I had the wonderful opportunity to speak at the Twin Cities SharePoint Camp sponsored by New Horizons.&amp;#160; There was a great turnout for this FREE event.&amp;#160; If you didn’t make it this time around – be sure to make it in Summer 2009....(&lt;a href="http://blogs.msdn.com/ekraus/archive/2009/01/26/twin-cities-sharepoint-camp-sharepoint-oba.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9376846" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/ekraus/archive/tags/SharePoint/default.aspx">SharePoint</category><category domain="http://blogs.msdn.com/ekraus/archive/tags/Development/default.aspx">Development</category><category domain="http://blogs.msdn.com/ekraus/archive/tags/Office/default.aspx">Office</category><category domain="http://blogs.msdn.com/ekraus/archive/tags/OBA/default.aspx">OBA</category><category domain="http://blogs.msdn.com/ekraus/archive/tags/ribbon/default.aspx">ribbon</category><category domain="http://blogs.msdn.com/ekraus/archive/tags/web+service/default.aspx">web service</category></item><item><title>More OBA Resources</title><link>http://blogs.msdn.com/ekraus/archive/2009/01/23/more-oba-resources.aspx</link><pubDate>Fri, 23 Jan 2009 15:50:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9372785</guid><dc:creator>ekraus</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/ekraus/comments/9372785.aspx</comments><wfw:commentRss>http://blogs.msdn.com/ekraus/commentrss.aspx?PostID=9372785</wfw:commentRss><description>Happy Friday.&amp;#160; As I’m diving deeper and deeper into OBA development and Office integration, I’m discovering more and more how much information actually IS out there on this stuff…just not as surfaced as say, “SharePoint development”. With the economy...(&lt;a href="http://blogs.msdn.com/ekraus/archive/2009/01/23/more-oba-resources.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9372785" width="1" height="1"&gt;</description></item><item><title>A look into PowerShell 2.0 CTP3 Integrated Scripting Environment (ISE)</title><link>http://blogs.msdn.com/ekraus/archive/2009/01/14/a-look-into-powershell-2-0-ctp3-integrated-scripting-environment-ise.aspx</link><pubDate>Wed, 14 Jan 2009 19:57:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9319318</guid><dc:creator>ekraus</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/ekraus/comments/9319318.aspx</comments><wfw:commentRss>http://blogs.msdn.com/ekraus/commentrss.aspx?PostID=9319318</wfw:commentRss><description>I’ve been using PowerShell 1.0 for many things SharePoint lately… including a community project with a collection of useful functions and scripts.&amp;#160; (Community Project:&amp;#160; PowerShell Pack for SharePoint can be found here ).&amp;#160; PowerShell provides...(&lt;a href="http://blogs.msdn.com/ekraus/archive/2009/01/14/a-look-into-powershell-2-0-ctp3-integrated-scripting-environment-ise.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9319318" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/ekraus/archive/tags/SharePoint/default.aspx">SharePoint</category><category domain="http://blogs.msdn.com/ekraus/archive/tags/PowerShell/default.aspx">PowerShell</category></item><item><title>Customizing the Ribbon in Office 2007 Applications</title><link>http://blogs.msdn.com/ekraus/archive/2009/01/13/customizing-the-ribbon-in-office-2007-applications.aspx</link><pubDate>Wed, 14 Jan 2009 05:40:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9318055</guid><dc:creator>ekraus</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/ekraus/comments/9318055.aspx</comments><wfw:commentRss>http://blogs.msdn.com/ekraus/commentrss.aspx?PostID=9318055</wfw:commentRss><description>One of the great new features in the Office 2007 application suite is the addition of the Office Ribbon.&amp;#160; While the ribbon provides most commonly used functions in an easy to navigate control, the true power of the ribbon comes in the ability for...(&lt;a href="http://blogs.msdn.com/ekraus/archive/2009/01/13/customizing-the-ribbon-in-office-2007-applications.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9318055" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/ekraus/archive/tags/Development/default.aspx">Development</category><category domain="http://blogs.msdn.com/ekraus/archive/tags/Office/default.aspx">Office</category><category domain="http://blogs.msdn.com/ekraus/archive/tags/OBA/default.aspx">OBA</category><category domain="http://blogs.msdn.com/ekraus/archive/tags/ribbon/default.aspx">ribbon</category></item><item><title>SharePoint on the iPhone</title><link>http://blogs.msdn.com/ekraus/archive/2008/12/18/sharepoint-on-the-iphone.aspx</link><pubDate>Fri, 19 Dec 2008 04:32:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9240389</guid><dc:creator>ekraus</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/ekraus/comments/9240389.aspx</comments><wfw:commentRss>http://blogs.msdn.com/ekraus/commentrss.aspx?PostID=9240389</wfw:commentRss><description>I’ve seen a couple notes regarding this on Twitter , so I thought I’d check it out for myself. A company by the name of Webstate set off to make the next best thing for the iPhone, an application that integrates with SharePoint. After doing some digging...(&lt;a href="http://blogs.msdn.com/ekraus/archive/2008/12/18/sharepoint-on-the-iphone.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9240389" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/ekraus/archive/tags/SharePoint/default.aspx">SharePoint</category><category domain="http://blogs.msdn.com/ekraus/archive/tags/iPhone/default.aspx">iPhone</category></item></channel></rss>