Change File Attributes Hidden System Archive with CMD and PowerShell FIX

Your video will begin in 10
Skip ad (5)
écrire un livre en soixante jours et le placer en premiere place sur amazon

Thanks! Share it with your friends!

You disliked this video. Thanks for the feedback!

Added by admin
1 Views
How to Change File Attributes Hidden System Archive with CMD and PowerShell FIX
Please subscribe to my channel ⬆️ and like this video ↗️
.
Commands used:
attrib -H -S +A test.jpg
attrib -H -S +A *.jpg
attrib +A *.jpg
.
$file = Get-Item "C:\test\test.jpg" -Force
$file.Attributes = "Hidden, System"
$file.Attributes = $file.Attributes -band (-bnot ([System.IO.FileAttributes]::Hidden -bor [System.IO.FileAttributes]::System))
.
Get-ChildItem -Path "C:\test\" -File | ForEach-Object {$_.Attributes = "Hidden, System"}
.
Get-ChildItem -Path "C:\test\" -File -Force | ForEach-Object {
$_.Attributes = $_.Attributes -band (-bnot ([System.IO.FileAttributes]::Hidden -bor [System.IO.FileAttributes]::System))
}
.
Whether you are a novice home user or experienced technician if you found this video helpful feel free to bookmark for future use or save the link in your knowledge base, wiki, confluence or ticket. Lets Ninja fix IT! ????
.
Note: These guides are not intended to guarantee resolution on any issues, warnings, or errors you are experiencing with your infrastructure. A strong technical background is recommended in, but not limited to, server administration, Window OS, networking, Office 365, cmd line, powershell and general MSP best practices. Always export the current configuration, confirm backup solutions are up to date, make a backup\snapshot\checkpoint before making any changes. Do not make any irreversible changes or deletion events with out performing due diligence.
Hashtags
--------------
#cmd #powershell #microsoft #windows #windows10 #windows11 #script #scripting #powershellscripting #Hidden #System #Attributes
Category
Systeme.io Boost your sales

Post your comment

Comments

Be the first to comment