PowerShell Turkiye (PSTR) Web Seminerleri – 3


27.02.2020 tarihli oturumun kaydina asagidaki linkten ulasabilirsiniz.

Ayrica, yeniliklerden haberdar olmak ve oturum kayitlarina hizli erisim saglamak icin PSTR Twitter hesabini takip edebilirsiniz.
@powershellT
Tesekkurler
#PowerShellTurkiye
#PSTR
#PowerShellTR
#Automation
#PowerShell

Continue Reading PowerShell Turkiye (PSTR) Web Seminerleri – 3

PowerShell Turkiye (PSTR) Web Seminerleri – 2


21.02.2020 tarihli oturumun kaydina asagidaki linkten ulasabilirsiniz.

Ayrica, yeniliklerden haberdar olmak ve oturum kayitlarina hizli erisim saglamak icin PSTR Twitter hesabini takip edebilirsiniz.
@powershellT
Tesekkurler
#PowerShellTurkiye
#PSTR
#PowerShellTR
#Automation
#PowerShell

Continue Reading PowerShell Turkiye (PSTR) Web Seminerleri – 2

PowerShell 7 Preview 5 Yenilikleri


PowerShell 7 Preview 5, bir cok yeniligi beraberinde getirdi. Gectigimiz gunlerde yayinlanan bu yeni surumde goze carpan yenilikleri soyle siralayabiliriz.
 
Chain operators – Zincir operatorler
Pipeline icinde kosul bazli komut kosturulmasini saglar
 
Null condition operators – Null deger kontrolu
Bir degiskenin $null degere sahip olmadigini pipeline icinde kontrol etmeye yarar.
 
Yeni PowerShell version uyarisi
Yeni bir PowerShell surumu yayinlandiginda, bu bilgi PowerShell konsolunu acildiginda kullaniciya mesaj olarak iletilir. Faydali oldugunu dusunuyorum. Zira ozellikle preview surumlerinin cok hizli yenilendigini dusunursek..
 
Degisken atamalarinda Tab tusu kullanimi
Bence bu da oldukca faydali bir ozellik. $DebugPreference gibi sistem degiskenlerinin degerlerini atarken hangi degerlerin gecerli deger olarak kabul edildigini tahmin etmek cok da kolay degil. Bu sayede TAB tusu sayesinde gecerli degerler bir bir listelenir ve uygun olani secebilirsiniz.
 
Format-Hex
Ayni pipeline icinde birden fazla degiskenin Hex degerinin listelenmesini saglar.
 
Get-HotFix
Windows PowerShell’de kullanilan Get-HotFix artik PowerShell 7 icerisinde de kullanilabilir durumda.
 
Concise Error Views
Hata mesajlari her zaman anlasilmasi guc mesajlardir. PowerShell 7 ile gelen bu ozellik sayesinde hata mesajlarini rafine edebilir ve gereksiz kisimlari elimine ederek daha “anlasilir” hale getirebilirsiniz.
 
Select-String
Bir icerik icinde aranan string degerinin ekrana “suslu” bir sekilde yazdirilmasini saglayan ozellik. Uzun metinlerin icinden kelime ayiklamak gerektiginde faydali olacagini dusunuyorum.
 
Yukaridaki yeniliklerin detayli anlatimini farkli postlar icinde ayri ayri yapacagim.

Continue Reading PowerShell 7 Preview 5 Yenilikleri

PowerShell ile Windows Server 2019 Active Directory Uzerinde Kullanici Tasimak

Active Directory icinde bir OU’dan digger bir OU’ya kullanici tasimak icin asagidaki script’I kullanabilirsiniz. Bu ornekte basit bir static liste olusturdum ve icine hem gecerli hem de gecersiz kullanicilar yerlestirdim. Bir de hata kontrolu yaparak gecerli kullanicilarin tasinmalarini, gecersizler icin ise ekrana hata mesaji yazidirilmasini sagladim.
Iste script
[crayon]
$kullanicilar = @(“PSTRuser1″,”PSTRuser2″,”PSTRuser333″,”PSTRuser4″,”PSTRuser5”)
$HedefOU = “OU=YENI,DC=POWERSHELLTURKIYE,DC=com”
foreach($kullanici in $kullanicilar) {
try{
$kullaniciDN = (Get-ADUser -Identity $kullanici).distinguishedName
Move-ADObject -Identity $kullaniciDN -TargetPath $HedefOU
Write-Host “$kullanici basariyla $hedefOU icerisine tasindi” -ForegroundColor Green
}catch{
Write-Host “$kullanici bulunamadi” -ForegroundColor Red
}
}
[/crayon]

Continue Reading PowerShell ile Windows Server 2019 Active Directory Uzerinde Kullanici Tasimak

Powershell ile Hizli Azure Baglantisi Gerceklestirin

Azure yonetimi icin Powershell kullaniyorsaniz ve eger her seferinde Connect-AzureRmAccount komutnu kullanmak zorunda kaliyorsaniz asagidaki ipucuna bir goz atin.
Export-Clixml komutu ile kullanici adi ve parolanizi SecureString olarak bir XML dosyasinda saklayabilirsiniz. Gerektiginde de hizlica kullanabilirsiniz elbette
Once parolamizi girerek bu bilgilerin dosya icinde saklanmasini saglayalim.
[crayon]
$cred = Get-Credential | Export-Clixml c:\sil\cred1.xml
[/crayon]

Dosyanin icerigine bakmak isterseniz asagidaki sekilde goruntulenecektir.

Simdi de bu dosyayi kullanarak Azure ortamina baglanti gerceklestirelim.
[crayon]
$cred = Import-Clixml c:\sil\cred1.xml
Connect-AzureRmAccount -Credential $cred
[/crayon]

Ve aninda goruntu!

Continue Reading Powershell ile Hizli Azure Baglantisi Gerceklestirin

WordPress Resources at SiteGround

  • Post author:
  • Post category:Uncategorized

WordPress is an award-winning web software, used by millions of webmasters worldwide for building their website or blog. SiteGround is proud to host this particular WordPress installation and provide users with multiple resources to facilitate the management of their WP websites:

Expert WordPress Hosting

SiteGround provides superior WordPress hosting focused on speed, security and customer service. We take care of WordPress sites security with unique server-level customizations, WP auto-updates, and daily backups. We make them faster by regularly upgrading our hardware, offering free CDN with Railgun and developing our SuperCacher that speeds sites up to 100 times! And last but not least, we provide real WordPress help 24/7! Learn more about SiteGround WordPress hosting

WordPress tutorial and knowledgebase articles

WordPress is considered an easy to work with software. Yet, if you are a beginner you might need some help, or you might be looking for tweaks that do not come naturally even to more advanced users. SiteGround WordPress tutorial includes installation and theme change instructions, management of WordPress plugins, manual upgrade and backup creation, and more. If you are looking for a more rare setup or modification, you may visit SiteGround Knowledgebase.

Free WordPress themes

SiteGround experts not only develop various solutions for WordPress sites, but also create unique designs that you could download for free. SiteGround WordPress themes are easy to customize for the particular use of the webmaster.

Continue Reading WordPress Resources at SiteGround