Hi
This seems to be a VERY quiet forum, but let's see if this query gets any bites anyway.
Some background first:
There's a feature of DFS which prevent replication of files that have the temporary attribute set.
That's fine, but some of our files which aren't actually temp files have got this temporary attribute set, thus causing us an issue.
To fix this, this Microsoft article suggests running the following Powershell command:
Nice, BUT, I first want to list these files so I can make a decision for myself as to which ones are/are not temporary (since it's possible there will be "~roposal.doc" files, or *.tmp files).
As I'm very new to Powershell I'd like some help with editing this command so that instead of changing the attributes of the files it finds are 'temporary' it merely lists them.
So, help, please!
JJ
[small][purple]Variables won't. Constants aren't[/purple]
There is no apostrophe in the plural of PC (or PST, or CPU, or HDD, or FDD, or photo, or breakfast...and so on)[/small]
This seems to be a VERY quiet forum, but let's see if this query gets any bites anyway.
Some background first:
There's a feature of DFS which prevent replication of files that have the temporary attribute set.
That's fine, but some of our files which aren't actually temp files have got this temporary attribute set, thus causing us an issue.
To fix this, this Microsoft article suggests running the following Powershell command:
Code:
Get-childitem D:\Data -recurse | ForEach-Object -process {if (($_.attributes -band 0x100) -eq 0x100) {$_.attributes = ($_.attributes -band 0xFEFF)}}
Nice, BUT, I first want to list these files so I can make a decision for myself as to which ones are/are not temporary (since it's possible there will be "~roposal.doc" files, or *.tmp files).
As I'm very new to Powershell I'd like some help with editing this command so that instead of changing the attributes of the files it finds are 'temporary' it merely lists them.
So, help, please!
JJ
[small][purple]Variables won't. Constants aren't[/purple]
There is no apostrophe in the plural of PC (or PST, or CPU, or HDD, or FDD, or photo, or breakfast...and so on)[/small]