mspsug-meeting-031213.txt



Similar documents
Troubleshoot Using Event Log Mining

Lab Sample Solutions. Chapter 3

Windows Server 2008 R2: Server Management and PowerShell V2

POWERSHELL (& SHAREPOINT) This ain t your momma s command line!

Microsoft. Jump Start. M3: Managing Windows Server 2012 by Using Windows PowerShell 3.0

A layman s guide to PowerShell 2.0 remoting. Ravikanth Chaganti

WolfTech Active Directory: PowerShell

John McLeod & Mike Pilkington

Exploring PowerShell. Using Windows PowerShell

Acknowledgments Finding Your Way Around Windows PowerShell p. 1 Getting Started with Windows PowerShell p. 3 Installing Windows PowerShell p.

# Demo: jak to działa?

Lab Answer Key for Module 1: Installing and Configuring Windows Server Table of Contents Lab 1: Configuring Windows Server

Windows PowerShell Fundamentals

PowerShell for Exchange Admins

Jeffrey Snover Distinguished Engineer & Lead Architect Jason Helmick Senior Technologist, Concentrated Technology

DOAG 2011 DP Tricks-1

Lync Server Patching Guide

SUNGARD SUMMIT 2007 sungardsummit.com 1. Microsoft PowerShell. Presented by: Jeff Modzel. March 22, 2007 Course ID 453. A Community of Learning

Introduction to PowerShell by Guy Thomas

Windows PowerShell. 3.0 Step by Step. Ed Wilson

>

Intro... i. Building Readable Text Log Files...1. Slicing and Dicing Log Files PowerShell logging in the Windows Event log...

The Windows PowerShell Owner s Manual: Version 2.0. Jean Ross and Greg Stemp Microsoft Communications Server UA

User Manual. Crystal Report Integration

Windows PowerShell Networking Guide

Forefront Management Shell PowerShell Management of Forefront Server Products

Clouds. Windows Server 2012 Release Candidate. Server Management

Entity/Relationship Modelling. Database Systems Lecture 4 Natasha Alechina

EVENT LOG MANAGEMENT...

Is my site ready for upgrade to v7.6?

PowerShell for Dummies

Windows PowerShell 2.0

NOTE NOTE 2008 R If either or both partitions are not listed, type dnscmd /enlistdirectorypartition

Configuring and Integrating PowerShell

Statistical Reporting Tool. Installation & Use Guide

Server Manageability and Automation

Automated Windows Event Log Forensics

Integrating Dell server hardware alerts into SBS 2008 report. By Perumal Raja Dell Enterprise Product Group

Active Directory Deployment and Management Enhancements

WHITE PAPER POWERSHELL FOR DUMMIES HOW TO KEEP TRACK OF

ICT dag 03/12 Managing Systems with PowerShell. Bart Portier docent TW KHK Geel Microsoft Certified Trainer

Module 9 Ad Hoc Queries

Log Processing Tools. PS Tools Suite. PSTools Suite. PSTools Suite

Windows Server 2012 R2. Server Management and Automation

Unidesk 3.0 Script to Increase UEP Size for Persistent Desktops

Certificate of Compliance

Sales Person Commission

POWERSHELL FOR NEWBIES Getting started with PowerShell 4.0. Jeffery Hicks

Release Bulletin Sybase ETL Small Business Edition 4.2

SonicWALL CDP 5.0 Microsoft Exchange InfoStore Backup and Restore

Loan Payment Protection

5nine Security Manager for Hyper-V Standard edition

Importing of Clients, Contacts & Leads

SmartLock Pro Plus Audit View OPERATOR GUIDE

5nine Virtual Firewall 2.0 (v-firewall, Beta)

CPM release notes

M4 Systems. Batch & Document Management (BDM) Brochure

Overview Configuration Data/Files

ESET NOD32 Antivirus for IBM Lotus Domino. Installation

computer name, domain name, PDC emulator name,... always target the members directly override monitor Enabled/Disabled for a group

Virtualization Hyper-V host scale and scale-up workload support

MCP Guru Series DMSII & dbatools. Kung Lin Unisys Corporation Jim Stewart Stewart Data Tech. Ltd.

Tools & Techniques for Remote Help Desk Support

Microsoft IT Camp Hands-On Lab

Buffalo Technology: Migrating your data to Windows Storage Server 2012 R2

JOINUS AG. PowerPay Checkout. Magento Module User Manual. Support:

Monitoring Agent for PostgreSQL Fix Pack 10. Reference IBM

Question: Hi Everyone! Thank you TEACHERS, MICROSOFT, MVA and Event Support Team for this lesson! Answer: Great to see you POPA DAN!

Microinvest Warehouse Pro Light Restaurant is designed to work in tandem with Microinvest Warehouse Pro which provides all back office functions.

The full setup includes the server itself, the server control panel, Firebird Database Server, and three sample applications with source code.

DATABASE DESIGN. - Developing database and information systems is performed using a development lifecycle, which consists of a series of steps.

Installing the ASP.NET VETtrak APIs onto IIS 5 or 6

etrust Audit irecorder Reference Guide for Microsoft NT Event Log 1.5 SP2

5/13/2009. Dejan Foro Speaker

Learn Windows PowerShell in a Month of Lunches

Performance Troubleshooting Guide for Microsoft Business Solutions Navision

Data Flow Diagrams. Outline. Some Rules for External Entities 1/25/2010. Mechanics

Report Builder Easily create exportable reports

Using Ad-Hoc Reporting

Stored Documents and the FileCabinet

TUTORIAL: Reporting Gold-Vision 6

How to Setup SQL Server Replication

REST API Getting Started Guide

PAN-OS Syslog Integration

Quick Start Guide. Microinvest Warehouse Pro Light Restaurant

A database is a collection of data organised in a manner that allows access, retrieval, and use of that data.

Quick Tutorial for Portable Batch System (PBS)

The GRID according to Microsoft

Optimizing object definitions functions

BackupAgent LabTech Integration Installation and Usage

Unity Application Suite SQL Server Database Integration

ECDL / ICDL Project Planning Syllabus Version 1.0

Acronis Backup & Recovery 10 Server for Linux. Update 5. Installation Guide

Global Search v.2.8 for Microsoft Dynamics CRM 4.0

LAB 3: Introduction to Domain Modeling and Class Diagram

Download Path for 7 Zip : ( Username & Password to download = sqlutility ) **Make sure install the right one or else you can t find 7 Zip to Extract.

Windows Server 2012 R2 Storage Infrastructure

Peeking into Windows to Improve your SAS Performance

Patch Management Hands-On Exercises. Patch Management Hands-on Exercise

Using SQL Reporting Services with Amicus

Transcription:

mspsug-meeting-031213.txt Id CommandLine -- ----------- 1 cd\ 2 cls 3 Get-Command -verb get -noun *event* 4 cls 5 Get-Command -verb get -noun *event* 6 help Get-EventLog 7 Get-EventLog -List 8 help Get-EventLog -Parameter computername 9 help Get-EventLog -ShowWindow 10 cls 11 Get-EventLog -LogName System -Newest 1 12 Get-EventLog -LogName System -Newest 1 Get-Member 13 Get-EventLog -LogName System -Newest 1 Get-Member -MemberType Property 14 Get-EventLog -LogName System -Newest 1 Get-Member -MemberType Properties 15 Get-EventLog -LogName System -Newest 1 Format-List * 16 Get-EventLog -LogName System -Newest 1 17 Get-EventLog -LogName System -Newest 1 select time 18 Get-EventLog -LogName System -Newest 1 select TimeGenerated 19 Get-EventLog -LogName System -Newest 1 select TimeGenerated, EntryTyp 20 Get-EventLog -LogName System -EntryType Error -Newest 1 select Page 1

mspsug-meeting-031213.txt TimeGe 21 Get-EventLog -LogName System -EntryType Error -Newest 1 select TimeGe 22 cls 23 Get-EventLog -LogName System -Newest 1 24 Start-Job {Get-EventLog -ComputerName sql02, web02 -LogName System -New 25 Get-Job 26 Invoke-Command -ComputerName dc02, sql02, web02 {Get-NetFirewallRule -D 27 Invoke-Command -ComputerName dc02, sql02, web02 {Get-NetFirewallRule -D 28 get-job 29 get-job Receive-Job -Keep 30 get-job Remove-Job 31 get-job 32 $error[0] 33 $error 34 gcm Get-NetFirewallRule 35 Get-Command -Module NetSecurity 36 Get-Command Get-NetFirewallRule fl * 37 cls 38 Get-Command Get-NetFirewallRule select Definition 39 Get-Command Get-NetFirewallRule select -expand Definition 40 (Get-Command Get-NetFirewallRule).Definition 41 (Get-Command Get-NetFirewallRule) gm -MemberType Property 42 Start-Job {Get-EventLog -ComputerName sql02, web02 -LogName System Page 2

-New 43 Get-Job mspsug-meeting-031213.txt 44 Get-Job Receive-Job -Keep 45 Get-Job 46 $a = Get-Job Receive-Job 47 Get-Job 48 Get-Job Receive-Job 49 Get-Job Receive-Job -AutoRemoveJob 50 Get-Job Receive-Job -AutoRemoveJob -Wait 51 $a 52 $a Format-List * 53 $a Get-Member 54 cls 55 Get-EventLog -LogName System -Message '*join*domain*failed*' 56 Get-EventLog -LogName System -InstanceId 4097 57 Get-EventLog -LogName System -Index 639 58 Get-EventLog -LogName System Group-Object Message select -First 10 59 Get-EventLog -LogName System Group-Object Message -NoElement select 60 Get-EventLog -LogName System Group-Object Message -NoElement select 61 Get-EventLog -LogName System Group-Object Message -NoElement sort - 62 cls 63 help Get-WinEvent 64 Get-WinEvent -ListLog * Page 3

65 (Get-WinEvent -ListLog *).count mspsug-meeting-031213.txt 66 Get-WinEvent -ListLog where recordcount 67 Get-WinEvent -ListLog * where recordcount 68 Get-WinEvent -ListLog * where recordcount -gt 10 69 Get-WinEvent -ListLog * where recordcount -gt 100 70 Show-EventLog 71 cls 72 $xml = @' 73 cls 74 $xml 75 Get-WinEvent -FilterXml $xml 76 Get-WinEvent -FilterXPath "*[System[(Level=2) and (EventID=4097) and Ti 77 Get-WinEvent -LogName system -FilterXPath "*[System[(Level=2) and (Eve 78 Get-WinEvent -LogName system -FilterXPath "*[System[(Level=2) and (Eve 79 Get-WinEvent -LogName system -FilterXPath "*[System[EventID=4097 and T 80 Get-WinEvent -LogName system -FilterXPath "*[system[eventid=4097 and T 81 Get-WinEvent -LogName system -FilterXPath "*[System[EventID=4097 and T 82 Get-WinEvent -LogName system -FilterXPath "*[System[EventID=4097]]" 83 Get-WinEvent -LogName system -FilterXPath "*[System[EventID=4097]]" 84 Get-WinEvent -LogName system -FilterXPath "*[System[EventID=4097]]" 85 Stop-Service bits gm 86 Stop-Service bits Page 4

87 Stop-Service bits -PassThru gm 88 cls mspsug-meeting-031213.txt 89 Get-WinEvent -FilterHashtable @{LogName='System';ID=4097} 90 Get-WinEvent -FilterHashtable @{LogName='System';ID=4097;StartTime=(Get 91 help Get-WinEvent 92 Get-WinEvent -ListProvider 'Microsoft-Windows-Kernel-General' 93 Get-WinEvent -ProviderName 'Microsoft-Windows-PowerShell' -MaxEvents 1 94 Get-WinEvent -ProviderName 'Microsoft-Windows-PowerShell' -MaxEvents 1 95 Get-WinEvent -ProviderName 'Microsoft-Windows-PowerShell' -MaxEvents 1 96 Get-WmiObject -Class Win32_ntlog* -List 97 Get-WmiObject -Class Win32_ntlogevent -filter {Logfile='System' and Eve 98 Get-WmiObject -Class Win32_nteventlogfile -filter {Logfile='System'} 99 Get-WmiObject -Class Win32_nteventlog* -List 100 Get-WmiObject -Class Win32_nteventlogfile 101 Get-WmiObject -Class Win32_nteventlogfile {LogFileName='System'} 102 Get-WmiObject -Class Win32_nteventlogfile -Filter {LogFileName='System'} 103 Get-WmiObject -Class Win32_nteventlogfile -Filter {LogFileName='System' 104 (Get-WmiObject -Class Win32_nteventlogfile -Filter {LogFileName='System 105 (Get-WmiObject -Class Win32_nteventlogfile -Filter {LogFileName='System 106 Get-WinEvent -Path C:\tmp\systemlog.evtx -FilterXPath "*[System[EventID 107 cls 108 help Get-History Page 5

mspsug-meeting-031213.txt 109 Get-WmiObject -Class Win32_ntlog* -List 110 Get-CimInstance -ClassName win32_nteventlogfile 111 Get-CimInstance -ClassName win32_nteventlogfile -Filter {LogFileName='S 112 Get-CimInstance -ClassName win32_nteventlogfile -Filter "LogFileName='S 113 cls 114 [System.Diagnostics.EventLog]::GetEventLogs() 115 [System.Diagnostics.EventLog]::GetEventLogs('dc01') 116 [System.Diagnostics.EventLog]::GetEventLogs()[5] 117 [System.Diagnostics.EventLog]::GetEventLogs()[5].Entries where eventi 118 [System.Diagnostics.EventLog]::Exists("System") 119 [System.Diagnostics.EventLog]::Exists("12345") 120 [System.Diagnostics.EventLog]::LogNameFromSourceName("Microsoft-Windows 121 [System.Diagnostics.EventLog]::LogNameFromSourceName("Microsoft-Windows 122 Get-WinEvent -ListProvider 'Microsoft-Windows-Kernal-General' 123 Get-WinEvent -ListProvider 'Microsoft-Windows-Kernel-General' 124 help about_eventlogs 125 help about 126 'Chad,Josh,Michael,Robert' -split ',' Get-Random -Count 2 127 write-host "Michael & Josh send contact info to mspsug@gmail.com" Page 6