Войти

Показать полную графическую версию : проблемы с командами


hub-lex
05-04-2009, 00:30
Доброго времени суток!

ИЗВИНЯЮСЬ, ЕСЛИ ТАКАЯ ТЕМА УЖЕ ЕСТЬ!

НЕ РУГАЙТЕ, МОИ ПЕРВЫЕ ШАГИ С POWERSHELL!

Сегодня скачал PowerShell и книгу, дошел до команды Get -Help...ввожу ее, но на это мне выдает вот что :
The term 'Get' is not recognized as a cmdlet, function, operable program, or script file. Verify the term and try again
.
At line:1 char:4
+ Get <<<< -Process

Как мне с этим бороться?

Заранее спасибо!

Admiral
05-04-2009, 01:18
hub-lex, данную команду нужно писать без пробелов
Get-Help
про саму команду тоже можно получить справку, написав так
Get-Help Get-Help

Рекомендую заглянуть в тему PowerShell (http://forum.oszone.net/thread-74671.html)

hub-lex
05-04-2009, 11:51
Admiral, написал без пробелов Get-Help в ответ вот что:
Get-Help : Cannot find Help for topic "default".
At line:1 char:9
+ Get-Help <<<<

Admiral
05-04-2009, 14:15
hub-lex, странно. Установка проведена корректно?
Вот что должно было быть в ответе наPS C:\> Get-Help
TOPIC
Get-Help


SHORT DESCRIPTION
Displays help about PowerShell cmdlets and concepts.


LONG DESCRIPTION


SYNTAX
get-help {<CmdletName> | <TopicName>}
help {<CmdletName> | <TopicName>}
<CmdletName> -?


"Get-help" and "-?" display help on one page.
"Help" displays help on multiple pages.

Examples:
get-help get-process : Displays help about the get-process cmdlet.
get-help about-signing : Displays help about the signing concept.
help where-object : Displays help about the where-object cmdlet.
help about_foreach : Displays help about foreach loops in PowerShell.
match-string -? : Displays help about the match-string cmdlet.


You can use wildcard characters in the help commands (not with -?).
If multiple help topics match, PowerShell displays a list of matching
topics. If only one help topic matches, PowerShell displays the topic.


Examples:
get-help * : Displays all help topics.
get-help get-* : Displays topics that begin with get-.
help *object* : Displays topics with "object" in the name.
get-help about* : Displays all conceptual topics.




For information about wildcards, type:
get-help about_wildcard




REMARKS
To learn about PowerShell, read the following help topics:
get-command : Displays a list of cmdlets.
about_object : Explains the use of objects in PowerShell.
get-member : Displays the properties of an object.


Conceptual help files are named "about_<topic>", such as:
about_regular_expression.

The help commands also display the aliases on the system.
For information about aliases, type:

get-help about_alias

А вот что наPS C:\> Get-Help Get-Help

NAME
Get-Help

SYNOPSIS
Displays information about Windows PowerShell cmdlets and concepts.


SYNTAX
Get-Help [[-name] <string>] [-component <string[]>] [-functionality <string[]>] [-role <string[]>] [-category <stri
ng[]>] [-full] [<CommonParameters>]

Get-Help [[-name] <string>] [-component <string[]>] [-functionality <string[]>] [-role <string[]>] [-category <stri
ng[]>] [-detailed] [<CommonParameters>]

Get-Help [[-name] <string>] [-component <string[]>] [-functionality <string[]>] [-role <string[]>] [-category <stri
ng[]>] [-examples] [<CommonParameters>]

Get-Help [[-name] <string>] [-component <string[]>] [-functionality <string[]>] [-role <string[]>] [-category <stri
ng[]>] [-parameter <string>] [<CommonParameters>]


DETAILED DESCRIPTION
The Get-Help cmdlet displays information about Windows PowerShell cmdlets and concepts. You can also use "Help {<cm
dlet name> | <topic-name>" or "<cmdlet-name> /?". "Help" displays the help topics one page at a time. The "/?" disp
lays help for cmdlets on a single page.


RELATED LINKS
Get-Command
Get-PSDrive
Get-Member

REMARKS
For more information, type: "get-help Get-Help -detailed".
For technical information, type: "get-help Get-Help -full".

hub-lex
05-04-2009, 15:31
еще раз установил...сказал что все корректно установлено...и опять эти самые ошибки...

НО, у меня 2х ядерник, сначала хотел установить для 64-бит процессоров, на что мне была выдана ошибка, что мол такой тип процессоров не поддерживается...

затем взял setup для 32-bit процессоров и все установилось, но команды не воспринимает...

может быть есть какая то взаимосвязь?

amel27
06-04-2009, 05:09
hub-lex, все требования выполнены?.. SP, .Net?

How to Download Windows PowerShell 1.0 (http://www.microsoft.com/windowsserver2003/technologies/management/powershell/download.mspx)
How to Install Windows PowerShell and Download the Windows PowerShell SDK (http://msdn.microsoft.com/en-us/library/bb204630(VS.85,printer).aspx)

P.S. на Win2003 x64 без проблем, правда пакет стоит для x64

Admiral
06-04-2009, 14:24
hub-lex то что проц 2х ядерный ещё не значит что нужно ставить 64х битную версию, так как последняя станет если ОС будет 64х битной, которая в свою очередь встанет если проц поддерживает 64х битные инструкции.
amel27 установщик проверяет наличие установленного .NET FrameWork 2.0




© OSzone.net 2001-2012