This project has moved and is read-only. For the latest updates, please go here.


Oct 8, 2012 at 10:12 AM

I have a new installed windows 2008 r2 .

I configured input xml and then run the installer batch of autospinstaller

but it fails when loading sharepoint powershell. what am I missing to do?

it says

- Loading SharePoint Powershell Snapin


- Script aborted!


Exception : System.Management.Automation.PSArgumentException: No sn

ap-ins have been registered for Windows PowerShell vers

ion 2.

at System.Management.Automation.PSSnapInReader.GetMs

hSnapinRootKey(RegistryKey versionRootKey, String psVer


at System.Management.Automation.PSSnapInReader.Read(

String psVersion, String mshsnapinId)

at System.Management.Automation.Runspaces.MshConsole

Info.AddPSSnapIn(String mshSnapInID)

at System.Management.Automation.Runspaces.RunspaceCo

nfigForSingleShell.DoAddPSSnapIn(String name, PSSnapInE

xception& warning)

at Microsoft.PowerShell.Commands.AddPSSnapinCommand.

AddPSSnapIns(Collection`1 snapInList)

TargetObject : Microsoft.SharePoint.PowerShell

CategoryInfo : InvalidArgument: (Microsoft.SharePoint.PowerShell:Strin

g) [Add-PSSnapin], PSArgumentException

FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnap


ErrorDetails :

InvocationInfo : System.Management.Automation.InvocationInfo

PipelineIterationInfo : {0, 1}

PSMessageDetails :



Nov 8, 2012 at 3:02 AM

Can you confirm that SharePoint installed correctly?


Feb 12, 2013 at 11:32 AM
Edited Feb 12, 2013 at 11:37 AM

I have the same problem, after downloading a fresh installer.

 - Configuring IIS logging...
Add-PSSnapin : No snap-ins have been registered for Windows PowerShell version
At C:\AutoSPInstallerv3\SP\AutoSPInstaller\AutoSPInstallerFunctions.ps1:5364 ch
+                 Add-PSSnapin <<<<  WebAdministration
    + CategoryInfo          : InvalidArgument: (WebAdministration:String) [Add
   -PSSnapin], PSArgumentException
    + FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.Ad

 - Script halted!

Exception             : System.Management.Automation.CommandNotFoundException:
                        The term 'Get-WebConfigurationProperty' is not recogniz
                        ed as the name of a cmdlet, function, script file, or o
                        perable program. Check the spelling of the name, or if
                        a path was included, verify that the path is correct an
                        d try again.
                           at System.Management.Automation.CommandDiscovery.Loo
                        kupCommandInfo(String commandName, CommandOrigin comman
                           at System.Management.Automation.CommandDiscovery.Loo
                        kupCommandProcessor(String commandName, CommandOrigin c
                        ommandOrigin, Nullable`1 useLocalScope)
                           at System.Management.Automation.ExecutionContext.Cre
                        ateCommand(String command)
                           at System.Management.Automation.CommandNode.CreateCo
                        mmandProcessor(Int32& index, ExecutionContext context)
                           at System.Management.Automation.CommandNode.AddToPip
                        eline(PipelineProcessor pipeline, ExecutionContext cont
                           at System.Management.Automation.PipelineNode.Execute
                        (Array input, Pipe outputPipe, ArrayList& resultList, E
                        xecutionContext context)
                           at System.Management.Automation.ParseTreeNode.Execut
                        e(Array input, Pipe outputPipe, ExecutionContext contex
                           at System.Management.Automation.AssignmentStatementN
                        ode.Execute(Array input, Pipe outputPipe, ExecutionCont
                        ext context)
                           at System.Management.Automation.StatementListNode.Ex
                        ecuteStatement(ParseTreeNode statement, Array input, Pi
                        pe outputPipe, ArrayList& resultList, ExecutionContext
TargetObject          : Get-WebConfigurationProperty
CategoryInfo          : ObjectNotFound: (Get-WebConfigurationProperty:String) [
                        ], CommandNotFoundException
FullyQualifiedErrorId : CommandNotFoundException
ErrorDetails          :
InvocationInfo        : System.Management.Automation.InvocationInfo
PipelineIterationInfo : {}
PSMessageDetails      :
Feb 20, 2013 at 1:04 PM
Hi mht

What version of windows server are you running, I would assume since you try to use PSSnapin your using windows server 2008 not (2008R2 or 2012)

This looks like that your snapin was not installed correctly, Try and re install the IIS7 snapin again. (You could do this manual if you don't have it in the pre-0require installer folder "$env:SPbits\PrerequisiteInstallerFiles\iis7psprov_x64.msi`")

Here is the link to the installation