.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Interview Question >> Sql Server >> Post New Question Subscribe to Interview Questions

What is Powershell ?

Posted By :nishithraj     Posted Date :March 15, 2010    Points :10   Category :Sql Server 
PowerShell is the .NET based automation engine in Microsoft p/f , it can be embedded into .NET applications but is usually used as a command line shell and scripting language.

You can also find related Interview Question to What is Powershell ?  below: 

How to Move content Databases using PowerShell ?

  
To attach\detach an existing content database use

Mount-SPContentDatabase "" -DatabaseServer "" -WebApplication http://WebapplicationName

is the content database to be attached.

is the name of the database server.

http://WebapplicationName is the name of the Web application to which the content database is being attached.

To detach a content database:

Dismount-SPContentDatabase "" (More...)

How would you deploy WebPart Using Windows PowerShell?

  
At the Windows PowerShell command prompt (PS C:\>), type the below command :

Install -SPWebPartPack -LiteralPath "FullPathofCabFile" -Name "Nameof WebPart" (More...)

Q. What is the advantage in using Windows PowerShell over stsadm in SharePoint 2010 ?

  


Ans. Unlike stsadm, which accept and return text, Windows PowerShell is built on the Microsoft .NET Framework and accepts and returns .NET Framework objects.Windows PowerShell also gives you access to the file system on the computer and enables you to access other data stores, such as the registry and the digital signature certificate stores etc..

(More...)

Q. How to Move content Databases using PowerShell ?

  
Ans. To attach\detach an existing content database use

Mount-SPContentDatabase "" -DatabaseServer "" -WebApplication http://WebapplicationName

is the content database to be attached.

is the name of the database server.

http://WebapplicationName is the name of the Web application to which the content database is being attached.

To detach a content database:

Dismount-SPContentDatabase ""

See more Commands at Windows Powershell Common Commands

(More...)

How to Activating and Deactivating Features with PowerShell in Sharepoint?

  
To activate a feature:

Enable-SPFeature FeatureName -Url http://server:1000/mysite/

To deactivate a feature:

Disable-SPFeature FeatureName -Url http://server:1000/mysite/ (More...)

Where is powershell located in sharepoint?

  
Start menu->All programs->microsoft sharepoint 2010 product->sharepoint 2010 managent shell (More...)

How to list all the commands in PowerShell ?

  
We can list all the commands in PowerShell Get-Command * commands (More...)

What permissions do you need to install a webpart or any custom solution in SharePoint 2010 using PowerShell ?

  
For using Windows PowerShell for SharePoint 2010 Products, a user must be a member of the SharePoint_Shell_Access role on the configuration and content database. In addition to this, the user must also be a member of the WSS_ADMIN_WPG local group on the computer where SharePoint 2010 Products is installed. See Details
Permissions for Windows PowerShell - SPShellAdmin (More...)

How to Restore a site backup using Powershell command in SharePoint Server?

  
Use below Powershell script command
Restore-SPSite -Identity http://myserver -Path "c:\backup\file.bak" (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

 
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.


Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend