Ahmed Mahdy

Developer & IT Pros Blogs

Ahmed Mahdy Tweets

Recent posts

Tags

Categories

Navigation

Archive

Translator


Visitors Map

Locations of visitors to this page

MVP Nominee


Windows Professional


Microsoft Student Partner

Microsoft Student Partner

MCPD/MCITP Qualified


Microsoft Registered Partner

Microsoft Partner

CCNA Qualified

CCNA

The Power of Windows PowerShell

 

PowerShell Windows PowerShell is a command-line shell and scripting language that helps administrators improve their productivity in day to day management tasks and achieve greater control over their IT environments. Using a new admin-focused scripting language, more than 230 standard command-line tools, and consistent syntax and utilities, Windows PowerShell allows admins to more easily control system administration and accelerate automation.

PowerShell ships with the Windows 7 and Windows Server 2008 R2. However if you’re running Windows XP or Windows Vista, you are still able to download a standalone installer for PowerShell.


PowerShell or as I’m going to call it PS for shorten, won’t replace the existing CMD “Command Prompt” already in Microsoft Windows. PS has CMD included within it in order to let admins do all tasks through the same environment.

PS is considered an intermediate environment that is a perfect choice for both Developers and IT Professionals as well. Since a developer can do some system procedures using PowerShell depending on “CMDLETS”. CMDLETs are .NET classes that represent APIs and GUIs. While IT Professionals can do a delicate scripting commands that became pretty more easier than other scripting languages like JavaScript and VBScript.

For example, if we’d like to list Inactive Services in a running instance of Windows, we can write the procedure as:

For VBScript

strComputer = "."
Set objWMIService = GetObject("winmgmts:" & _
"{impersonationLevel=Impersonate}!\\" &
strComputer & _
"\root\cimv2")
Set colStoppedServices = objWMIService.ExecQuery _
("Select * From Win32_Service Where State <> 'Running'")
For Each objService in colStoppedServices
Wscript.Echo objService.DisplayName & " = " & objService.State
Next

For Windows PowerShell

get-service |where {$_.status –ne “running"} | ft displayname,status –au

Any easier?! :)

Why PowerShell?

Productivity

  • Consistent syntax and approach – learn once apply many times
  • Frictionless Composition – Type what you think
  • Flexible system – works against the “old” and the “new”

Fun

  • Multiple ways to administer tasks – interactive, scripting, API, GUI
  • Makes Windows administration as pleasant/productive/cool as possible

Sharing

  • Enables an ecosystem where the community can effectively fill in the things we’ve missed

This was the first article of a series I’m going to present about Windows PowerShell in the next few days. Follow up!

Microsoft releases a new build of Windows Longhorn Server

 Microsoft has released a new build of its forthcoming release of Windows Server, code-named Longhorn. The company posted the release, which is the December Community Technology Preview (CTP) of the server OS, on its Microsoft Connect site, according to a posting on MSBlog.

 

Microsoft’s CTP programme is designed to give users early and frequent updates to forthcoming Microsoft technologies. Only participants of the Longhorn beta programme can access the new build, which Microsoft has called 6001.16406. Longhorn will feature built-in virtualization technology, as well as better management, security and administration features, Microsoft has said. The company plans to release the final version of Longhorn in the second half of 2007.

 

 

MS Office Communications Server 2007 Goes to Beta

 

 

 Microsoft will make its new enterprise voice communications server available to 2,500 companies under a private beta program on Dec. 11. The product, which will be known as Microsoft Office Communications Server 2007, brings with it the ability for companies to integrate VOIP (voice over IP) technology into existing telephony infrastructure, Chris Cullin, the director of product management in Microsoft’s Unified Communications Group, told eWEEK. This server is also the successor to Microsoft Live Communications Server 2005, and forms part of Microsoft’s unified communications portfolio.

 

“It brings with it voice and conferencing capabilities for on-premise voice, video and Web conferencing, and integrates them together at the application layer for a unified user experience,” Cullin said. “It also provides a single applications infrastructure, a single point of administration and configuration, and a single directory, for the IT professional.” Earlier this year, Microsoft announced its unified communications vision and roadmap going forward, where executives talked about introducing voice technologies to its current lineup, developing new products and expanding the unified communications features its current products provide.