Wednesday, January 30, 2013

Hi,
Two days back i finally upgraded my laptop to “Windowd8 Pro”. After clean installation of the Windows8 Operating system my first expression was “WOW!”. I like it. Windows8 Operating System really looks very cool.
After installation the first program i run was “Powershell”. Microsoft had added a lots of new cmdlets on the new version on PowerShell v3. Microsoft is shipping Windowd8 with New Windows PowerShell Integrated Scripting Environment (ISE) and this new “Powershell ISE” contain a lots of new features. Where is my Windows PowerShell Integrated Scripting Environment (ISE) is on Windows 8???????
After the installation of windows8 pro, i was not able to find “Powershell ISE” anywhere,
i searched and found it under,

Press the “windows Key” or click on “Start”

Now Move you Mouse on the Top “right “ of the corner of the screen , you that the “Right hand side” option bar comes and click on Settings.

Now click on”tile”

Change the “Show administrative tool” button from “No” to “yes”

and here it is our “Powershell ISE”

Lets Pin Windows PowerShell Integrated Scripting Environment (ISE) to our taskbar so that we can access it easily.

Tuesday, January 15, 2013

Yesterday i have got a call from my remote user, she is saying that she is not able to login to the Intranet System and Outlook, I asked her if she has got any notifications about password failed (Setting using Group Policies). and she denied.

i said “OK”..

Somehow i feel this is related to her password, i thought let’s see if her password is expired or not.

Thursday, January 3, 2013

While working on Powershell V3 i have realised that Scripting are going to be easy. Scripters just need to add bunch of cmdlets to the scripts and done. In Powershell V3 Microsoft had make CMDLET for almost everything or for every task.

The main task which SYSADMINS do this installing extra windows features in to the server or to the desktops. These features may be setup a server a DHCP,DNS,FAX or a simple feature like installing or enabling XPS viewer.

I am using a fresh installation of “Windows Server 2012 Standard Edition with GUI” and i do often view and read “XPS formatted Documents”. BY Default the XPS file viewer is not installed on “Windows server 2012”.

So i think why not install it using the Powershell V3 cmdlet.

To get the list of all available/installed windows feature we can use the cmdlet

“Get-WindowsFeature”

The features those have [x] in the from of them means that they are installed. When you query any single feature using “Get-WindowsFeature” cmdlet then provide the NAME of the feature not the “Display Name”

Let’s see if the “XPS Viewer” is installed or not.

Get-WindowsFeature -Name “XPS-Viewer”

You can see that XPS-Viewer is available but it is not installed.

To install Windows features we have to use the cmdlet “Install-WindowsFeature”

Let’ install XPS-Viewer, run the below command line.

Install-WindowsFeature -Name “XPS-Viewer”

You can see it start Installing.

When installation is done it shows the below screen, that installation is “Successful” and Reboot is “Not required” .

let’s query the “XPS-Viewer” again using Get-WindowsFeature

Get-WindowsFeature -Name “XPS-Viewer”

and now we can see a [x] in the front of Display Name and the Install State in “Installed”

Wednesday, January 2, 2013

First of all I want to congratulate all new MVPs and want to thanks them their contribution to the community . I also want to congratulate “Sarabpreet Singh Anand” who became a “SQL” MVP this year for first time, brother we do proud on you.

Today “New Delhi” is feeling like a big refrigerator the temperature is almost 8 Degree Celcius and a heavy fog is every where.

anyway…..

I am in love with Powershell V3, I think in this new version we have CMDLET for each and every task. Today i am going to show you a very simple task , the task in setting Display Resolution on Desktop using Powershell V3 Cmdlets.

Open PowerShell Console { You know hot to do this ;o) }

To know you current display resolution use this cmdlet “Get-DisplayResolution”.

So my current display resolution is “1920x1080” . Now lets change the resolution using the another cmdlet “Set-DisplayResolution”

type and run “Set-DisplayResolution”

it ask you to define the width of resolution in pixels : i typed 800

after define the width in Pixels we have to provide the height pixel size of 600

Hit enter .

Now a new windows opens and asking for the confirmation that if we want to apply the display setting or not, if you enter “Y” new display resolution will be applied, if you enter “N” then you are back to the original display resolution nothing will be changes and if you type or enter nothing you will be back to original display settings.

In my case i type and enter “Y”

and my display resolution is changed.

cool…..

but wait… we can make the above in to one-liner so that we can use this on our scripts so that it won’t ask for any confirmation window.