Skip to content

Error Running script #1

Description

@gautmgupta1

Getting below error while running the script
PS C:\Data\Official\Project\wvd> & '.\Shadow a User.ps1'

Security warning
Run only scripts that you trust. While scripts from the internet can be useful, this script can potentially harm your
computer. If you trust this script, use the Unblock-File cmdlet to allow the script to run without this warning
message. Do you want to run C:\Data\Official\Project\wvd\Shadow a User.ps1?
[D] Do not run [R] Run once [S] Suspend [?] Help (default is "D"): r
At C:\Data\Official\Project\wvd\Shadow a User.ps1:329 char:21

  •     <svg class="octicon octicon-sign-out v-align-middle" viewBox= ...
    
  •                 ~~~~~~~
    

Unexpected token 'octicon' in expression or statement.
At C:\Data\Official\Project\wvd\Shadow a User.ps1:404 char:62

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:\Data\Official\Project\wvd\Shadow a User.ps1:408 char:18

  • <span class="dropdown-caret"></span>
    
  •              ~~~~~~~~~~~~~~~~~~~~~~~
    

Unexpected token 'dropdown-caret">

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