To list all currently logged-in users (especially useful in multi-user environments): query user For more detailed information, including the domain: whoami
You can use the following PowerShell command to display your IPv6 address: Get-NetIPAddress -AddressFamily IPv6 If you only want to see the IPv6 addresses assigned to your active network interfaces, use: Get-NetIPAddress -AddressFamily IPv6 | Where-Object { $_.PrefixOrigin -ne "WellKnown" } Alternatively, you can use ipconfig in PowerShell: ipconfig /all
You need to practice these commands with command line in windows operating system. Make a File Read-Only cmd attrib +R filename.txt Remove Hidden Attribute cmd attrib -H filename.txt Apply Attributes to All Files in a Directory and Subdirectories cmd attrib +H *.* /S Set Attributes for a Directory cmd attrib +S +H "C:\MyFolder" /D Remove System and Hidden Attributes from Files and Folders cmd attrib -S -H *.* /S /D
Windows CMD Important Commands in this article you learn to use these command in windows operating system. for best practice you need to open your CMD in windows to open you can use a shortcut Windows logo Key + R with keyboard to run and type CMD. Disk and System Information chkdsk Checks the disk for errors. Example: chkdsk C: diskpart Opens the disk partition management tool. Example: diskpart systeminfo Displays detailed information about the system. Example: systeminfo exit Exits the command prompt. Example: exit
PowerShell Basic Commands PowerShell Basic Commands first you need to open PowerShell in windows to run these commands for best practice. Create a New Directory New-Item -ItemType Directory -Name <FolderName> Create a New File New-Item -ItemType File -Name <FileName> Delete a File or Folder Remove-Item <Path>
CMD Basic System Information Commands in this article your going to learn that how to use system information command with your windows. remember to open CMD in windows for best practice. System Information cls Clears the screen. Example: cls echo Displays messages or turns on/off the command echoing. Example: echo Hello World systeminfo Displays detailed system information. Example: systeminfo hostname Displays the name of the computer. Example: hostname
Basic CMD Commands Open windows CMD and run these commands for best practice. Navigation Commands cd [directory] Change directory. Example: cd C:\Users\Yourdirectory cd.. Move up one directory level. dir Display the list of files and directories in the current directory. cls Clear the screen. path Show or set the PATH environment variable.