Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jblumenfeld-bkuna opened this issue Jan 4, 2023 · 2 comments
Open

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

jblumenfeld-bkuna opened this issue Jan 4, 2023 · 2 comments

Comments

@jblumenfeld-bkuna
Copy link

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

@Sumanjit092
Copy link

You can find the updated script in below link:
https://github.com/Sumanjit092/AzureADDeviceCleanup

@jblumenfeld-bkuna
Copy link
Author

jblumenfeld-bkuna commented Feb 16, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants