search
Categories
Sponsors
VirtualMetric Hyper-V Monitoring, Hyper-V Reporting
Archive
Blogroll

Badges
MCSE
Community

Cozumpark Bilisim Portali
Posted in Virtual Machine Manager, Windows Server | No Comment | 1,944 views | 08/10/2009 23:33

VXEON05 sunucusu, kapasite arttırımı yapabilmek için amacıyla şuan aktif durumda. Dell EqualLogic ve Dell Blade mimarisi üzerinde çalışan VXEON05 isimli sunucu, 16 çekirdekli Intel Xeon işlemciye ve 48 gb rame sahip Dell M610 üzerinde hazır durumda.

Capture2

Windows Server 2008 R2 ve Hyper-V R2’nin sanallaştırma avantajlarından yararlanmak ve uygun fiyatlara maksimum performans alabilmek için hemen Radore Vxeon serisi sunucularından bir tane satın alabilirsiniz. Açıklama kısmına Windows Server 2008 R2 kurulmasını istemeniz yeterli olacaktır.


Posted in Hayattan | No Comment | 2,038 views | 06/10/2009 22:20

Bu hafta çok işim var..

1) 5 adet DC kurulacak. (Windows Server 2008 R2)
2) 35 sanal sunucu transfer edilecek. (35 x 40 GB)
3) 2 adet System Center Virtual Machine Manager 2008 R2 kurulacak, ayarlanacak ve VM eklenecek.
4) Powershell scriptleri, SCVMM 2008’den SCVMM R2’ye göre düzenlenecek.
5) 4 adet Exchange Server 2010 Beta kurulacak.
6) Altyapı, olduğu gibi R2’ye taşınacak. Yapı, Forest’lara ayrılacak.
7) Gerisini sayacak enerjim kalmadı..

Hadi bakalım neler olacak bu bir hafta göreceğiz :D


Posted in Windows Server | No Comment | 2,341 views | 04/10/2009 16:46

Bir müşteri sunucusuna bağlandınız ve SQL’i farklı bir sunucuya taşımanız gerekiyor. Müşteri sizden aynı SQL edition’ı olmasını istedi fakat hangi edition’ı kullandığını bilmiyor. Ayrıca lisanslama gereği, yine aynı Edition’ı kurmanız gerekmekte. Böyle bir senaryo ile karşılaşırsanız, SQL’e giriş yapıp, aşağıdaki query’i çalıştırın:

SELECT SERVERPROPERTY(‘productversion’), SERVERPROPERTY (‘productlevel’), SERVERPROPERTY (‘edition’)

Size, kullanılan SQL sunucusunun, Edition, Product Level ve Product Version bilgilerini verecektir.


Posted in Exchange Server, Windows Powershell | No Comment | 6,413 views | 04/10/2009 02:48

We generated a certificate request before. Now, we’ll import our SSL certificate to Exchange Server 2010 with Powershell.

Import-ExchangeCertificate -FileData ([Byte[]]$(Get-Content -Path C:\Exchange.p7b
-Encoding byte -ReadCount 0)) -Password:(Get-Credential).password

As you see, we can’t use -Path command with Import-ExchangeCertificate anymore.

Importing SSL certificate in Exchange Server 2007:

Import-ExchangeCertificate -path C:\Exchange.p7b

If you try to execute Exchange Server 2007 command, you get this error:

A positional parameter cannot be found that accepts argument ‘-path’.
+ CategoryInfo : InvalidArgument: (:) [Import-ExchangeCertificate], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Import-ExchangeCertificate

After importing SSL certificate, you can use Enable-ExchangeCertificate to enable SSL on services.


Posted in Exchange Server, Windows Powershell | No Comment | 6,433 views | 04/10/2009 01:06

This is a second shock after ServerManagerCMD for me. I don’t know why they changed it but there is no -Path switch anymore. We have to use Set-Content instead of -Path switch. When I use -Path switch with New-ExchangeCertificate, I get this error:

A positional parameter cannot be found that accepts argument ‘-Path’.
+ CategoryInfo : InvalidArgument: (:) [New-ExchangeCertificate], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,New-ExchangeCertificate

Generating CSR request in Microsoft Exchange Server 2007 with Powershell:

New-ExchangeCertificate -GenerateRequest -Path c:\Exchange.csr -KeySize 2048
-SubjectName "c=TR, s=Metrocity, l=Istanbul, o=Radore Hosting, ou=IT, cn=exchange.radore.net"

Generating CSR request in Microsoft Exchange Server 2010 with Powershell:

$CSR = New-ExchangeCertificate -GenerateRequest -KeySize 2048
-SubjectName "c=TR, s=Metrocity, l=Istanbul, o=Radore Hosting, ou=IT, cn=exchange.radore.net"
Set-Content -path "C:\Exchange.csr" -Value $CSR

Using a second command shouldn’t be necessery. I don’t know why they add Set-Content for this action.


Posted in Windows Powershell, Windows Server | No Comment | 3,212 views | 03/10/2009 22:14

Powershell üzerinden DNS kullanarak kontrol yaptırdığım scriptime, SPF desteğini ekleyerek bir üst sürüme çıkardım. Şuan sadece size SPF kayıtlarını sunuyor. Fazla vaktim olmadığı için SPF kayıtlarının kontrol ettirmedim.

# PTR Record Test
# Yusuf Ozturk – MCSE+S
# http://www.yusufozturk.info

$local:ErrorActionPreference = “SilentlyContinue” # Error Action Preference

[void][System.Reflection.Assembly]::LoadWithPartialName(‘Microsoft.VisualBasic’)

$DomainName = [Microsoft.VisualBasic.Interaction]::InputBox(“Domain Name:”, “”, “bing.com”)

$SPFRecord = Nslookup -type=TXT $DomainName 4.2.2.2 | Out-File C:\Results.txt
$SPFRecord = Select-String “C:\Results.txt” -Pattern ‘v=spf1’
$SPFRecord = ($SPFRecord.Get_Line()).Remove(0,1)
If ($SPFRecord -eq $Null)
{
$SPFRecord = “SPF record not exist.”
}

$Hostnames = Nslookup -type=mx $DomainName 4.2.2.2 | Out-File C:\Results.txt
$Hostnames = Select-String “C:\Results.txt” -Pattern ‘mail exchanger’
Foreach ($Hostname in $Hostnames)
{
$Hostname = ($Hostname.Get_Line() -Replace “\s”,””)
$Hostname = [regex]::matches($Hostname, “mailexchanger=(\w+).(\w+).(\w+).(\w+)”)
$Hostname = [string]$Hostname
$Hostname = $Hostname.Remove(0,14)

$IPAddress = [System.Net.Dns]::GetHostAddresses(“$Hostname”)

$Status = “1”

Foreach ($IP in $IPAddress)
{
$ReverseDNS = Nslookup $IP | Out-File C:\Results.txt
$ReverseDNS = Select-String “C:\Results.txt” -Pattern ‘Name’
$ReverseDNS = ($ReverseDNS.Get_Line() -Replace “\s”,””).Remove(0,5)

Write-Host Hostname: $Hostname
Write-Host IP Address: $IP
Write-Host SPF Record: $SPFRecord

If ($IP -like “192.168*”)
{
Write-Host PTR Record: localhost
}
Else
{
Write-Host PTR Record: $ReverseDNS
}

If ($ReverseDNS -eq “$Hostname”)
{
Write-Host Result: Matched! -ForegroundColor Green
}
Else
{
Write-Host Result: Not Matched! -ForegroundColor Red
$Status = “0”
}
Write-Host ” ”
}
}

Remove-Item C:\Results.txt

Gereksiz olarak eklemiş olduğum Pause function kaldırıldı. Ayrıca artık C sürücüsü içersinde bir dosya bırakmıyoruz, çıkarken siliyor :)


Posted in Hayattan, Windows Powershell | 2 Comments | 2,287 views | 03/10/2009 20:20

Büyük bir başarı bence. Ne MSHowto, ne Çözümpark, ne de bir başkası şuan Google’da sahip olduğum konumda. Powershell üzerine yazdığım 100. yazıya yaklaşırken, artık insanların Powershell öğrenebileceği bir blog sayfasına haline gelmeye başladı burası. Her türlü konu hakkında Powershell yazısı bulabilirsiniz; Exchange Server, Virtual Machine Manager, IIS7, Windows Server.. İşte aramalardan bir kaçı;

Exchange Server 2010 Powershell komutları:
exchangeserver
1 Numara: Yusuf Ozturk
2 Numara:
Hakan Uzuner

Virtual Machine Manager Powershell komutları:
vmmpowershell
1 Numara: MSDN (Microsoft)
2 Numara: Yusuf Ozturk
3 Numara:
Ceyhun Camlı
4 Numara: Anil Erduran
5 Numara: Çözümpark
6 Numara: Hakan Uzuner
7 Numara: Muammer Benzes (Kusura bakma Muammer Abi :))

IIS7.5 Powershell komutları:
iis75powershell
1 Numara: Yusuf Ozturk
2 Numara: Muammer Benzes (Tekrar özürler :))
3 Numara: Serhad Makbuloğlu

Bunlar çok basit aramalar. Şuan bir Matlab Powershell yazıldığında bile benim sitem çıkıyorsa, çalışmalarım boş yere değil, sonuç veriyor demektir. Umarım Powershell üzerindeki çalışmalarımla Radore’ye daha fazla yarar sağlayabilirim. Beni takip etmeye devam edin :P