About 699,000 results
Open links in new tab
  1. How do I change a file's attribute using Powershell?

    Jan 21, 2009 · You can use the good old dos attrib command like this: attrib -a *.* Or to do it using Powershell you can do something like this: As the Attributes is basically a bitmask field, you …

  2. Use a PowerShell Cmdlet to Work with File Attributes

    Jan 26, 2011 · Most people use the Set-ItemProperty cmdlet when working with the registry provider, but the Set-ItemProperty can work with any provider that provides access to item …

  3. How to show hidden files (dotfiles) with windows powershell

    You can alter the attributes without resorting to any other utility in powershell: (Get-ChildItem SomeFile.txt).Attributes = 'Hidden'

  4. Hiding the Folders Using PowerShell - Stack Overflow

    Jan 7, 2016 · However, if you want to unhide your files, then you need to add the -Force parameter, so that you get a command like (in short notation) gci -r -fo $folder | % { …

  5. Change Files and Folders Attributes Using PowerShell

    Oct 16, 2020 · You can set the attribute using PowerShell. For example, we have a file called TestFile.txt and its attribute is ReadOnly and we need to change it to the Archive.

  6. File Attributes in PowerShell - PowerShell - SS64.com

    They retrieve the files using Get-ChildItem -force which ensures they will work even if the file is hidden. [set-attrib.ps1] [string]$FilePath = $(throw "-FilePath is required."), [switch]$Archive = …

  7. Tutorial Powershell - Hide files and folders [ Step by step ]

    Start a Powershell command-line. Create a folder. Create multiple files. Hide a folder using Powershell. Optionally, hide all files from the directory using Powershell. Unset the hidden file …

  8. Use PowerShell to clear stubborn file attributes

    Oct 6, 2020 · foreach {Set-ItemProperty -path $_.FullName -Name attributes -value ((Get-ItemProperty $_.fullname).attributes -BAND ([io.fileattributes]::hidden + …

  9. powershell - How to unhide hidden NTFS folder? (option greyed …

    Nov 30, 2010 · If you have the full path, you can try using attrib to remove the system/hidden attributes from the folder. attrib -s -h

  10. The easy way to work with file attributes in PowerShell

    Feb 5, 2019 · To view or manipulate the file system attributes in PowerShell, use the “Get-Item” or “Get-Childitem” cmdlets to create an object of “System.IO.FileInfo” class for each of your …

Refresh