In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
View the class:
View powershell version $PSVersionTable
Check the operating system version information Get-CimInstance-ClassName Win32_OperatingSystem-ComputerName. | | Select-Object-Property Build*,OSType,ServicePack* |
View some Group Policy gpresult / Z
View some group policies (need to export to a file) secedit / export / cfg c:\ sec_result
View Service Get-Service
View the running service Get-Service | Where-Object {$_ .Status-eq 'Running'}
Check IP ipconfig / all or Get-NetipConfiguration
View process Get-Process
Check the installed patch Get-WmiObject-Class Win32_QuickFixEngineering or wmic qfe list
View the programs installed using Windows Installer Get-WmiObject-Class Win32_Product | Format-Wide-Column 1
View CPU related information get-wmiobject win32_processor
View CPU usage 2008 Universe 2012 General Get-WmiObject win32_processor | select SystemName, LoadPercentage
Check out the top 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,@ {lossy CPUSTITY E = {($_ .Cookedvalue / 100) .toString ('P')}}-AutoSize
View system version / serial number gwmi win32_OperatingSystem
View total memory Get-WmiObject win32_OperatingSystem TotalVisibleMemorySize
View total memory (in GB) gwmi Win32_PhysicalMemory |% {$sum = 0} {$sum + = $_ .Capacity} {Write-Host ($sum / 1GB) "GB"}
View free memory Get-WmiObject win32_OperatingSystem FreePhysicalMemory
View total disk space (in MB) Get-WMIObject Win32_LogicalDisk | Where-Object {$_ .size} | Foreach-Object {'Disk {0} has {1regi0.0} MB totalspace'-f $_ .Caption, ($_ .Size / 1MB)}
View firewall status netsh advfirewall show currentprofile
View BIOS information Get-WMIObject-Class Win32_BIOS
View motherboard information Get-WMIObject-Class Win32_Baseboard
View logical disk information Get-WMIObject-Class Win32_LogicalDisk
View physical disk information Get-WMIObject-Class Win32_DiskDrive
Check desktop settings (whether the screensaver is set) Get-CimInstance-ClassName Win32_Desktop
View the files and directories in a folder Get-ChildItem-Path C:\-Force
Management class:
Restart server Restart-Computer or Restart-Computer-Force force restart
Shut down the server stop-computer
Stop the spooler service Stop-Service-Name spooler
Start the spooler service Start-Service-Name spooler
Restart the spooler service Restart-Service-Name spooler
Stop a process stop-process-id 2792
Lock server rundll32.exe user32.dll,LockWorkStation
Add new registry key New-Item-Path hkcu:\ software_DeleteMe
Delete the registry key Remove-Item-Path hkcu:\ Software_DeleteMe
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.