Powershell Command For Hidding Files On Windows

Hacker

Professional
Messages
1,041
Reaction score
865
Points
113
SYNATAX
Code:
New-Item -Path <FILENAME> -ItemType File
(get-item <FILENAME>).Attributes += 'Hidden'

EXAMPLE
Code:
New-Item -Path ccs.txt -ItemType File
(get-item ccs.txt).Attributes += 'Hidden'
 
Top