Wednesday, December 22, 2010

3 Wee Scripts in Powershell 2...

'Tis the season of giving. several of my students have been asking for advanced user interface examples in Powershell, so here are three scripts (and a module) for them, you, and anyone else who cares to look. they are heavily commented so I'll not go into details, but this is what i got you for Christmas...

screenctl.psm1 is a module that contains three useful functions used by the scripts in this set. set-cursor places the cursor exactly where you want it on the screen, so that whatever you print starts displaying there. clear-linesout-wrappedstring is a variation of the text-wrapping function i talked about here.

addusers.ps1 walks you through adding a user account to active directory. it uses the screenctl module to customize the output and the activedirectory module to read and write the database.

get-weather.ps1 provides current conditions and forecast from an internet xml stream. it uses the screenctl module to wrap long forecast strings.

netcfg.ps1 provides a graphical interface to the network information for machines listed in active directory. it uses the active directory module to locate computers.

read the example scripts, improve them, have fun with them this holiday season. it's better than listening to Uncle Lloyd snore in front of the television, right?
clears a specific number of lines from the screen, rather than the whole thing. combined with set-cursor you can clear just a small section of the screen if you wish. 


- Robert Ritter, Powershell Expert; MCSE, MCT, CTT+, MCP+I, CCDA, CCNA, A+ LinkIn with Robert

Bookmark and Share

Friday, December 17, 2010

Quickly copy a formula in Excel







You probably already know that you can copy a formula down or across by "dragging" the small plus sign (fill handle) in the bottom right corner of a cell, which is especially useful when working with formulas. If the data covers more than just a few cells, this can be tedious. Instead, double click on the fill handle.

Wow - that was fast!

- Irene Heckert, Microsoft Office Expert; CTT, MCAS, ITIL Certified, MOS LinkIn with Irene

Bookmark and Share

Thursday, December 16, 2010

Class Spotlight: MS-6430 Planning for Windows Server 2008 Servers

This course is a good course for students who want to take the 70-646 exam.  It will leverage the student’s knowledge of Windows Server 2008 and its service.   

The class focuses on planning exercises and then there is a hands-on lab for the students to set up the service that was planned.  This class is for students who understand Windows Server 2008 servers and their services and want to either learn more about the planning process or want to pass the Server Administrator Exam.

For more on the course, take a look at the course calendar here. See you in class! 

- Janet Nichols, Windows Server Expert; MCT, MCSE, MCITP: Enterprise Admin, Server Admin; Windows 7 EDA, MCTS LinkIn with Janet

Bookmark and Share

Wednesday, December 8, 2010

Need an alternative to ASP .NET Web Forms? Discover MVC!


The Model-View-Controller (MVC) architectural pattern separates an application into three main components: the model, the view, and the controller. The ASP.NET MVC framework provides an alternative to the ASP.NET Web Forms pattern for creating MVC-based Web applications. The ASP.NET MVC framework is a lightweight, highly testable presentation framework that (as with Web Forms-based applications) is integrated with existing ASP.NET features, such as master pages and membership-based authentication.

MVC is a standard design pattern that many developers are familiar with. Some types of Web applications will benefit from the MVC framework. Others will continue to use the traditional ASP.NET application pattern that is based on Web Forms and postbacks. Other types of Web applications will combine the two approaches; neither approach excludes the other. 

To learn more about ASP.NET MVC and more on Web Forms applications using .NET Framework 4 tools and technologies, try the course MS-10264, Developing Web Applications with Microsoft Visual Studio 2010. We are offering this course on February 7, 2011. The focus will be on coding activities that enhance the performance and scalability of a Web site application. Students will learn when to apply which technology.For more on ASP.NET MVC, check out Microsoft’s web site www.asp.net/mvc

For more on Visual Studio 2010 courses at Centriq Training, check out www.centriq.com.

- Leslie Koorhan, .NET Expert;
MCT, MCSD (.NET), MCTS, MCDBA, MCPD LinkIn with Leslie

Bookmark and Share

Microsoft Word: Get rid of the extra space!

Want to get rid of that pesky extra space once and for all that is included with "normal" text in a Word 2007 or 2010 document?


1.) Click the dialog box launcher in the Paragraph group (that is the little arrow in the bottom right corner of the group on the ribbon) on the Home tab of Word. This will open the dialog box with all your paragraph options. If necessary, choose the tab at the top of the dialog box for Indents and Spacing.

2.) Set the Spacing settings to 0 pt Before and After, and the Line spacing to Single.

3.) Now click the Set As Default button along the bottom of the dialog box. A confirmation dialog box will appear asking if you want to set the default; be sure to choose the option for "all documents based on the Normal template."

4.) Click OK, then close the Paragraph dialog box.



From now on, when you open a new blank document, the Normal style will have no extra spacing!


- Irene Heckert, Microsoft Office Expert;
CTT, MCAS, ITIL Certified, MOS LinkIn with Irene

Bookmark and Share

Friday, December 3, 2010

Visual Studio Tips [VIDEO]



Instructor Leslie Koorhan gives some litte known tips on using Visual Studio 2010. Check out our Corporate Class Schedule for the next available Visual Studio 2010 class date!  

- Leslie Koorhan, .NET Expert;
MCT, MCSD (.NET), MCTS, MCDBA, MCPD LinkIn with Leslie

Bookmark and Share

Wednesday, December 1, 2010

Free Resources on Visual Studio 2010


Well, Visual Studio 2010 has been out for several months now, and it looks to be a super product. One of the nice things that Microsoft is doing is offering a lot of content for free to help explain and teach the features of VS2010.

For example, you may have heard of ASP.NET MVC (Model-View-Controller), which is a Microsoft template (actually, now MVC2) for developing web applications using what is known as the MVC design pattern. But there are other design patterns for developing applications. Here is a link for using the MVVM (Model-View-ViewModel) pattern for WPF and Silverlight applications: Problems and Solutions with Model-View-ViewModel.

Another recent discussion had to do with questions on what Microsoft is doing with data.

Anyway, I hope these give you something to think about until the next time. Coming in a couple of weeks, a long overdue course on Programming with C#, using Visual Studio 2010.


- Leslie Koorhan, .NET Expert;
MCT, MCSD (.NET), MCTS, MCDBA, MCPD LinkIn with Leslie

Bookmark and Share