Kayıtlar

Kasım, 2023 tarihine ait 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. ...

PowerShell ile Sunucu Disk Kullanım Raporu Oluşturma

Resim
İçindekiler Giriş İlk Adımlar Sunucu ve Sürücü Bilgilerini Almak HTML Raporunu Oluşturmak Sunucu ve Disk Bilgilerini İşleme WMI Nedir ? Renk Kodlarını Belirleme ve Raporu Doldurma Raporu Tamamlama Raporu Mail Olarak Gönderme Raporu Dosyaya Kaydetme Sonuç Giriş İşletim sistemlerinin günlük yönetiminde, sunucuların disk kullanımını düzenli olarak takip etmek kritik bir öneme sahiptir.Piyasada sistem sağlığını takip etmemize olanak sağlayan sayısız araç olmasına rağmen ben bu makalede, PowerShell kullanarak basit bir şekilde sunucu disk kullanım raporu oluşturmanın adımlarını açıklayacağım. Siz kendi ortamınıza göre scripti özelleştireb...

Reporting Exchange Mail Traffic and Login Statistics with PowerShell

Resim
  In today's work environments, email communication holds critical importance for organizations, creating the need to manage and track usage statistics. In this context, monitoring and reporting the access status and mail traffic of mailboxes on Exchange servers according to specific criteria is crucial for an Exchange administrator. In this blog post, I'll explain in detail how to use the PowerShell script below to collect mailbox access information and mail traffic, and transform this data into a meaningful report. Script Structure The script includes the following sections: 1. Adding Required PowerShell Snap-ins Add-PSSnapin *Exchange* The Add-PSSnapin *Exchange* PowerShell command is used to add the Exchange Management Shell (EMS) module. 2. Initializing Variables with Default Values $global:LogonArray = @() $global:LogonNullArray = @() $progress = 0 ...

PowerShell ile Exchange Mail Trafiği ve Oturum Açma İstatiklerini Raporlama

Resim
  Günümüz iş ortamlarında, organizasyonların e-posta iletişimi kritik bir öneme sahiptir ve bu iletişimi yönetmek ve kullanım istatistiklerini takip etme ihtiyacı oluşabilir. Bu bağlamda, Exchange sunucularında bulunan posta kutularının erişim durumlarını ve mail trafiğini belirli kriterleriniz doğrultusunda izlemek ve raporlamak, bir Exchange yöneticisi için önem arz etmektedir. Aşağıdaki PowerShell scriptini, posta kutularının erişim bilgilerini ve mail trafiğini toplamak ve bu verileri anlamlı bir rapora dönüştürmek için kullanabilirsiniz. Bu yazıda, scriptin nasıl çalıştığını, hangi bilgileri topladığını, ve nasıl kullanıldığını detaylı bir şekilde anlatmaya çalışacağım. Scriptin Genel Yapısı Script, aşağıdaki başlıkları içermektedir: 1. Gerekli PowerShell Eklentilerinin Eklenmesi Add-PSSnapin *Exchange* Add-PSSnapin *Exchange* PowerShell komutu, Exchange Man...

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 ...

Active Directory Kullanıcı Parolalarını Toplu Sıfırlama

Resim
     Active Directory ortamınızda bulunan birçok kullanıcının parolasını toplu olarak sıfırlamanız gerekebilir. Bu işlem, güvenlik politikalarını izlemek ve kullanıcıların hesaplarını güvende tutmak için önemlidir. Bu yazımda, PowerShell scriptlerini kullanarak Active Directory'de bulunan kullanıcıların parolalarını toplu olarak sıfırlamanın nasıl yapıldığını göstereceğim. PowerShell Ortamını Hazırlama      Active Directory'de işlem yapmak için PowerShell'i kullanabilirsiniz. PowerShell oturumunu başlatın ve gerekli Active Directory modülünü içe aktarın. Aşağıdaki komutlarla başlayabilirsiniz: Import-Module ActiveDirectory Parolaları Sıfırlama Organizasyon Birimi'ne(OU) Göre Parolaları Sıfırlama      Kullanıcıların parolalarını toplu olarak sıfırlamak için aşağıdaki PowerShell scriptini kullanabilirsiniz. Bu script, belirlediğiniz bir parola ile tüm kullanıcıların parolalarını değiştirir: $NewPassword = Con...