Solved

Shortcut to Powershell

Posted on 2014-03-24
6
330 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 19

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 19

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

The article will show you how you can maintain a simple logfile of all Startup and Shutdown events on Windows servers and desktops with PowerShell. The script can be easily adapted into doing more like gracefully silencing/updating your monitoring s…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

803 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