42개의 명령어를 찾았습니다
사용법:
PS> Get-Process
Get-Process -Name chrome
Get-Process | Where-Object {$_.CPU -gt 10}사용법:
PS> Start-Process notepad
Start-Process -FilePath chrome.exe -ArgumentList 'www.google.com'사용법:
PS> Stop-Process -Name chrome
Stop-Process -Id 1234 -Force사용법:
PS> Get-Service
Get-Service -Name *sql*
Get-Service | Where-Object {$_.Status -eq 'Running'}사용법:
PS> Start-Service -Name MSSQLSERVER
Start-Service -InputObject (Get-Service -Name MSSQLSERVER)사용법:
PS> Stop-Service -Name MSSQLSERVER
Stop-Service -InputObject (Get-Service -Name MSSQLSERVER) -Force사용법:
PS> Get-EventLog -LogName System
Get-EventLog -LogName Application -Newest 10사용법:
PS> Get-WmiObject -Class Win32_OperatingSystem
Get-WmiObject -Class Win32_Process사용법:
PS> Get-NetAdapter
Get-NetAdapter | Where-Object {$_.Status -eq 'Up'}사용법:
PS> Get-NetIPAddress
Get-NetIPAddress -AddressFamily IPv4사용법:
PS> Get-NetRoute
Get-NetRoute -AddressFamily IPv4사용법:
PS> Get-DnsClientServerAddress
Get-DnsClientServerAddress -InterfaceIndex 12사용법:
PS> Get-NetFirewallRule
Get-NetFirewallRule -Enabled True사용법:
PS> New-NetFirewallRule -DisplayName 'Allow Port 80' -Direction Inbound -Protocol TCP -LocalPort 80 -Action Allow사용법:
PS> Get-ADUser -Filter *
Get-ADUser -Identity 'john.doe'사용법:
PS> Get-ADComputer -Filter *
Get-ADComputer -Identity 'SERVER01'사용법:
PS> Get-ADGroup -Filter *
Get-ADGroup -Identity 'Administrators'사용법:
PS> Get-ChildItem
Get-ChildItem -Path C:\ -Recurse -Filter *.txt사용법:
PS> Copy-Item -Path source.txt -Destination dest.txt
Copy-Item -Path C:\source -Destination D:\backup -Recurse사용법:
PS> Move-Item -Path source.txt -Destination dest.txt
Move-Item -Path C:\source -Destination D:\backup사용법:
PS> Remove-Item file.txt
Remove-Item -Path C:\temp -Recurse -Force사용법:
PS> New-Item -Path file.txt -ItemType File
New-Item -Path C:\temp -ItemType Directory사용법:
PS> Get-Content file.txt
Get-Content -Path file.txt -Tail 10사용법:
PS> Set-Content -Path file.txt -Value 'Hello, World!'
'Hello' | Set-Content file.txt사용법:
PS> Add-Content -Path file.txt -Value 'New line'
'New line' | Add-Content file.txt사용법:
PS> Get-Disk
Get-Disk -Number 0사용법:
PS> Get-Partition
Get-Partition -DiskNumber 0사용법:
PS> Get-Volume
Get-Volume -DriveLetter C사용법:
PS> Get-Printer
Get-Printer -Name 'HP LaserJet'사용법:
PS> Get-PrintJob
Get-PrintJob -PrinterName 'HP LaserJet'사용법:
PS> Get-ScheduledTask
Get-ScheduledTask -TaskName 'Backup'사용법:
PS> Register-ScheduledTask -TaskName 'Backup' -Action (New-ScheduledTaskAction -Execute 'backup.exe')사용법:
PS> Get-Process
Get-Process -Name chrome사용법:
PS> Get-Service
Get-Service -Name *sql*사용법:
PS> Get-EventLog -LogName System
Get-EventLog -LogName Application -Newest 10사용법:
PS> Get-WmiObject -Class Win32_OperatingSystem
Get-WmiObject -Class Win32_Process사용법:
PS> Get-NetAdapter
Get-NetAdapter | Where-Object {$_.Status -eq 'Up'}사용법:
PS> Get-NetIPAddress
Get-NetIPAddress -AddressFamily IPv4사용법:
PS> Get-NetRoute
Get-NetRoute -AddressFamily IPv4사용법:
PS> Get-DnsClientServerAddress
Get-DnsClientServerAddress -InterfaceIndex 12사용법:
PS> Get-NetFirewallRule
Get-NetFirewallRule -Enabled True사용법:
PS> New-NetFirewallRule -DisplayName 'Allow Port 80' -Direction Inbound -Protocol TCP -LocalPort 80 -Action Allow