Ikuti langkah-langkah berikut ini untuk memverifikasi registry key di Windows PowerShell:
1. Ketik Windows PowerShell di Desktop Windows Server 2012R2
2. Pilih Icon Windows PowerShell
3. Di dalam prompt Windows PowerShell ketikkan script di bawah ini:
$testfolder = test-path "c:\Program Files\MyCustomSoftware\Logs"
#Update The Following Line with the Date/Timestamp of your file
$testfile = test-path "c:\Program
Files\MyCustomSoftware\Logs\201503163824MyLogFile.txt"
$testreg = test-path "HKCU:\Software\MyCustomSoftware\"
If ($testfolder) { write-host "Folder Found!" }
If ($testfile) { write-host "File Found!" }
If ($testreg) { write-host "Registry Key Found!" }
4. Tutup jendela PowerShell jika sudah selesai
Buat Video-video yang lainnya cek di Channel ini ya:
https://www.youtube.com/channel/UCikwGDYfTFWQxdiCqKvx6_w
Buat informasi seputar karir, travelling dan Reading kamu bisa mengunjungi blog ini ya:
https://nanangsadikin.wordpress.com/
Semoga bermanfaat.
Salam
Nanang
1. Ketik Windows PowerShell di Desktop Windows Server 2012R2
2. Pilih Icon Windows PowerShell
3. Di dalam prompt Windows PowerShell ketikkan script di bawah ini:
$testfolder = test-path "c:\Program Files\MyCustomSoftware\Logs"
#Update The Following Line with the Date/Timestamp of your file
$testfile = test-path "c:\Program
Files\MyCustomSoftware\Logs\201503163824MyLogFile.txt"
$testreg = test-path "HKCU:\Software\MyCustomSoftware\"
If ($testfolder) { write-host "Folder Found!" }
If ($testfile) { write-host "File Found!" }
If ($testreg) { write-host "Registry Key Found!" }
4. Tutup jendela PowerShell jika sudah selesai
Buat Video-video yang lainnya cek di Channel ini ya:
https://www.youtube.com/channel/UCikwGDYfTFWQxdiCqKvx6_w
Buat informasi seputar karir, travelling dan Reading kamu bisa mengunjungi blog ini ya:
https://nanangsadikin.wordpress.com/
Semoga bermanfaat.
Salam
Nanang
Comments
Post a Comment