10 Ağustos 2021 Salı

Windows fsutil komutu

createnew
Belirtilen büyüklükte dosya oluşturur

Örnek
Şöyle yaparız
fsutil file createnew <filename> <length>

27 Haziran 2021 Pazar

ipconfig komutu

Giriş
Bu komut Windows'ta çok kullanılır

all seçeneği
Windows'ta ipconfig /all ile hangi DHCP sunucusundan IP adresi aldığımız öğrenilebilir. Şöyle yaparız.
ipconfig /all > output.txt
flushdns seçeneği
Şöyle yaparız.
ipconfig /flushdns
registerdns seçeneği
Açıklaması şöyle. Domain Controller'da çalıştırılırsa, kendisini DNS sunucusuna ekler.
ipconfig /registerdns registers the main A and PTR records for a server;
release seçeneği
DHCP sunucusundan alına IP adresini bırakır. Şöyle yaparız.
ipconfig /release

9 Haziran 2021 Çarşamba

Powershell Get-WinEvent

Örnek
Şöyle yaparız
Get-WinEvent | ?{$_.id -eq 307} | Export-Clixml 307Events.xml  

14 Mayıs 2021 Cuma

w32tm Servisi - NTP İçindir

Giriş
NTP ile zaman senkronizasyonu içindir

resync seçeneği
Örnek
Şöyle yaparız
net start W32Time 
w32tm /resync
Örnek
Senkronizasyonu beklemeden zorla saatleri eşitlemek için şöyle yaparız
net stop W32Time 
net start W32Time 
w32tm /resync /force

25 Mart 2021 Perşembe

Windows sfc komutu - System File Checker

Örnek
Şöyle yaparız
sfc /scannow
Açıklaması şöyle
The sfc /scannow command will scan all protected system files, and replace corrupted files with a cached copy that is located in a compressed folder at %WinDir%\System32\dllcache. The %WinDir% placeholder represents the Windows operating system folder. For example, C:\Windows.

8 Mart 2021 Pazartesi

Powershell Set-Clipboard

Örnek
Şöyle yaparız
$date =  get-date -format "dd-MM-yyyy hh:mm:ss"

$name = "Graeme"

$clipboard = $date + " " + $name

$clipboard | Set-Clipboard

28 Şubat 2021 Pazar

Powershell Rename-Item

Örnek
Şöyle yaparız
CMD Example: ren c:\exampledirectory\examplefileold.txt
c:\exampledirectory\examplefilenew.txt 

Powershell Example: rename-item -path "c:\exampledirectory\examplefileold.txt"
-newname "examplefilenew.txt"