Skip to content

Instantly share code, notes, and snippets.

@RobsonAutomator
Created April 4, 2017 08:28
Show Gist options
  • Save RobsonAutomator/02b853134941eef5abcd4b78312f65c9 to your computer and use it in GitHub Desktop.
Save RobsonAutomator/02b853134941eef5abcd4b78312f65c9 to your computer and use it in GitHub Desktop.
Set read only attributes on files
$source="C:\inetpub\wwwroot\Sitecore82\Website\bin\*" #path to files
Set-ItemProperty -Path $source -Name IsReadOnly -Value $true -Verbose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment