--
Xavier Belanger
IT Security Architect | CISSP | Office of Information Security
University of North Carolina Wilmington
[This email originated from outside of UNCW]
On ps 5.1, use -DIR to GCI. Of course, the psIsContainer also works, but is slower.
You should be able to use the -File parameter to only capture files. The only drawback is that you may leave empty directories.
--
John Wright
IT Support Specialist
![]()
1800 Old Bluegrass Avenue, Louisville, KY 40215
Please submit IT requests to Hazelwoo...@bluegrass.org
24 Hour Helpline 1.800.928.8000
CONFIDENTIALITY NOTICE: This message contains confidential information and is intended only for the individual(s) addressed in the message. If you are not the named addressee, you should not disseminate, distribute, or copy this e-mail. If you are not the intended recipient, you are notified that disclosing, distributing, or copying this e-mail is strictly prohibited.
From: ntpowe...@googlegroups.com <ntpowe...@googlegroups.com> On Behalf Of Mike Leone
Sent: Wednesday, November 12, 2025 3:41 PM
To: NTPowershell Mailing List <ntpowe...@googlegroups.com>
Subject: [ntpowershell] Q about deleting files and folders older than a certain date
|
EXTERNAL EMAIL - This email was sent by a person from outside your organization. Exercise caution when clicking links, opening attachments or taking further action, before validating its authenticity. |
You should be able to use the -File parameter to only capture files. The only drawback is that you may leave empty directories.