Skip to content

the & character is not allowed - error while importing the module #19

@pakyrs

Description

@pakyrs

Hi Glenn,

I have tried to import and run the EWSContactFunctions script as I need to export Contacts to .csv from mailbox, but it's giving me all sorts of carachter errors, how do you actually run these scripts? I couldn't find the answer in your readme.

Thanks!

PS C:\Users\witadmin\Downloads> Import-Module .\EWSContactFunctions.ps1 -force
At C:\Users\witadmin\Downloads\EWSContactFunctions.ps1:190 char:19
+               Sign up
+                   ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a string.
At C:\Users\witadmin\Downloads\EWSContactFunctions.ps1:193 char:180
+ ... -details-target btn-link d-lg-none mt-1 color-fg-inherit">  <svg aria ...
+                                                                 ~
The '<' operator is reserved for future use.
At C:\Users\witadmin\Downloads\EWSContactFunctions.ps1:197 char:16
+ </button>      </div>
+                ~
The '<' operator is reserved for future use.
At C:\Users\witadmin\Downloads\EWSContactFunctions.ps1:202 char:148
+ ... -view-component="true" class="js-details-target btn-link">  <svg aria ...
+                                                                 ~
The '<' operator is reserved for future use.
At C:\Users\witadmin\Downloads\EWSContactFunctions.ps1:206 char:16
+ </button>      </div>
+                ~
The '<' operator is reserved for future use.
At C:\Users\witadmin\Downloads\EWSContactFunctions.ps1:221 char:7
+ </a>  </li>
+       ~
The '<' operator is reserved for future use.
At C:\Users\witadmin\Downloads\EWSContactFunctions.ps1:226 char:7
+ </a>  </li>
+       ~
The '<' operator is reserved for future use.
At C:\Users\witadmin\Downloads\EWSContactFunctions.ps1:231 char:7
+ </a>  </li>
+       ~
The '<' operator is reserved for future use.
At C:\Users\witadmin\Downloads\EWSContactFunctions.ps1:236 char:7
+ </a>  </li>
+       ~
The '<' operator is reserved for future use.
At C:\Users\witadmin\Downloads\EWSContactFunctions.ps1:241 char:7
+ </a>  </li>
+       ~
The '<' operator is reserved for future use.
Not all parse errors were reported.  Correct the reported errors and try again.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : AmpersandNotAllowed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions