Kayıtlar

Automation etiketine sahip yayınlar gösteriliyor

Creating Server Disk Usage Report with PowerShell

Resim
Table of Content Introduction First Steps Getting Server and Drive Information Creating the HTML Report Processing Server and Disk Information What is WMI? Determining Color Codes and Filling the Report Completing the Report Sending the Report via Email Saving the Report to a File Conclusion Introduction Regularly monitoring server disk usage is crucial in the daily management of operating systems. Despite numerous tools available in the market for monitoring system health, in this article, I will explain the steps to create a server disk usage report using PowerShell in a simple way. You can customize the script according to your environment. ...

Bulk Resetting Active Directory User Passwords

Resim
  In your Active Directory environment, resetting the passwords of many users in bulk can be a crucial task to adhere to security policies and keep user accounts secure. In this article, I will demonstrate how to reset the passwords of users in Active Directory in bulk using PowerShell scripts. Preparing the PowerShell Environment: To operate in Active Directory, you can utilize PowerShell. Start a PowerShell session and import the necessary Active Directory module with the following commands: Import-Module ActiveDirectory Resetting Passwords: Resetting Passwords Based on Organizational Unit (OU): To reset user passwords in bulk, you can use the following PowerShell script. This script changes the passwords of all users with a specified password: $NewPassword = ConvertTo-SecureString -String "NewPassword" -AsPlainText -Force $Users = Get-ADUser -Filter * -SearchBase "OU=Users,DC=Example,DC=com" # Specify the ...