Link to home
Start Free TrialLog in
Avatar of Anthony K O365
Anthony K O365Flag for United States of America

asked on

Find all enabled Plugins - Powershell failure

I'm trying to get all enabled plugins on a server using GetServer().getPluginManager().getPlugins(). I understand this works for some. However, I get the following error message:

At line:1 char:11
+ getserver().getpluginManager().getPlugins()
+           ~
An expression was expected after '('.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : ExpectedExpression

What am I'm doing wrong?

Thanks in advance.
Avatar of Anthony K O365
Anthony K O365
Flag of United States of America image

ASKER

Avatar of Rainer Jeschor
Hi,
just a simple typo?
getserver().getpluginManager().getPlugins()
should be
getServer().getPluginManager().getPlugins()
(uppercase S in getServer, uppercase P in getPluginManager)

HTH
Rainer
Same error. (I didn't think PS was case sensitive)

PS C:\Windows\system32> getServer().getPluginManager().getPlugins()
At line:1 char:11
+ getServer().getPluginManager().getPlugins()
+           ~
An expression was expected after '('.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : ExpectedExpression
ASKER CERTIFIED SOLUTION
Avatar of footech
footech
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Correct! Apologize for oversight.