Is it possible to delete files older than x days in a sharepoint folder using powershell?

I am looking to run a script every night to delete zip files older than 7 days. In Documents I have a folder called folder1 and inside that folder there are subfolders that contain zip files. I have seen examples of sites / lists but not folders. The following cold will return:

But I would like to recursively delete all zip files in folder1 that are older than 7 days.

Try {
   #Setup the context
   $securePassword = ConvertTo-SecureString $SPOnlinePassword -AsPlainText -Force
   $Context = New-Object Microsoft.SharePoint.Client.ClientContext($SiteURL) 
   $Context.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($SPOnlineUserName, $securePassword)

   #Get the List
   $List = $Context.Web.lists.GetByTitle($ListName)

   #Define CAML Query to Filter
   $Query = New-Object Microsoft.SharePoint.Client.CamlQuery
   $Query.ViewXML = "
                        
                            
                                
                                    
                                        .zip
                                    
                                    
                                        
                                        
                                            
                                        
                                    
                                
                            
                        
                    "

   #Get List Items
   $ListItems = $List.GetItems($Query)
   $Context.Load($ListItems)
   $Context.ExecuteQuery()

   Write-host -f Green "Number of List Items Found:"$ListItems.Count
   write-host $ListItems.Name
   #Get Each Item's Created Date
   $ListItems | ForEach-Object { Write-host ("List Item:{0} was created on {1}" -f $_("FileLeafRef"), $_("Created")) }

   foreach ($item in $ListItems) {
      $List.getItemById($item.id).deleteObject()
   }
   $Context.ExecuteQuery()
}
Catch {
   write-host -f Red "Error:" $_.Exception.Message
}

Edit: I have the above code working until I received & # 39; Error: Exception calling "ExecuteQuery" with "0" argument (s): "The operation has timed out".

bash – Why do I have a folder with a question mark in the title bar of my terminal?

I have been trying to solve this for a few weeks and the only thread I could find with this problem is this old thread which did not solve my problem.

enter the image description here

Also, it takes time for the terminal to load as various commands blink in the title bar before being set to zsh. One of them is & # 39; pyras import keras & # 39; for some strange reasons. I removed keras and it is still there (although it takes much less time now). Where are these commands inserted?

I've checked .bash_profile, .bashrc, .zshrc, .zprofile and apart from a bunch of Jupyter lines I can't seem to locate where this is coming from. Any help is appreciated.

OSX 10.15 Catalina

apache – Wamp server secondary folder

I have an Apache web server running Wamp 64bit on Windows 7, and I wanted to know if there is any way to add a secondary Server folder on another Drive using the same port but as a subfolder like http://127.0.0.1/ public with DocumentRoot S: / public while the former is in the default C: / wamp64 / www

I can't find anything useful online, so I don't know where to start.

document library: online sharepoint cannot change folder content type

Until a couple of months ago, we were able to change the content type of the folder to a custom folder. We can't do this anymore, the content type isn't even showing in the details pane anymore, it used to be.

All of these SharePoint sites are created as a result of team building.

We have enabled the management of established content types itself at the library level for all of these sites.

Does anyone know if there has been a change in the settings that would have caused this and how to fix it?

We are desperate to fix this, if anyone knows the answer it would be great.

Thanks for your help.

How can I mount the local folder as SMB folder?

How can I mount local folder as SMB / AFP share locally?

For example:

I have folder /tmp/myLocalFolder
I want to create smb share to /tmp/myLocalFolder in the place /tmp/myShareLocalFolder

How can I do it (in Mojave / Catalina)?

javascript: angular folder directory approach

I know that the proper folder structure for an angular app should look like this:

/app
    /core module
        /components
        /services
    /feature module
        /components
        /services
        /models
    /shared
        /components
        /constants
        /directives
        /interceptors
        /interfaces
        /models
        /pipes
        /sass
        /services

But I have a welcome page and a bunch of submodules associated with a main module. Does it make sense to nest those modules inside the main module, like this one?

/app
    /core module
        /components
        /services
    /main plan configuration module
        /sub module one (plan configuration step one)
            /components
            /services
            /models
        /sub module two (plan configuration step two)
            /components
            /services
            /models
    /shared
        /components
        ...

Or you shouldn't nest them and leave the folder structure like this:

/app
    /core module
        /components
        /services
    /main plan configuration module
        /components
        /models
        /services
    /sub module one (plan configuration step one)
        /components
        /services
        /models
    /sub module two (plan configuration step two)
        /components
        /services
        /models
    /shared
        /components
        ...

I know this is probably a very personal option for most people, but I'm not the only one working on this codebase and I'd like to put together something that other developers can use easily enough.

Java: import doesn't work. Unrecognized folder

I am working on an Android project where the Java code is stored in the src folder. The main code is stored in this folder. In the same folder there is another folder that has the beetbox class. In the main class I need to import this class. Beetbox is on the way at / ofai / music. Please help me solve this.

import into.ofai.music.beetroot;

Permissions: mounting an app folder on external storage fails for write access on Android Q, but will work on Android Pie

I could mount my partitions with Whatsapp (exFat) and Titanium (ext4) backup data in android Pie but right now Q will not allow an RW operation to be performed after mounting
I understand / sdcard is an emulated virtual FS and the fact that there are application specific views etc. But after going through all those puzzling things, I couldn't crystallize into a solution that worked.
I've been through a related Q on the stack, but none of these approaches works for me.
Let me explain a little bit where I come from
:

{} I can successfully bind mount /storage/emulated/0/WhatsApp to exFat /storage/(UUID)/WhatsApp for RW. Obviously because exFat it is Permission unconscious file system. Did a normal mount and will mount to /mnt/media/runtime/(Read & Write & Full & Default) with 3 separate 'mask' options mask==6 , 7 and 23 (BTW, that mask option isn't exactly you umask . It & # 39;decimalized& # 39; umask -convert that 7 to binary to make it real umask ) In fact, it invokes the same path that is mentioned in the article behind the covers, namely /mnt/media/runtime/(Read & Write & Full & Default)

{} I need to mount a similar way ext4 partition with Titanium backup. Here are the problems.
If you mount / storage / emulated / 0 / Titanium to ext4 /storage/(UUID)/Titanium (As I mentioned, in fact, it mounts to /mnt/media/runtime/(Read & Write & Full & Default) with 3 separate 'mask' options below. With this mount. I can restore applications but I cannot back up the applications. So R is allowed RW It is not, and I granted him access to Titanium Root. Perhaps the browser components of those applications are not using root level access.
Somewhere I read, mount using the correct options of sdcardfs and & # 39; fuse & # 39 ;. My question is just as ?

{} I found somewhere a bindfs binary but it doesn't work with me CPU Architecture

{} Now with as much as I could RW using the above approach in Android Pie . This is a problem with Android Q … what changed? As work?

rooting: mount USB OTG in specific destination folder Nexus 6

I have an application that searches for videos in a specific folder of videos. I am trying to make my flash drive mount to the videos folder in the internal storage of the SD card

Nexus 6 (without sd card slot)
lineageos 16
android 9

Tired

his-mm
1 |: / # mount -o bind "/ mnt / sdcard / videos" "/ mnt / media_rw / A064A9EB64A9C3FE
: / #

It did not work and the fstab file edit is not saved after reboot.

Android fstab file.

# #

/dev/block/platform/msm_sdcc.1/by-name/system / system ext4 ro, barrier = 1 wait, recovery only
/dev/block/platform/msm_sdcc.1/by-name/userdata / data ext4 rw, nosuid, nodev, noatime, noauto_da_alloc, nobarrier wait, check, formattable, latemount, encryptable = / dev / block / platform / msm_sdcc.1 / by-name / metadata, reservedsize = 128M
/dev/block/platform/msm_sdcc.1/by-name/userdata / data f2fs rw, nosuid, nodev, noatime, inline_xattr wait, formattable, latemount, encryptable = / dev / block / platform / msm_sdcc.1 / by-name / metadata, reservedsize = 128M
/dev/block/platform/msm_sdcc.1/by-name/cache / cache ext4 rw, noatime, nosuid, nodev, barrier = 1, data = wait order, verification, formatable
/dev/block/platform/msm_sdcc.1/by-name/cache / cache f2fs rw, nosuid, nodev, noatime, inline_xattr wait, check, formattable
/dev/block/platform/msm_sdcc.1/by-name/modem / firmware ext4 ro, barrier = 1, context = u: object_r: firmware_file: s0 wait
/dev/block/platform/msm_sdcc.1/by-name/persist / persist ext4 rw, nosuid, nodev, noatime, barrier = 1 wait, check, notrim
/dev/block/platform/msm_sdcc.1/by-name/boot / boot emmc defaults defaults defaults
/dev/block/platform/msm_sdcc.1/by-name/recovery / recovery emmc defaults defaults
/dev/block/platform/msm_sdcc.1/by-name/misc / misc emmc defaults defaults defaults
/dev/block/platform/msm_sdcc.1/by-name/modem / modem emmc defaults defaults
/dev/block/platform/msm_sdcc.1/by-name/mdm1m9kefs1 / mdm1m9kefs1 emmc defaults defaults
/dev/block/platform/msm_sdcc.1/by-name/mdm1m9kefs2 / mdm1m9kefs2 emmc defaults defaults
/dev/block/platform/msm_sdcc.1/by-name/mdm1m9kefs3 / mdm1m9kefs3 emmc defaults defaults
/dev/block/platform/msm_sdcc.1/by-name/sbl1 / sbl1 emmc defaults defaults defaults
/dev/block/platform/msm_sdcc.1/by-name/tz / tz emmc defaults defaults defaults
/dev/block/platform/msm_sdcc.1/by-name/rpm / rpm emmc defaults defaults
/dev/block/platform/msm_sdcc.1/by-name/sdi / sdi emmc defaults defaults defaults
/dev/block/platform/msm_sdcc.1/by-name/aboot / aboot emmc defaults defaults
/dev/block/platform/msm_sdcc.1/by-name/versions / versions emmc defaults defaults defaults
/dev/block/platform/msm_sdcc.1/by-name/logo / logo emmc defaults defaults defaults
/dev/block/platform/msm_sdcc.1/by-name/frp / persistent emmc defaults defaults
/ devices //xhci-hcd.0.auto/usb auto default auto voldmanaged = usb: auto
/ dev / block / zram0 none exchange default values ​​zramsize = 536870912, notrim, max_comp_streams = 4

Hard to find information on the Android mounting system, this is what I found!

How to link and mount "data" and "obb" folders from external SD card in "/ sdcard / Android"?

How can I make a symbolic link (or equivalent) inside / storage / emulated / 0?

Mount USB OTG in a specific destination folder

Let’s clear up the confusion regarding storage in Android once and for all, including adoptable storage in Marshmallow. from Android

How the Mount SD Card Android Process works

Office 365: Sharepoint online folder structure and permission settings

I have a SharePoint website as part of the Office365 subscription, where at the top level of the documents section I have folders that should have permissions to access different groups of people,
Let's say I have 2 folders:

Office/
Client-Contracts/

I would like to allow business owners access to both folders or the entire website.
I would like to leave Office-Managers (a security group in our Office365) to access Office binder.
I would like to leave Project-Managers (a security group in our Office365) to access the Client-Contracts binder.
I do not want Project-Managers have access to the Office folder as well as I don't want Office Manager have acces to Client-Contracts.

I was able to configure that, using different permissions set on those folders. It is important that the above scheme is simplified, in fact I have ~ 20 folders and ~ 10 different user groups, which have a complicated set of partially overlapping permissions. You also don't want to divide the website into multiple websites with my current knowledge because it will complicate the workflows for those who should have access to all those folders.

Now my problem is: that both groups of users only have access permissions to those folders, but they do not have permission to access the website or the root folder. It means that users cannot simply navigate to the website in question from the SharePoint home page, nor can they find documents within that website by searching.

I tried searching online sharepoint documents, but couldn't find anything relevant.
I have a feeling that I don't understand some SharePoint concepts or am missing something obvious.