Category: Power Shell


PowerShell 3.0 Intellisense


I don’t know from where MS found that word “Intellisense” but it awsome feature on PowerShell..!! Open-mouthed smile If you want to try it, start PowerShell and type ise, it will start Windows PowerShell ISE.

So if you type let say Get- and right click on it, it will give you an option to Start Intellisense.

image

Or next time you can just use Ctrl+Space to activate it. And as you can see below, it will give you a dropdown list of cmdlets and a tooltip display the syntax of the cmdlet.

image

PowerShell version ?


Do you know how to determine PowerShell version on your computer / server ?

After reading this post you will know Smile. Why I’m bother to make this post because PowerShell 3.0 already available for Windows 7 and Windows 2008!, here’s the link : http://www.microsoft.com/en-us/download/details.aspx?id=29939

But I’m already using Windows 8 which mean I’m already using PS 3.0, the command is $PSVersionTable

image


It still RC though, but it helps a lot if you like scripting using PowerShell Smile

I quote from the the User Guide :

Microsoft® Script Explorer for Windows PowerShell® enables you to search for PowerShell scripts in local, network, and online script repositories. You are shown available scripts that are organized by category, and they can search for scripts from local and trusted community repositories by applying filters based on focus areas. Script search results return information about script usage, code samples, and articles about the scripts. When you find the scripts you that you need, you can download and store the scripts and use them at a later time. Script Explorer also allows you to view how-to guidance topics for Windows PowerShell commands and community resources such as TechNet wiki pages to get started with Windows PowerShell.

Here’s you can browse by category, one example I select Exchange 2010.

image

And the great thing is you can save the script and make your own repository Smile

image

Check the file you saved, you can use it later.

image

Download it here : http://www.microsoft.com/en-us/download/details.aspx?id=29101 Can’t wait till RTM Open-mouthed smile


Before this post, I’ve already mention how to create manual event, you can read it here : https://ikrisna.wordpress.com/2012/07/12/create-manual-event-using-logevent-exe/

But logevent.exe only limited for creating on Application log only, so today my customer request to create subscription SCOM on System log, then I remember that Windows has a powerful tools which is Power Shell..! Smile.

Basically you can use Write-EventLog command Smile

image

Here’s one of my customer request:

image

Then you can check the result on event viewer, cool right ? Open-mouthed smile

image


So actually what is the title mean ? Basically we can access Power Shell using our browser from anywhere, cool right ? Open-mouthed smile

This feature called Windows PowerShell Web Access, and it’s on Windows Server 8 Smile. In this post I’m going to discuss how to install and configure it.

Simply Add Roles and Features Wizard from Dashboard Server Manager, and you can see the features:

image

Then it will install the necessary role services or featured

image

Installation finish! Smile

image

After that open PS then execute : Install-PswaWebApplication –UseTestCertificate

image

After that you have to set permission for accessing the Web PS : Add-PswaAuthorizationRule –ComputerName ComputerName –ConfigurationName Microsoft.PowerShell –UserGroupName “DOMAIN\Groups”

image

After that try to access from your browser, and voila! Hot smile

image

Testing it Nerd smile

image

Blog at WordPress.com.
[ Back to top ]