Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Missing Curly Brace - Where should i put in - i do not have open curly brace in code

$
0
0

The error i am getting is a missing closing '}' i don't have an opening '{' - i don't know where to put CurlyBraces.  Can someone help with this code for I am not a scriptor !! 

$computers = Get-ADComputer -SearchBase "OU=Servers,OU=IT Services,DC=internal,DC=bloodservices,DC=ca" -filter 'passwordlastset -lt $intPC' -Properties PasswordLastSet
Missing closing '}' in statement block.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : MissingEndCurlyBrace

 

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles