powershell - The term 'select-object' is not recognized as the name of a cmdlet -


i getting error when starting sharepoint management shell sp2013 on windows server 2012.

select : term 'select-object' not recognized name of cmdlet, function, script file, or operable program. check spelling of name, or if path included, verify path correct , try again. @ c:\program files\common files\microsoft shared\web server
extensions\15\config\powershell\registration\sharepoint.ps1:1 char:16

  • $ver = $host | select version
  • ~~~~~~
    • categoryinfo : objectnotfound: (select-object:string) [], comma ndnotfoundexception
    • fullyqualifiederrorid : commandnotfoundexception

do need import modules ? if so, ?

i got work around problem.

mine sharepoint 2013 box. found $env:psmodulepath c:\users\user_name\documents\windowspowershell\modules;;c:\program files\appfabric 1.1 windows server\powershellmodules;c:\program files\appfabric 1.1 windows server\powershellmodules can notice appfabric module path has repeated itself. guess appfabric has messed psmodulepath while got installed. so, modified psmodulepath variable under registry (at hkey_local_machine\system\currentcontrolset\control\session manager\environment) include ;c:\windows\system32\windowspowershell\v1.0\modules after change, able execute select & other basic cmdlets.

thanks, pradeep nulu


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -