Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Tuesday, February 12, 2013 10:21 AM
Hi all,
I am getting the below error while using the "Static Member Operator" in SharePoint 2010 Management Shell.
The command I executed and the error I got is as below
PS C:\Users\anil> [System.Math] ::sqrt(25)
Unexpected token '::sqrt' in expression or statement.
At line:1 char:21
- [System.Math] ::sqrt <<<< (25)
+ CategoryInfo : ParserError: (::sqrt:String) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedToken
Can any body have an idea why I am getting this error ?
Best Regards
Anil
All replies (2)
Wednesday, February 13, 2013 12:44 PM ✅Answered
space between ] ::
Your command is
[System.Math]::sqrt(25)
with no space
Willner001
Thursday, February 14, 2013 10:40 AM
thank u Brian