Skip to content

Example 3 throws error "Unexpected token 'in' in expression or statement." #2500

@JerryCube

Description

@JerryCube

So I'm a complete newbie when it comes to powershell, but I'm trying to get a script put together that will automate changing settings on printers in my organization. I tried to copy/paste this code into powershell 5 to test it and this error keeps popping up. I'm sure this is a simple fix, but I can't find it


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

Labels

issue-doc-bugSomething is out of date, unclear, confusing, or broken in the article. Blocks customer success.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions