We help IT Professionals succeed at work.

Find all enabled Plugins - Powershell failure

110 Views
Last Modified: 2015-12-11
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.
Comment
Watch Question

Anthony K O365Messaging Consulting

Author

Commented:
CERTIFIED EXPERT
Most Valuable Expert 2013
Awarded 2012

Commented:
Hi,
just a simple typo?
getserver().getpluginManager().getPlugins()
should be
getServer().getPluginManager().getPlugins()
(uppercase S in getServer, uppercase P in getPluginManager)

HTH
Rainer
Anthony K O365Messaging Consulting

Author

Commented:
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
CERTIFIED EXPERT
Top Expert 2014
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Anthony K O365Messaging Consulting

Author

Commented:
Correct! Apologize for oversight.
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.