CATCHV Blog

Powershell 원격 로그인 정보 가져오기 본문

Dev/Powershell

Powershell 원격 로그인 정보 가져오기

catchv 2013. 3. 18. 12:21
반응형

Powershell 원격 로그인 정보 가져오기

$username='username'
$password = "password" | ConvertTo-SecureString -asPlainText -Force
$credential = New-Object System.Management.Automation.PSCredential($username,$password)

Get-WinEvent -ComputerName $Computername -LogName application -MaxEvents 10 -Credential $credential

반응형
Comments