Skip to content
  • Home
  • About
  • Links
  • Posts
  • Donate

Powershell Administrator Blog

Those who forget to script, are doomed to repeat their work

Tag: Move-item

Move-item and files with [ and ] in its filename

Posted on 05/01/2015 by Powershell Administrator

I was researching a bug in a script of mine, where most files would be moved, exept some. The behaviour seemed irregular, until I noticed that the files not being moved had 1 thing in common. They all had brackets [ ] in their file name. It appears that if you use Move-item -Path <filename> … Continue reading Move-item and files with [ and ] in its filename →

Tagged Move-itemLeave a comment

Recent Posts

  • Document rds environment
  • Azure Resource Inventory
  • Get-ServiceCredential
  • Get list of intune managed devices
  • Move witness disk in SQL cluster
  • Move images based on dimension
  • Add user(s) to group(s) – GUI
  • Get Remote Desktop Services info
  • Copy AD group members
  • Exchange powershell .Value.toMB()

Recent Comments

  • Powershell Administrator on Exporting all scheduled tasks
  • Tortula Bloom on Exporting all scheduled tasks
  • sentov on Document rds environment

Categories

Tags

.NET Active Directory Automatic Documentation Excel export to csv Get-Process Invoke-Webrequest non-default Notepad++ updater Powershell RDS Report SQL Text-to-speech Windows Services

Archives

OcinO – Powershell

OcinO – Powershell

Meta

  • Create account
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.com

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 41 other subscribers
Create a website or blog at WordPress.com
  • Subscribe Subscribed
    • Powershell Administrator Blog
    • Join 41 other subscribers
    • Already have a WordPress.com account? Log in now.
    • Powershell Administrator Blog
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Our Cookie Policy