Solved

Powershell for .NET and SQL developer

Posted on 2014-01-27
3
337 Views
Last Modified: 2014-01-31
Though I'm working in .NET application for long time I never use powershell in my applicatinos. I would like to know answers for below questions. Please clarify me.


What is powershell?  Where practically I could use it?

 As a .NET and SQL developer what are the frequently used commands I should know of Powershell?
0
Comment
Question by:Easwaran Paramasivam
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 23

Expert Comment

by:Jens Fiederer
ID: 39812732
Powershell is essentially a more powerful replacement for COMMAND.COM that plays nicely with the Windows architecture.

It would normally be used mostly by administrators -- I have VERY rarely used it as a developer -- but as a developer you might be asked to write "cmdlets" for Powershell (unlike regular executables, these can be loaded and executed in the actual Powershell process without starting up a new process).
0
 
LVL 16

Author Comment

by:Easwaran Paramasivam
ID: 39814010
Thanks. Could you please share the basic commands for a .NET and SQL developers should be aware or know?
0
 
LVL 23

Accepted Solution

by:
Jens Fiederer earned 500 total points
ID: 39814132
You can list all the commands with simply
    get-command

Pretty much all the real basics are what you would expect -- you could do "cd", "dir", "pwd" just like in the regular shell.   You can do variable assignments like
$a = 4
or
$b = dir
and then
write $b (to see the directory you stored)
or do logic like


if ( $a -eq 4) { write $b }

I'd recommend going through an introduction like
http://technet.microsoft.com/en-us/library/hh857337.aspx
0

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

740 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