Skip to main content

Notifications

Power Automate - Using Connectors
Unanswered

How to Perform File Maintenance on Windows File Server Using Power Automate

(0) ShareShare
ReportReport
Posted on by 29

How does one create a Flow that will do file maintenance (ie delete feels created> X days ago)  when the files are on a windows file server and can this be done without using Desktop Power Automate? 

 

Currently we have access over a VPN to a windows file server that is on another network (owned by our software vendor). I regularly go into a sub-directory on this file server and delete files that were crated greater than 7 days ago. I access the sub-directory via a mapped rive that uses the local IP address on the Vendors side of the VPN (ie \\10.xx.xx.xx\Directory1\Directroy2\DirectoryX\ ) . 

 

Is there way that power automate can be used to automate this process? If yes can it be done without using the Desktop version of Power automate? If you have any examples (ie videos or articles) detailing how to do something like these please share them.  So far all I've seen for power automate and file maintenance is for only those things stored in/on SharePoint, OneDrive or a site like DropBox; nothing for good old fashioned local file server. 

 

Thanks

  • edcarden Profile Picture
    edcarden 29 on at
    Re: How to Perform File Maintenance on Windows File Server Using Power Automate

    Thank you. 

  • eric-cheng Profile Picture
    eric-cheng 5,171 on at
    Re: How to Perform File Maintenance on Windows File Server Using Power Automate

    Hi @edcarden ,

     

    Just adding to the reply above. 

     

    To access a file server, you need to specifically use the Filesystem connector here and have a data gateway set up here.

     

    Here is a video on setting up a data gateway.

     

    --------------------------------------------------------------------------
    If I have answered your question, please mark my post as a solution
    If you have found my response helpful, please give it a thumbs up

    Connect on LinkedIn

  • kierian Profile Picture
    kierian on at
    Re: How to Perform File Maintenance on Windows File Server Using Power Automate

    Hello 

    that example can help 

    Solved: Delete files older than 3 years - Power Platform Community (microsoft.com)

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,691

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 65,019

Leaderboard

Featured topics