Windows 10: move file with powershell not working as expected

Discus and support move file with powershell not working as expected in Windows 10 Software and Apps to solve the problem; Probably someone can help meWe have a lot off different files in a directory. We want to move al files from a month and older than three days with a... Discussion in 'Windows 10 Software and Apps' started by Pascal Wenders, Feb 17, 2023.

  1. move file with powershell not working as expected


    Probably someone can help meWe have a lot off different files in a directory. We want to move al files from a month and older than three days with a part of the name the same to another folder.When there are more files available thru the selection, than the files are moved to destination folder. But when there is only 1 file, the file is moved to a level higer and the name will be \MAR22 and not placed in the folder \MAR22Get-ChildItem -path $bronlocation+"*."+$item.extension Where-Object {$_.LastWriteTime -lt Get-Date.AddDays-3} &

    :)
     
    Pascal Wenders, Feb 17, 2023
    #1
  2. Kursah Win User

    PowerShell instead of Commandline in Creators Update

    Interestingly enough my personal laptop just got the update...and still has Command Prompt listed, not PowerShell...

    Edit: Not that it matters...I use both regularly. *Toast :toast:
     
    Kursah, Feb 17, 2023
    #2
  3. lvgandhi Win User
    powershell help does not seem to work

    Thanks for response.
    I have done chkdsk C: /f also.
    still not working. I tried your suggestion also. That also does not work.
    But as I said get-help dir works. Please see below

    move file with powershell not working as expected 195594d1531492523t-powershell-help-does-not-seem-work-pshelperror2.png
     
    lvgandhi, Feb 17, 2023
    #3
  4. KeithM Win User

    move file with powershell not working as expected

    How to change the WinX menu, including Powershell/Powershell (Admin)

    This part intrigues me. As suggested earler, please post a screenshot of the error message. Also, please clarify/test the follwoing:
    1. Can you start PowerShell from the Start Menu?
    2. If you navigate to %localappdata%\Microsoft\Windows\WinX\Group3, does PowerShell launch from the shortcuts there?
    3. If #1 works & #2 doesn't, compare (& post) the target text from each shortcuts properties. For the Start Menu shortcut, right-click & select Open file location to navigate to the Start Menu folder.

    Keith
     
    KeithM, Feb 17, 2023
    #4
Thema:

move file with powershell not working as expected

Loading...
  1. move file with powershell not working as expected - Similar Threads - move file powershell

  2. Search not working as expected

    in Windows 10 BSOD Crashes and Debugging
    Search not working as expected: Bought this laptop from my Aunt and trying to setup everything, it seems the search bar is not working. https://answers.microsoft.com/en-us/windows/forum/all/search-not-working-as-expected/2e7f73c0-c956-4ca9-9e22-bc1037834a93
  3. Search not working as expected

    in Windows 10 Gaming
    Search not working as expected: Bought this laptop from my Aunt and trying to setup everything, it seems the search bar is not working. https://answers.microsoft.com/en-us/windows/forum/all/search-not-working-as-expected/2e7f73c0-c956-4ca9-9e22-bc1037834a93
  4. Search not working as expected

    in Windows 10 Software and Apps
    Search not working as expected: Bought this laptop from my Aunt and trying to setup everything, it seems the search bar is not working. https://answers.microsoft.com/en-us/windows/forum/all/search-not-working-as-expected/2e7f73c0-c956-4ca9-9e22-bc1037834a93
  5. move file with powershell not working as expected

    in Windows 10 Gaming
    move file with powershell not working as expected: Probably someone can help meWe have a lot off different files in a directory. We want to move al files from a month and older than three days with a part of the name the same to another folder.When there are more files available thru the selection, than the files are moved to...
  6. Backup not working as expected

    in Windows 10 Installation and Upgrade
    Backup not working as expected: Hi, I have W'10, and two external drives that I backup selected sub-directories to.The problem seems to have started when I added by second physical backup drive Drive_T and Drive_S.When I was staying with Drive_T only, backup worked fine. But now when I switch from Drive_T...
  7. Backup now working as expected

    in Windows 10 Installation and Upgrade
    Backup now working as expected: Hi, I have W'10, and two external drives that I backup selected sub-directories to.The problem seems to have started when I added by second physical backup drive Drive_T and Drive_S.When I was staying with Drive_T only, backup worked fine. But now when I switch from Drive_T...
  8. Workgroup not working as expected

    in Windows 10 Ask Insider
    Workgroup not working as expected: Hi all I am having trouble getting my workgroup to work properly between my pc (ethernet) and laptop (wifi). My PC can see the shared folders from the laptop, but the laptop cannot see the shared folders from the PC. I note that under the network folder my laptop can see...
  9. File Explorer Search not working as expected

    in Windows 10 Network and Sharing
    File Explorer Search not working as expected: Hi, I have Word & Excel files with multiple dashes in the the filename. For example, ABC-DEF-GHI.xlsx If I search for DEF in File Explorer then nothing appears. Is there a way around this? Replacing either of the dashes by a space works.....but I have a lot of files...
  10. File explorer and mouse cursor not working as expected

    in Windows 10 BSOD Crashes and Debugging
    File explorer and mouse cursor not working as expected: I open File explorer and just hovering over documents,downloads,videos,... etc. will make my cursor flicker between loading selecting and pointing and i've even spam clicked not on a file but just a blank page and that has made it even worse it opened windows media player. I...