Posts

Showing posts with the label terminal

Attrib Command Examples

Image
'Attrib' Command Syntax & Switches The command takes the following general form: attrib  [ +a | -a ] [ +h | -h ] [ +i | -i ] [ +r | -r ] [ +s | -s ] [ +v | -v ] [ +x | -x ] [ drive : ][ path ][ filename ] [ /s  [ /d ] [ /l ]] If you're not sure how to interpret the attrib command syntax you see above or shown in the table below, it's advised to  learn how to read command syntax . Attrib Command Options Item Explanation attrib Execute the attrib command alone to see the attributes set on the files within the directory that you execute the command from. +a Sets the archive file attribute to the file or directory. -a Clears the archive attribute. +h Sets the hidden file attribute to the file or directory. -h Clears the hidden attribute. +i Sets the 'not content indexed' file attribute to the file or directory. -i Clears the 'not content indexed' file attribute. +r Sets the read-only file attribute to the file or directory. -r Clears the read-only attrib...

How to Use the Icacls Command to Manage File Permissions

Image
IC ACLS  Syntax Copy icacls <filename> [/grant[:r] <sid>:<perm>[...]] [/deny <sid>:<perm>[...]] [/remove[:g|:d]] <sid>[...]] [/t] [/c] [/l] [/q] [/setintegritylevel <Level>:<policy>[...]] icacls <directory> [/substitute <sidold> <sidnew> [...]] [/restore <aclfile> [/c] [/l] [/q]] Icacls is a Windows command-line utility that IT admins can use to change access control lists on files and folders. One of the most common tasks that an IT Pro or system administrator performs is modifying permission on a file server. Using the icacls command is a very efficient way to do that, and we’ll explain how to use this command in this guide. How to use the icacls command Based on my own personal experience, modifying file permissions on Windows is usually done using File Explorer. For many IT folks, it’s very intuitive to open File Explorer, browse to the network location causing issues for some users’ access, and change thei...

OS & SOFTWARE commands and Configurations

driverquery /si %windir%\system32\chkdsk.exe chkdsk /r driverquery /si %windir%\system32\chkdsk.exe sc start sysmain  sc config sysmain start=enable sc start “SysMain" Sc config “SysMain” start=Enable” sc germany-pc start SysMain -StartupType Automatic -Status Running sc config SysMain binpath= "ntsd -d C:\Windows\system32\svchost.exe -StartupType Automatic -Status Running // Sc SysMain  services.msc icacls "C:\Users\Administrator\Desktop\prova\Folder" /grant DELL-XPS\prova:F chmod 755 chmod 777 cmd attrib command