Join Don Jones for an in-depth discussion in this video Use Compare-Object for change control, part of PowerShell 3.0 for Administrators.
- Let's look at a practical example of why…you might want to export something to…let's say, XML and then reimport it.…Let's start with a list of processes…that are running on this computer.…Get process.…And we will export that to a CLIXML file…and I'll call it PROCS dot XML.…Now this is a snapshot of the processes…that are running on this computer…at that exact moment.…Now, let's start up a few extra processes.…
Notepad.…Get a copy of calc running maybe.…Maybe, here's an oldie, but goodie.…Now a lot of machines in your environment…especially servers will have a known list of processes.…They should only be doing certain things all the time.…And any additional processes…that get brought into play…kinda represent a change control point.…You need to document that…or at least investigate why that process is running.…So here's what we're going to do.…
I'm going to ask PowerShell to compare…two sets of objects.…My reference set is going to be that stuff…that I saved off to disk just a second ago,…PROCS dot XML.…That's my base line.…
Author
Released
3/10/2012Skill Level Intermediate
Duration
Views
Related Courses
-
Learning Virtualization
with Martin Guidry2h 51m Beginner -
Windows 7: Networking and Security
with Steve Fullmer4h 44m Intermediate
-
1. Introduction to Windows PowerShell
-
Find PowerShell1m 10s
-
Customize PowerShell2m 29s
-
2. Run Commands in PowerShell
-
Run basic commands3m 32s
-
Use PSDrives4m 29s
-
3. The PowerShell Help System
-
Use the help system4m 32s
-
Find commands in help3m 28s
-
Use parameters to add values4m 17s
-
Use online help4m 9s
-
4. The PowerShell Pipeline
-
Import and export: CSV5m 10s
-
Import and export: XML4m 7s
-
Output to a file or printer6m 14s
-
Convert data to HTML3m 23s
-
5. Extend PowerShell
-
Find and add PSSnapins2m 43s
-
6. Objects: Data, by Another Name
-
Discover the object's output6m 44s
-
Sort objects2m 50s
-
7. Dig Deeper into the PowerShell Pipeline
-
Use pipeline input: ByValue5m 19s
-
8. PowerShell Formatting
-
Use the default formatting3m 50s
-
Format wide lists1m 16s
-
Format regular lists2m 13s
-
Format tables4m 11s
-
Learn to format last3m 55s
-
9. Comparisons and Filtering
-
10. PowerShell Remoting
-
Enable PowerShell remoting1m 57s
-
Use one-to-one remoting4m 11s
-
Use one-to-many remoting4m 12s
-
11. PowerShell Jobs
-
Start a job2m 28s
-
Manage job objects4m 54s
-
12. Windows Management Instrumentation
-
Explore WMI5m 2s
-
13. Work with Multiple Objects at Once
-
14. PowerShell Security
-
Understand trust2m 17s
-
15. PowerShell Variables
-
Use variables1m 46s
-
Name variables3m 44s
-
Use single and double quotes4m 37s
-
Use arrays1m 30s
-
Give variables a data type2m 48s
-
16. Input and Output
-
Prompt for user input1m 11s
-
Write output to the pipeline3m 42s
-
Write other messages1m 24s
-
17. Remoting Sessions
-
Create reusable sessions2m 38s
-
18. Turning Commands into Reusable Tools
-
Create a command4m 17s
-
Document a script3m 15s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Use Compare-Object for change control