Showing archive results for September 2014

Sep 20, 2014
Post comments count0
Post likes count0

PowerTip: Use PowerShell to Find Object Events

Doctor Scripto

Summary: Find events from objects by using Windows PowerShell.  How can I use Windows PowerShell to find what events are offered by a process?  Use Get-Process to retrieve an instance of the process, pipe the results to Get-Member,            and specify a MemberType Event: notepad Ge...

Sep 20, 2014
Post comments count0
Post likes count0

Weekend Scripter: Playing with PowerShell Processes and Events

Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, talks about playing with processes and events in Windows PowerShell. Microsoft Scripting Guy, Ed Wilson, is here. This morning I woke up and I had an idea. This happens to me sometimes. Not often. But occasionally. And here it was. I could not get it out of my mind... Can I use an event from a specific p...

Scripting Guy!Windows PowerShellscripting techniques
Sep 19, 2014
Post comments count0
Post likes count0

PowerTip: Display Message in 16 Colors

Doctor Scripto

Summary: Use Windows PowerShell to display a message in 16 colors.  How can I use Windows PowerShell to easily display a message in 16 different colors to start my presentation            with something a little different?  Use the range operator to create 16 numbers. Pipe the numbers to the Foreach-Obje...

Scripting Guy!Windows PowerShellPowerTip
Sep 19, 2014
Post comments count0
Post likes count0

Use PowerShell to Repeatedly Terminate Specific Processes

Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to terminate processes that start at random times.  Hey, Scripting Guy! I have a question that I hope you can answer. It seems that there are several processes that keep starting on my computer running Windows 8.1. That eat up lots of resources, and I cannot...

Scripting Guy!Windows PowerShellscripting techniques
Sep 18, 2014
Post comments count0
Post likes count0

PowerTip: Cause PowerShell to Wait for Specific Event

Doctor Scripto

Summary: Cause Windows PowerShell to wait for a specific event to be generated.  How can I make my Windows PowerShell console halt until an event that I registered by using the            Register-CimIndicationEvent cmdlet occurs?  Use the Wait-Event cmdlet and specifiy the source identifi...

Scripting Guy!Windows PowerShellPowerTip