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
Solved

Powershell for .NET and SQL developer

Posted on 2014-01-27
3
335 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
  • 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
I have a large data set and a SSIS package. How can I load this file in multi threading?
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

765 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