Solved

Shortcut to Powershell

Posted on 2014-03-24
6
329 Views
Last Modified: 2014-03-24
Hello expert,

Getting started with Powershell.
(Any tips on good tutorial would be helpful.)
Working with command console.
http://www.powershellpro.com/powershell-tutorial-introduction/tutorial-windows-powershell-console/
It says to create a shortcut to the Command Console on desktop.
When I do Start, Run, Powershell I get the nice blue screen with
Windows PowerShell
Copyright <C> 2009 Microsoft Corporation. All rights reserved
PS C:\USers\allen.pitts

So right click on desktop New>Shortcut. Then paste in the
path to the exe
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Give it a name and OK
But when I click the shortcut I get a black screen that says
Windows PowerShell
Copyright <C> 2009 Microsoft Corporation. All rights reserved
PS C:\Windows\System32\WindowsPowerShell\v1.0

Am, I in the same place? Why the difference?

Thanks.

Allen in Dallas
0
Comment
Question by:9apit
6 Comments
 
LVL 19

Expert Comment

by:Patricksr1972
ID: 39950458
Hi

Why not go to start-> search-> powershell and rightclick the icon that appears to the desktop and select create shortcut here?
0
 
LVL 22

Expert Comment

by:Haresh Nikumbh
ID: 39950496
never forget to execute with run as administrator option.

right click on shortcut, select option run as administrator
0
 
LVL 18

Expert Comment

by:Raheman M. Abdul
ID: 39950498
point to Powershell_ise.exe instead of powershell.exe

Powershell_ise is a GUI based while powershell.exe is command based.

You can use the intellisense from the gui version ie (powershell_ise.exe)
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 18

Accepted Solution

by:
Raheman M. Abdul earned 500 total points
ID: 39950514
The difference is just using the background color and text color when you see the blue screen at the background when run from the start-> programs
You can change the colors if you right click -> properties -> colors etc

on the other hand, when you run powershell.exe from the "C:\Windows\System32\WindowsPowerShell\v1.0"  it is without any colors.
No difference in functionality. they both pointing to same powershell.exe file
0
 
LVL 39

Expert Comment

by:footech
ID: 39950753
See my posts in http://www.experts-exchange.com/Programming/Languages/Scripting/Powershell/Q_28248349.html for a full explanation.  It all comes down to the properties of the shortcut.
0
 

Author Closing Comment

by:9apit
ID: 39951079
See now. Can change the command line properties with the shortcut attributes.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
Set OWA language and time zone in Exchange for individuals, all users or per database.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now