重慶分公司,新征程啟航
為企業提供網站建設、域名注冊、服務器等服務
為企業提供網站建設、域名注冊、服務器等服務
查看類:
創新互聯自2013年起,先為南樂等服務建站,南樂等地企業,進行企業商務咨詢服務。為南樂企業網站制作PC+手機+微官網三網同步一站式服務解決您的所有建站問題。
查看powershell版本 $PSVersionTable
查看操作系統版本信息 Get-CimInstance -ClassName Win32_OperatingSystem -ComputerName . | Select-Object -Property Build*,OSType,ServicePack*
查看部分組策略 gpresult /Z
查看部分組策略(需要導出到文件) secedit /export /cfg c:\sec_result
查看服務 Get-Service
查看運行中服務 Get-Service | Where-Object {$_.Status -eq 'Running'}
查看IP ipconfig /all或者Get-NetipConfiguration
查看進程 Get-Process
查看已安裝補丁 Get-WmiObject -Class Win32_QuickFixEngineering或者wmic qfe list
查看使用Windows Installer安裝的程序 Get-WmiObject -Class Win32_Product | Format-Wide -Column 1
查看CPU相關信息 get-wmiobject win32_processor
查看CPU使用率2008/2012通用 Get-WmiObject win32_processor | select SystemName, LoadPercentage
查看CPU使用率排名前20 Get-Counter -ComputerName localhost '\Process(*)\% Processor Time' | Select-Object -ExpandProperty countersamples | Select-Object -Property instancename, cookedvalue| Sort-Object -Property cookedvalue -Descending| Select-Object -First 20| ft InstanceName,@{L='CPU';E={($_.Cookedvalue/100).toString('P')}} -AutoSize
查看系統版本/序列號 gwmi win32_OperatingSystem
查看總內存 Get-WmiObject win32_OperatingSystem TotalVisibleMemorySize
查看總內存(單位GB) gwmi Win32_PhysicalMemory | %{$sum = 0} { $sum += $_.Capacity } {Write-Host ($sum / 1GB) "GB"}
查看空閑內存 Get-WmiObject win32_OperatingSystem FreePhysicalMemory
查看磁盤總空間(單位MB) Get-WMIObject Win32_LogicalDisk |Where-Object{$_.Size}|Foreach-Object { 'Disk {0} has {1:0.0} MB totalspace' -f $_.Caption, ($_.Size / 1MB) }
查看防火墻狀態 netsh advfirewall show currentprofile
查看BIOS信息 Get-WMIObject -Class Win32_BIOS
查看主板信息 Get-WMIObject -Class Win32_Baseboard
查看邏輯磁盤信息 Get-WMIObject -Class Win32_LogicalDisk
查看物理磁盤信息 Get-WMIObject -Class Win32_DiskDrive
查看桌面設置(屏保是否設置) Get-CimInstance -ClassName Win32_Desktop
查看一個文件夾內的文件及目錄 Get-ChildItem -Path C:\ -Force
管理類:
重啟服務器 Restart-Computer 或者 Restart-Computer -Force強制重啟
關閉服務器 stop-computer
停止spooler服務 Stop-Service -Name spooler
啟動spooler服務 Start-Service -Name spooler
重啟spooler服務 Restart-Service -Name spooler
停止某個進程 stop-process -id 2792
鎖定服務器 rundll32.exe user32.dll,LockWorkStation
新增注冊表項 New-Item -Path hkcu:\software_DeleteMe
刪除注冊表項 Remove-Item -Path hkcu:\Software_DeleteMe