hdhwang's Blog

  • HOME
  • TAG
  • MEDIA LOG
  • LOCATION LOG
  • GUEST BOOK
  • ADMIN
  • WRITE

파워셸 3

윈도우에서 msi 파일 파운로드 및 설치 PowerShell 스크립트

$srcPath = "파일 다운로드 URL" $dstPath = "파일 저장 경로 ex)C:\Temp\installer.msi" # msi 파일 다운로드 수행 wget -Uri $srcPath -OutFile $dstPath # msi 파일 설치 수행 Start-Process msiexec.exe -ArgumentList "/i `"$dstPath`" /qn" -Wait

Programming/PowerShell 2023.03.19

윈도우 레지스트리 등록 PowerShell 스크립트

# 키 등록 $itemPath = "키 경로" New-Item -Path $itemPath -Force # 문자열 값 등록 $name = "이름" $value = "값" New-ItemProperty -Path $itemPath -Name $name -Value $value -Force

Programming/PowerShell 2023.03.19

윈도우 서비스 동작 여부 확인 및 재구동 PowerShell 스크립트

윈도우 서비스 동작을 체크하여 중단된 경우 서비스 재시작을 수행하는 스크립트 (영문 Windows 기준으로 한글 Windows의 경우 "Running" 항목을 "실행 중"으로 변경이 필요함) $serviceName = "Service Name" if ((Get-Service -Name "$serviceName").Status -eq "Running") { Write-Host "$serviceName is running." } else { Write-Host "$serviceName is stopped. Restarting the service..." Restart-Service "$serviceName" } 해당 스크립트를 Schedule Task에 일정 주기마다 수행하도록 설정 (샘플 코드 상 등록 이..

Programming/PowerShell 2023.03.19
1
더보기
  • 전체보기 (60)
    • Notice (1)
    • Information Technology (21)
      • Automation (15)
      • OpenStack (5)
      • Etc (1)
    • Information Security (17)
      • Cryptology (4)
      • Digital Forensic (10)
      • Malware Analysis (3)
    • Programming (8)
      • Python & Django (2)
      • PowerShell (3)
      • Visual C++ & MFC (3)
    • Mobile (13)
      • VEGA No.6 (3)
      • VEGA IRON (10)

Tag

파워셸, 로또, 파이썬, bitcoin, 악성코드 분석, malware analysis, Block Chain, 윈도우 스크립트, 로또 번호 생성, Powershell, Bobax, 블록체인, windows, 동행복권, Python, 파워쉘, 윈도우 서비스 확인, 비트코인, Chef, 윈도우,

최근글과 인기글

  • 최근글
  • 인기글

Calendar

«   2025/06   »
일 월 화 수 목 금 토
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30

방문자수Total

  • Today :
  • Yesterday :
06-21 12:12

Copyright © hdhwang. All rights reserved.

  • Github

티스토리툴바