How To See Windows Installation Date 

Open a command promt as an Administrator
and run wmic os get installdate

Yorum bırakın

Enable Disk Performance Monitor On Windows Server

  1. Ensure the Task Manager is closedOpen the Command Prompt with Elevated permissionrun the following command: diskperf -Y
  2. Re-Open the task manager.

Disable Disk Performance Monitor

You can simply change the parameter from -y to -n as below:diskperf -N

Yorum bırakın

Windows Taskkill (Stopping Service)

sc queryex servicename
servicename

 

 

 

 

 

 

 

 

 

C:\Users\test> sc queryex IceWarpSMTP

ServicePid

taskkill /f /pid [PID]
taskkill /f /pid 4624

Windows Server içinde yayınlandı | ile etiketlendi | Yorum bırakın

Which task is using which port in Windows.

Which task is using which port in Windows.

netstat -aon | findstr <port number>

Example;
c:\netstat -aon | findstr 8080

Output like this;

C:\>netstat -aon | findstr 8080
TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 8424
TCP 127.0.0.1:8080 127.0.0.1:58664 FIN_WAIT_2 8424
TCP 127.0.0.1:8080 127.0.0.1:58665 FIN_WAIT_2 8424
TCP 127.0.0.1:8080 127.0.0.1:58667 FIN_WAIT_2 8424

We can find the application by PID;

c:\tasklist | findstr 8424

Tasklist by PID

tasklist

 

 

https://dzone.com/articles/how-to-check-which-process-is-using-port-8080-or-a

Yorum bırakın

Powershell ile Log Dosyalarında String Arama

Bir log dosyası içinde aranan kelime ya da kelimeleri Powershell komut satırından basit bir şekilde yapmak için Select-String komutu kullanılabilir.

PS C:\>Select-String -Path d:\Directory\logs\*.log -Pattern aranacak_string

Örnek: PS C:\>Select-String -Path c:\logfolder\*.log -Pattern facebook (Bulunduğunuz dizin içindeki .log uzantılı dosyaların içinde facebook kelimesini arar)
Örnek2: PS C:\>Select-String -Path c:\logfolder\*.log -Pattern facebook,wordpress
Örnek3: PS C:\>Select-String -Path c:\logfolder\firewall.log -Pattern youtube,facebook >> c:\temp\tarama.txt (firewall.log dosyasında youtube ve facebook geçen satırları c:\temp altında tarama.txt dosyasına yazdırır.)

Örnek script;

$searchWords = ‘aranacak’,’kelimeler’

Foreach ($sw in $searchWords)
{
Get-Childitem -Path “C:\logs” -Recurse -include “*.log” |
Select-String -Pattern “$sw” |
Select Path,LineNumber,@{n=’SearchWord’;e={$sw}}

}

PowerShell, Windows içinde yayınlandı | ile etiketlendi | Yorum bırakın

Recommended resolution & aspect ratios

Recommended resolution & aspect ratios

For the default 16:9 aspect ratio, encode at these resolutions:

2160p: 3840×2160
1440p: 2560×1440
1080p: 1920×1080
720p: 1280×720
480p: 854×480
360p: 640×360
240p: 426×240

ile etiketlendi | Yorum bırakın

Exchange Outlook Provider Settings

If you are having Outlook client connectivity issue with Exchange 2013 or 2016 try this;

Set-outlookprovider expr -certprincipalname: “msstd:mail.domainname.com”
Set-outlookprovider exch -certprincipalname: “msstd:mail.domainname.com”

To see result;

Get-Outlookprovider

Exchange Server 2013&2016

Exchange, Server içinde yayınlandı | ile etiketlendi | Yorum bırakın

Get your Public IP on Linux cli

How to see your server's Public ip;
curl ifconfig.me
curl icanhazip.com
curl ipecho.net/plain
curl ifconfig.co

Source: https://www.cyberciti.biz/faq/how-to-find-my-public-ip-address-from-command-line-on-a-linux/
Linux içinde yayınlandı | ile etiketlendi | Yorum bırakın

Get-VM on Hyper-V Server

Get Virtual Machine List on Hyper-V Server;
Get-VM

Get Running Virtual Machines on Specific Hyper-V host;
Get-VM
-ComputerName Server1 | Where-Object {$_.State -eq ‘Running’}

Get All Virtual Macine List on Hyper-V Failover Cluster Structure;
Get-ClusterGroup
| ? {$_.GroupType -eq ‘VirtualMachine’ } | Get-VM

If you want to write to text file your output;
Get-ClusterGroup | ? {$_.GroupType -eq ‘VirtualMachine’ } | Get-VM | Out-File c:\vmlist.txt

Yorum bırakın

Saved Windows 10 Wi-fi Passwords

netsh wlan show networks
netsh wlan delete profile name=profilename
netsh wlan export profile name=SSID
netsh wlan add profile filename=c:\temp\filename.xml

netsh wlan show profile
netsh wlan show profile [wifi-name] key=clear

Windows içinde yayınlandı | Yorum bırakın