Hi
I’m trying to change the attribute of a file called folder.jpg from System/Hidden to Normal.
I am using this code:
$SFile = Get-ChildItem folder.jpg -System -Force
$SFile.Attributes = ‘Normal’
but I get the following error[blockquote]The property ‘Attributes’ cannot be found on this object. Verify that the property exists and can
be set.
At line:1 char:1
- $File.Attributes = ‘Normal’
-
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : PropertyNotFound[/blockquote]
Is there something wrong with what I’ve done
Thanks
Tony