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

Invoke-MSIntuneDriverUpdate.ps1 #64

Open
JaimeRobledo-Data opened this issue Jun 26, 2023 · 0 comments
Open

Invoke-MSIntuneDriverUpdate.ps1 #64

JaimeRobledo-Data opened this issue Jun 26, 2023 · 0 comments

Comments

@JaimeRobledo-Data
Copy link

JaimeRobledo-Data commented Jun 26, 2023

I found an few issues with the script

PS C:\temp\ .\Invoke-MSIntuneDriverUpdate.ps1
At C:\temp\Invoke-MSIntuneDriverUpdate.ps1:304 char:6

  • try {
    
  •     ~
    

Missing closing '}' in statement block or type definition.
At C:\temp\Invoke-MSIntuneDriverUpdate.ps1:323 char:62

  • ... $Links = ((Select-string '(http[s]?)(://)([^\s,]+.exe)(?=")' -Inpu ...
  •                                                              ~
    

The Try statement is missing its Catch or Finally block.
At C:\temp\Invoke-MSIntuneDriverUpdate.ps1:274 char:27

  • function FindLenovoDriver {
  •                       ~
    

Missing closing '}' in statement block or type definition.
At C:\temp\Invoke-MSIntuneDriverUpdate.ps1:323 char:62

  • ... $Links = ((Select-string '(http[s]?)(://)([^\s,]+.exe)(?=")' -Input ...
  •                                                             ~
    

Unexpected token ')' in expression or statement.
At C:\temp\Invoke-MSIntuneDriverUpdate.ps1:439 char:129

  • ... $DriverDownloadURL -Destination "$($TempDirectory + '\Driver Cab' + ...
  •                                                       ~~~~~~~
    

Unexpected token '\Driver' in expression or statement.
At C:\temp\Invoke-MSIntuneDriverUpdate.ps1:724 char:244

  • ... ath $LogDirectory '\Install-Drivers.txt') -Append" -NoNewWindow -Wait
  •                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    

The string is missing the terminator: '.
+ CategoryInfo : ParserError: (:) [], ParseException
+ FullyQualifiedErrorId : MissingEndCurlyBrace

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

1 participant