HackWare.ru
Tag

PowerShell

Software, hardware and other IT

How to display the full user name in a domain and workstation in PowerShell and CMD

Contents 1. How to find the full name of a user on the local computer 1.1 net user $env:USERNAME 1.2 Get-WMIObject Win32_UserAccount 1.3 [adsi] 1.4 Displaying the user name in CMD 1.5 Full user name in the Windows registry 2. How…

Read article →
PowerShell

Hashtables in PowerShell (strings that start with @) (complete guide)

Table of Contents 1. What are Hashtables in PowerShell 2. What are hashtables used for? 1) Storing data 2) Cmdlet options 3) Formatting output 4) Converting to JSON 3. Syntax for creating hashtables 4. Why the order of keys is not…

Read article →
PowerShell

An analogue of cd and chdir in PowerShell. How to change the current working folder in PowerShell

Why change the working folder in the command line The current folder (or working folder) is the location in the file system where the user is located when working in the Terminal. Strictly speaking, each running process has its ow…

Read article →
↑