Solved

Powershell for .NET and SQL developer

Posted on 2014-01-27
3
332 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

743 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

16 Experts available now in Live!

Get 1:1 Help Now