3

I am working with the PowerShell command. The following command gives parameter format error while executing to get timezone on specific UTC.

C:\Windows\system32\tzutil /l | find /I "utc-06"

FIND: Parameter format not correct

apaderno
  • 28,547
  • 16
  • 75
  • 90
Majedur
  • 3,074
  • 1
  • 30
  • 43
  • Does this answer your question? [Powershell: Pipe external command output to another external command](https://stackoverflow.com/questions/19220933/powershell-pipe-external-command-output-to-another-external-command) – Lance U. Matthews Nov 25 '21 at 06:31

1 Answers1

7

Find expects literal doublequotes. You can also use findstr or select-string instead.

tzutil /l | find /i '"utc-06"'
tzutil /l | findstr /i utc-06
tzutil /l | select-string utc-06
js2010
  • 23,033
  • 6
  • 64
  • 66