Add-Content – Append Text to File in PowerShell
While working with files in PowerShell, we have to append text to a file using PowerShell like adding text to the end of a file, …
While working with files in PowerShell, we have to append text to a file using PowerShell like adding text to the end of a file, …
The Get-Date cmdlet in PowerShell gets the current date and time of the system. Get-Date uses the computer’s culture settings to format the output date …
The Unlock-AdAccount in Active Directory unlocks the ad account. To unlock ad account, use the Identity parameter which specifies an account using the distinguished name, …
The list of users from the organization unit can be retrieved using Get-AdUser with the SearchBase parameter to search for users in specific OU and …
Computers in an organizational unit (OU) in the Active Directory can be retrieved using Get-AdOrganizationalUnit with Filter and SearchBase parameters to search within OU and …
As best practice to check regularly on stale accounts in the active directory, we want to query to get ad user not logged in for …
The shutdown command-line tool to restart Windows and Restart-Computer cmdlet in PowerShell is used to restart windows or reboot the windows without any GUI tool. …
Event Id 1074 – This event is logged when the user initiates a windows system restart or shutdown through Ctrl + Alt + Delete and …
Event Id 4670 event is generated when permissions on an object were changed. An object can be a file system, key, folder, registry, Service, or …
Event Id 4634 event is generated when a logon session is terminated or is destroyed. The session is no longer exists. When the user initiated …