Tag | Powershell Posts

Using the PowerShellToys PowerShellWebPart, I was able to insert a PowerShell command prompt inside my SharePoint page with only a few lines of code and some html. Here is the PowerShellWebPart template that I used: <div style="background-color:Dar... color:white; height:400px; width:650px"> <form method="GET" action="" enctype="multipart/form-dat... PS> <input type=text name="query" size="40" value="<%=$request['quer... /> <input type=submit value="Execute" /> ...
(in dutch as the target audience is dutch speaking!) Ik geef twee seminars over mijn favoriete .NET technologien (WCF en WF) voor SyntraWest SyntraWest IT CLUB for Developers/Architects Seminars 26 mei 09, Windows Communication Foundation Deep Dive 10 Scenarios om een WCF Service aan te spreken. WCF is een zeer breed toepasbaar platform voor distributed applications en services te implementeren. In deze demo georienteerde sessie worden 10 uiteenlopende scenarios besproken waar bij een clientapplicatie ...
At PowerShellToys.com, you’ll find a bunch of new toys for PowerShell, including the first full release of PowerShellASP + free community license. The new toys? PowerShellADO, PowerShellPanel, PowerShellWebPart, and PowerShellRSS. Here’s a brief description of each, in my own words. For the official description and examples, check out PowerShellToys.com. PowerShellASP – write ASP pages with PowerShell scripting instead of vbscript. PowerShellADO – execute PowerShell cmdlets and return the results ...
Developing With Velocity - Phase II In my limited testing environment I have decided to try only the basic sample of MS Velocity found in CTP2 Samples, and what I thought would be the most often used properties of Velocity. By default, the Velocity's DistributedCache service after the installation is not running and is set to manual start, so to begin working with it you will need to launch it. This can be done using the admin PowerShell applet or by starting the Microsoft project code named “Velocity” ...
Velocity - Installation Phase Today I have proceeded with the installation of the MS Velocity CTP3. I would like to mention that first one needs to verify one's system for prerequisites. Basically the most up to date components as a Service Pack of the Windows OS and the latest .Net Framework are needed, also PowerShell 1.0 is a required component because the administration can be later done using PowerShell applets. I also recommend reading the velocity_help.chm file that can be downloaded separately. ...
Steps for installation of DPM to protect MOSS environment. 1- Install the MOSS then WSS sp1 then MOSS sp1 2- Install Knowledge Base article 941422, "Update for Windows SharePoint Services 3.0" (http://go.microsoft.com/fw... 3- Install Knowledge Base article 941422 on all protected servers on which Windows SharePoint SharePoint Services 3.0, Microsoft Office SharePoint Server 2007, and Microsoft Office SharePoint Server 2007 SP1 are installed. 4- Prepare the DPM Box: (Install DPM ...
Normal 0 false false false EN-US JA X-NONE MicrosoftInternetExplorer4 st1\:*{behavior:url(#ieooui) } /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.000... mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman","serif";} Robert ...
PowerShellASP is a powerful tool for generating web pages with PowerShell. It allows you to insert PowerShell script directly into a webpage (a .ps1x page), that code will be executed and the resulting powershell objects are renderable in your page. It also exposes familiar $response, $request, $server, etc. for accessing response, request, and other information about the HTTP context. This example shows how to use PowerShellASP to generate an RSS podcast feed. The dir command in PowerShell (get-childitem) ...
I saw Michael @Gannotti’s Tweets Wiki and thought it was pretty handy. It made me think of @jazzychad’s TweetGrid and how that would be nice inside SharePoint. So I combined these two into my own little twitter search page in SharePoint, and here’s how: Tools I used: RSSBus SharePoint WebPart. Installed and activated the RSSBus SharePoint WebPart, added the webpart to my SharePoint page. I went to search.twitter.com, and did a search for “PowerShell”. The results page includes the RSS feed for the ...
Here's a Powershell script I whipped up to copy all bak files from C:\TEMP to Y:\DEST. It checks to make sure the file is present at the destination before it deletes it from the source. I placed it in a ps1 (the extension for Powershell files) file and scheduled a task to execute a batch file that executes the ps1 file. The reason I had to check for null is that Powershell is kinda dumb and if the source folder is empty it picks it up as a child and performs the Copy-item. $oldPath = "C:\TEMP" $newPath ...
I saw Jeff Hicks’ great Get-LocalMember post this morning, in which he has extensive demonstration of retrieving information about AD group members. I thought it might be a good time to show some of the power of the get-ldap cmdlet. Yes, using the get-ldap cmdlet does require familiarity with the LDAP protocol itself, so in this way it is for more advanced users who just need to do quick LDAP operations without a lot of required coding and with just one universal cmdlet. So, how do I list the group ...
April 30th Microsoft Office - Minneapolis LOW I and II 8300 Norman Center Drive - Suite 950 Bloomington, Minnesota 55437 Microsoft ArcReady 9:00am - 11:45 pm WHAT IS ARCREADY? A forum for aspiring and practicing architects to discuss industry trends An overview of Microsoft’s roadmap as it relates to software architecture A mechanism to solicit your feedback An opportunity to showcase the work you do! WHO SHOULD ATTEND? Architects and Senior Developers who are interested in becoming an architect. ...
A friend of mine was looking for a tool today to extract a list of names and email addresses from a folder in outlook. I know that Outlook has a comprehensive COM based object model which I figured that I should be able to access from Powershell. I quick search turned up articles from both James Manning and Lee Holmes on automating Outlook from Powershell (which I think I have come across before). A bit of poking around using the get-member helped me locate the properties I needed and resulted in ...
Florida has a very active developer community. The biggest problem we seem to have is that all of these different groups usually don't know about each and there hasn't been a "centralized clearinghouse" listing all of the technical communities. Joe Healy, one of our Florida Microsoft Developer Evangelists, maintains a list and one-page flyers for each of the main areas in Florida. I think the eventual plan is that Joe will be updating his site to take advantage of the newer version of Live Maps and ...
Visio is my primary diagramming tool. I wanted to point out a couple of recent links I came accross that help in diagramming various things. The first are stencils that are used on MSDN and TechNet diagrams – these are a set of stencils that can be used in Visio just by adding the stencil to the list for your diagram. Located here: Visio stencils for IT Pro posters http://www.microsoft.com/do... The other is Visio Toolbox. ...
PowerShell users are scripters and developers who love productivity tools. That’s why you and I like PowerShell – it gives us so much to help us work more efficiently. RSSBus is another swiss-army knife of technology along this same vein, and is a handy complement to PowerShell. The biggest wins? #1, RSSBus makes it easy to get data. No matter the source of the data (tons of sources are supported already, with many more to come and an open interface so anybody can build more data connectors), with ...
I needed to create a custom output formatter that would work for any object. Since I need it to work with any object, that means I won’t know before hand what properties the object has, or which of those properties I want to actually output. So, I couldn’t use any of the existing PowerShell format cmdlets like format-table, format-list, or format-custom. Instead, I needed to look at each object, get a list of its properties and their associated value(s), and then loop through those and display them ...
. BizTalk: What features we would like to see in future releases After the MVP Summit [http://geekswithblogs.net/... we, the BizTalk MVPs, have been asked to give feedback to the product team on what features we’d like to see in future releases. I created the list of features and separated it into parts. One is from the global, crazy things than never be implemented. But why don’t imagine? Second ...
On April 1st, 2009, Microsoft is putting on a free 24 hour virtual event covering developer-related topics. There will be 95 live sessions provided via Live Meeting in the following tracks: *Windows Development and Frameworks *Windows Mobile Development *Office and SharePoint Development *Developer Tools, Languages & Practices *Web Development & User Experience More information on each track can be found here: http://www.msfttechdays.com... Macro Shaw will be presenting ...
I’ll be a guest on the extremely informative PowerScripting Podcast this Thursday evening (4/2/09). I’ll talk about some of the PowerShell-related products I am working on at /n software like NetCmdlets, RSSBus, PowerShell Server, as well as join in on some general PowerShell geek fun. Also I’ll give a sneak peak of some new freebie PowerShell toys coming out for PowerShell enthusiasts. Join in on the live UStream at 9pm EST Thursday and say “hi” – or download the podcast later from the PowerScripting ...
NetCmdlet’s get-time cmdlet uses the Internet TIME protocol to query Internet time server’s for the current time. It can also be used to sync the time on the local system with that of the time server. The following PowerShell function gets the time on a time server, optionally syncs the local system to that time, and outputs both times to the console: 1: function sync-time( 2: [string] $server = "clock.psu.edu", 3: [int] $port = 37, 4: [switch] $set = $false) 5: { 6: $servertime = get-time -server ...
Recently a few of us were speaking about what would be the future of BizTalk after the 2009 release. I already had a few thoughts on what I think would be great additions to the product and what strategic directions it may move in. I have checked to ensure that none of my thoughts breach the MVP NDA and after getting the thumbs up I've listed my thoughts below so there might be a bit of discussion on these ideas. AreaThoughtNotesImproved or New FeatureConfiguration SubsystemWithin BizTalk solutions ...
Here's what's happening: Attendees: 428 Sessions: 73 Speakers: 49 Tracks: 15 Sessions: ASP.NET Make your Data Dance with ASP.NET Dynamic Databy Shawn Weisfeld + Show Description ASP.NET Dynamic Data is a framework that lets you create data-driven ASP.NET Web applications easily. It does this by automatically discovering data-model metadata at run time and deriving UI behavior from it. A scaffolding framework provides a functional Web site for viewing and editing data. You can easily customize the ...
Currently, by the time I am posting this stuff SQL Server 2008 is in CTP. And off course, it has several installation issues. For the very first time, when I sit for the installation of SQL Server 2008 Express believe me I run the setup up to four times. So let me share with you, you must need to have the following items installed on your system. Windows Installer 4.5 Redistributed .net Framework 3.5 SP 1 or .net Framework 3.5 SP 1 (Full Download) Power Shell 1.0 Without installing the above component, ...
I really like TDD (Test Driven Design) and like to push messages through the system as soon as possible. I have really enjoyed using Powershell to drive the input of XML files into file receive locations. Here are two of the simplest recipes. Repeatedly dropping the same file This will copy a single file one hundred times, each with a different numeric filename (i.e. 1.xml, 2.xml, etc...) for($i = 0; $i -le 100; $ += 1) { Copy-Item .\SampleMsg.xml C:\FileDrop\IN\msg_$i.xml if($i % 10 -eq 0) { $i ...
1. I installed and activated the RSSBus Web Part for SharePoint, which allows me as a SharePoint owner or member to create a customized web part from one of dozens of RSSBus connectors or any RSS/Atom feed I like, such as a Twitter Search RSS feed. 2. I added the RSSBus Web Part to my SharePoint page, and edited its content using the Source Editor. I am using the following template to format the results of my search.twitter.com RSS result: <rsb:call op=http://search.twitter.co... ...
Easy a pie: function is64bit() { if ([IntPtr].Size -eq 4) { return $false } else { return $true }} Explanation: the size of an IntPtr will be 4 bytes on a 32 bit machine and 8 bytes on a 64 bit machine. I came across the tip somewhere (blog, usenet??) but I couldn't find it again - so I thought I'd share it here for anybody else who is looking for it. Technorati Tags: PowerShell ...
Read or watch ============ Read “What is Azure” web site http://www.microsoft.com/az... Read the white paper by David Chappell http://download.microsoft.c... Watch the PDC 2008 session “A Lap Around Windows Azure” by Manuvir Das http://channel9.msdn.com/pd... He has an alternative presentation (40 minutes) here http://channel9.msdn.com/po... Install ...
The RSSBus SharePoint Web Part might just be the most exciting thing I’ve had the pleasure to work with in quite a while. RSSBus is an amazingly powerful product, but the RSSBus SharePoint Web Part…its just a thing of beauty. What the web part does: it lets you expose data from just about anywhere inside SharePoint. The simplest example is to show an RSS feed like Google News or Yahoo News. I tweeted about that last week. I put together two more simple examples. One is using my Twitter Search RSS ...
Join us for TechFuse 2009 on March 17! It’s back and even bigger than last year! With 36 sessions and two keynote presentations to choose from, TechFuse 2009 is the most cost-effective way for IT and Developer pros to get up-to-date, 200-300 level education on the topics that matter to your role. TechFuse will provide you resources on the latest developments in IT and Developer trends, technologies, application implementation issues, products and services from tons of local professionals. Website: ...
For this month’s MN System Center User Group meeting on Wednesday 1/21, we have the privilege of Lu Patrick presenting a session titled:" Monitoring Configuration Manager 2007 with Operations Manager 2007". Lu is one of the Instructor at New Horizons of Minnesota and she focuses on SCCM/SCOM, VB and PowerShell scripting. This month we will be meeting at the New Horizons of Minnesota building, about a mile North East of the Microsoft building, and they will provide pizza and beverages. Tentative agenda: ...
A long time ago Jeffrey Snover briefly mentioned the PowerShell [REF] parameter attribute, but otherwise there isn’t much mention around about how to use it. It seems simple enough, but I kept getting this error from PowerShell: “Reference type is expected in argument.” This post by MOW cleared things up for me – I needed to wrap my [REF] parameters in parens in the function call, like so: Find-NewMessages $valvar1 ([REF]$refvar1) ([REF]$refvar2) For those looking to see how pass by reference params ...
Florida has a very active developer community. The biggest problem we seem to have is that all of these different groups usually don't know about each and there hasn't been a "centralized clearinghouse" listing all of the technical communities. Joe Healy, one of our Florida Microsoft Developer Evangelists, maintains a list and earlier this year started putting together one-page flyers for each of the main areas in Florida. I think the eventual plan is that Joe will be updating his site to take advantage ...
A lot of people have asked me to explain the differences in the PowerShell Server v2 product with the obvious alternative: PowerShell v2 Remoting via WinRM. PowerShell Server The nutshell is that with the PowerShell Server, you are not limited to Windows machines and you don’t need WinRM or any other software other than the PowerShell Server itself and any old SSH client. This means that the “client” machine, where the commands are being sent from, can be anything – a Linux machine, a handheld device ...
Today some quick tricks finally came together for me with Windows PowerShell. So I can finally write scripts and quickly execute them from the PowerShell shell. If you haven't yet installed PowerShell, you can find it here: http://www.microsoft.com/wi... My simple goal was to be able to a) write a short script that can take parameters, and b) be able to easily run it from the shell. Here's what I did: Close any open PowerShell windows ...
SQL Server 2008 PowerShell Cmdlets + /n software PowerShell Server v2 = Execute SQL Queries Anywhere. If you don’t already have the SQL cmdlets for PowerShell, you’ll need to download and install SQL Server 2008. A warning for those of you running on x64 machines - you’ll have to export the SQL Server keys in HKEY_LOCAL_MACHINE\SOFTWARE... (there should be 2 in PowerShellSnapIns and 1 in ShellIds) and reimport them to Wow6432Node. If you don’t already have /n software’s PowerShell ...
The new NetCmdlets v2 and PowerShell Server v2 are now available! NEW: NetCmdlets V2 and PowerShell Server V2 NetCmdlets V2 is packed full of exciting new features including Parameter Sets, Object Pipelining, and new Cmdlets for SSH connectivity and Amazon Web Services (S3) Integration PowerShell Server instantly enables Windows desktops and servers with an SSH secured PowerShell host entrypoint. Try out the new featues in NetCmdlets V2 and PowerShell Server: download a 30-day trial! If you are already ...
This is actually a late post, but figured I should go ahead and catch my blog up on my life. (incidentally, I find that being an active twitter user sorta hurts my regular blog as I am usually micro-blogging as I go and rarely go back to the blog for a long-winded post. Either than means I rarely have anything worth saying at length or I am easily distracted, I guess) In one week, I am leaving my current employer for another. Sometimes, it is time to go and do other things. This seems to be one of ...
[Source: http://geekswithblogs.net/E... As part of my first look at ESB Guidance 2.0 (which has some excellent enhancements which I'll post about shortly) I've been interested in the way the sample solutions are deployed. The P&P team have put together PowerShell scripts which take care of the usual things you'd find in a deployment scenario – stopping services, creating applications, adding resources and bindings. In a Continuous Integration environment, you'd typically want to deploy ...
You have designed Aggregations for your cube, but how do you know that they are currently processed? Hopefully you have your processing routines setup in production so that your indexes are always kept processed. But maybe you are working in a development environment or you are performance tuning that you want to double check that your aggregations are currently processed. It is not immediately obvious how you can figure if the indexes for a partition or a set of partitions are processed as this ...
I often get asked by other developers at work or during presentations about various tools that I use. Most of the tools I use are relatively well known, but I'm going to create this post so that I have a single point where you can download everything without a bunch of Googling. Almost all of the tools on this list are free. My only disclaimer is that this is simply my personal list of the tools I use most often. If you're looking for a *real* list that is extremely comprehensive, then I recommended ...
Here's the complete list of sessions from PDC and my personal favorites. You can find all the recordings of these sessions at www.microsoftpdc.com. Here's my personal favorites: Windows Azure (Hosted ASP, Workflow, Silverlight, RAW / Azure Storage) A Lap Around Windows Azure (ES16) - 0:46 Slides | WMV-HQ | WMV | Zune A Lap Around the Azure Services Platform (BB01) - 1:12 Slides | WMV-HQ | WMV | Zune Live and Mesh (Sync, Feeds, Resources, Contacts, etc.) A Lap around the Live Framework and Mesh Services ...
Update: Here is how I did it, with the published version of PowerShell Server: http://geekswithblogs.net/L... I was talking to Richard Giles at Idera today and he made me realize that I’d never blogged about running PowerShell commands from my secondary Linux desktop, and from the iPhone. Here are the pictures, I posted them on Flickr a while back. This is done by using /nsoftware’s PowerShell Server (currently awaiting v2 release ...
Just before I add lots of files and folders to my PDC attendee's freebie 160GB USB disk I thought I'd list out the contents as sort of like an audit. PDC 2008 160GB USB Disk file directory listing Autorun.inf starthere.cmd StartHere.html Developer\BluePrints\Inside... Developer\BluePrints\Introd... Developer\dotNetFramework\d... Developer\dotNetFramework\d... Developer\dotNetFramework\d... Developer\dotNetFramework\d... ...
Today I learned I have a lot to learn! Patterns, Delegates, Lambdas, PSake, Extension Methods, etc, etc, etc. Photo credit to Hikako. So far we have went through patterns and principles. Ones that come to mind are the Strategy Pattern, Static Gateway Pattern, Decorators, and Specification Pattern. We also got into SRP (single responsibility principle), OCP (open closed principle), Composition over Inheritance, BDD (behavior driven design), DDD (domain driven design), and then we talked a little about ...
You may be thinking oh-no, not another one. Allan Mitchell recently posted an example of an SSIS package that would warm the SSAS cache which is an updated version with a slightly simpler SSIS data flow from something Chris Webb originally blogged. Being a PowerShell fan as I read Allan's post I realised that most of the tasks mapped to native PowerShell cmdlets and I already had PowerShell code to execute an MDX command, so all I was missing was someway of reading in the trace data. What I ended ...
Tech•Ed EMEA IT Professionals Nov. 3-7, 2008 Centre Convencions Internacional Barcelona (CCIB) Some notes from Woody, an attendee: http://www.thesanitypoint.c... Jonathan Noble http://jonoble.spaces.live.... PowerShell: http://jonoble.spaces.live.... Tech•Ed EMEA Developers Nov. 10-14, 2008 Centre Convencions Internacional Barcelona (CCIB) Jason Zander keynote: http://blogs.technet.com/st... ...
Well, Windows 7 is going to be released by the end of next year. This is great news, because it seemed, that Microsoft finally understand how to get the best of Windows Vista and make it to work not only on monster machines. It even works on new brandy my wife's pinky machine. And if it works there and my wife is happy with it, this OS going to be very impressive. But from the other hand, we, as developers should be ready today to developer Windows 7 ready application (by the way, Vista Battery Saver ...
This code contains a sequential workflow running in a console application. There is a sequence and inside the sequence a QueryActions and ForeachLoop. The QueryActions Activity is a custom activity that you can create through Visual Studio add >> new >> .... etc... it gives you a design surface where you can drop standard out of the box activities. In this case the QueryActions activity has inside of it a standard toolbox DBQuery activity which lets you point and click your way to a database ...
I think there's nothing more powerful for a .NET developer than the ability to call into the .NET framework from script code. Here are a couple of tips for calling into the framework from PowerShell 1.0: For non-static .NET classes, use the New-Object commandlet (example using the SecureString class) In c# System.Security.SecureString password = new SecureString(); In PowerShell: [System.Security.SecureStri... = New-Object System.Security.SecureString You don't have to explicitly cast the ...