Skip to content

Script doesn't run, generates a lot of errors. #5

Description

@jblumenfeld-bkuna

I cannot get this script to run, it generates a lot of errors - this is being run "as admin":

PS C:\Temp\PS> .\AzureADDeviceCleanup.ps1 -verify
At C:\Temp\PS\AzureADDeviceCleanup.ps1:205 char:17

  •         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:\Temp\PS\AzureADDeviceCleanup.ps1:210 char:209

  • ... k Button--medium Button d-lg-none color-fg-inherit p-1"> <span cla ...
  •                                                             ~
    

The '<' operator is reserved for future use.
At C:\Temp\PS\AzureADDeviceCleanup.ps1:428 char:13

  •   CI/CD &amp; Automation
    
  •         ~
    

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:\Temp\PS\AzureADDeviceCleanup.ps1:1367 char:96

  • ... ="" data-disable-with="" data-dropdown-tracking="{"type":&q ...
  •                                                             ~
    

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:\Temp\PS\AzureADDeviceCleanup.ps1:1367 char:103

  • ... a-disable-with="" data-dropdown-tracking="{"type":"blo ...
  •                                                             ~
    

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:\Temp\PS\AzureADDeviceCleanup.ps1:1367 char:146

  • ... "type":"blob_edit_dropdown.more_options_click",&q ...
  •                                                             ~
    

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:\Temp\PS\AzureADDeviceCleanup.ps1:1367 char:153

  • ... type":"blob_edit_dropdown.more_options_click","co ...
  •                                                              ~
    

Missing expression after unary operator ','.
At C:\Temp\PS\AzureADDeviceCleanup.ps1:1367 char:153

  • ... ype":"blob_edit_dropdown.more_options_click","con ...
  •                                                             ~
    

Unexpected token '&' in expression or statement.
At C:\Temp\PS\AzureADDeviceCleanup.ps1:1367 char:166

  • ... ot;blob_edit_dropdown.more_options_click","context":{& ...
  •                                                             ~
    

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:\Temp\PS\AzureADDeviceCleanup.ps1:1367 char:193

  • ... options_click","context":{"repository_id":19 ...
  •                                                             ~
    

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.
Not all parse errors were reported. Correct the reported errors and try again.
+ CategoryInfo : ParserError: (:) [], ParseException
+ 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