New Win32 Samples in Windows SDK for Windows 7: Systems Management


This is the fourth in a series of posts that describe new and updated samples in the Windows 7 SDK. The following table lists systems management and scheduling samples, including Task Scheduler, Windows PowerShell, and Windows Remote Management (WinRM).


 


See also:


New Win32 Samples in Windows SDK for Windows 7: Networking and Related Services


New Win32 Samples in Windows SDK for Windows 7: Multimedia


New Win32 Samples in Windows SDK for Windows 7: Security


New Win32 Samples in Windows SDK for Windows 7: Systems Management


New Win32 Samples in Windows SDK for Windows 7: Open Packaging Conventions (OPC)


New Win32 Samples in Windows SDK for Windows 7: Tablet PC and MultiTouch


New Win32 Samples in Windows SDK for Windows 7: Web


New Win32 Samples in Windows SDK for Windows 7: Windows Base


New Win32 Samples in Windows SDK for Windows 7: Windows User Interface


New Win32 Samples in Windows SDK for Windows 7: Windows XML Paper Specification (XPS)


New Win32 Samples in Windows SDK for Windows 7: Communication



Over 1,200 samples were changed since the release of the Windows SDK for Windows 7 RC release. Many “new to Win 7” samples were added, simplified, or extended, and many older samples were updated to support Windows 7 as well as older operating systems.


 


For build instructions and additional information about the samples, see the Readme.txt files and other documents in the SDK sample folders. For general sample building instructions, refer to the Samples Reference page that installs with the Windows SDK, and the SDK Release Notes (under the Start menu, in All Programs > Microsoft Windows SDK v7.0). By default, Win32 samples are installed under the following path: C:\Program Files\Microsoft SDKs\Windows\v7.0\Samples.


 


Send your thoughts to the Windows SDK Feedback alias.  Tell us how you use the SDK and what we can do to improve your development experience.


 


New/updated Systems Management samples in the Windows SDK for Windows 7




























































































































































Sample


Description


Location (under Samples)


Sending email on event


Demonstrates constructing a task that sends an email when an event occurs.


SysMgmt\TaskSched\emailOnEvent


Execute Task on System Startup Sample


Demonstrates how to create a task running an executable on system startup.


SysMgmt\TaskSched\ExeOnBoot


Execute Task on Logon Sample


Demonstrates how to create a task running an executable when a user logs on.


SysMgmt\TaskSched\ExeOnLogon


Execute Task on Registration Sample


Demonstrates how to create a task running an executable immediately upon registration.


SysMgmt\TaskSched\ExeOnRegistration


Enumerate Registered Tasks Sample


Demonstrates how to enumerate the scheduled tasks registered on the computer in the root task folder.


SysMgmt\TaskSched\RegisteredTaskEnum


Basic PowerShell provider


Demonstrates a Basic provider


SysMgmt\WindowsPowerShell\CSharp\AccessDBProviderSample01


Provider which creates PowerShell Drives


Demonstrates a Provider which creates PowerShell Drives


SysMgmt\WindowsPowerShell\CSharp\AccessDBProviderSample02


Provider which creates PowerShell Drives and manipulates items


Demonstrates a Provider which creates PowerShell Drives and manipulates items


SysMgmt\WindowsPowerShell\CSharp\AccessDBProviderSample03


Provider with container based manipulation of items


Demonstrates a Provider with container based manipulation of items


SysMgmt\WindowsPowerShell\CSharp\AccessDBProviderSample04


Provider with support for levels of navigation


Demonstrates a Provider with support for levels of navigation


SysMgmt\WindowsPowerShell\CSharp\AccessDBProviderSample05


Provider with support for content access


Demonstrates a Provider with support for content access


SysMgmt\WindowsPowerShell\CSharp\AccessDBProviderSample06


Naming and Declaring a Cmdlet


Basic Cmdlet which is used to display a list of available processes.


SysMgmt\WindowsPowerShell\CSharp\GetProcessSample01


Parameter Declaration and Validation


Demonstrates Parameter Declaration and Validation


SysMgmt\WindowsPowerShell\CSharp\GetProcessSample02


Taking Input from Pipeline


Demonstrates Taking Input from Pipeline


SysMgmt\WindowsPowerShell\CSharp\GetProcessSample03


Error Handling


Demonstrates Error Handling


SysMgmt\WindowsPowerShell\CSharp\GetProcessSample04


A completely conforming and reasonably complete get cmdlet.


Demonstrates a completely conforming and reasonably complete get cmdlet.


SysMgmt\WindowsPowerShell\CSharp\GetProcessSample05


Basic host implementation


Demonstrates creating a host interface class, mapping exit status, creating a runspace using host implementation, creating and running a script and verify if script returned correct value and the exit process operated correctly


SysMgmt\WindowsPowerShell\CSharp\Host01


Host Interface and Host Raw User Interface


Demonstrates creating a host interface class, a host user interface and a host raw user interface class, creating a runspace using host implementation, setting host culture, creating and running a script and verify if script returned correct value and the exit process operated correctly


SysMgmt\WindowsPowerShell\CSharp\Host02


Completely interactive console based host


Demonstrates a Completely interactive console based host


SysMgmt\WindowsPowerShell\CSharp\Host03


Run a command in the default runspace


Demonstrates how to run a command in the default runspace


SysMgmt\WindowsPowerShell\CSharp\Runspace01


Run scripts in default runspace and show results in WinForm


Demonstrates how to Run scripts in default runspace and show results in WinForm


SysMgmt\WindowsPowerShell\CSharp\Runspace02


Run scripts in default runspace handling input and errors


Demonstrates how to Run scripts in default runspace handling input and errors


SysMgmt\WindowsPowerShell\CSharp\Runspace03


Run scripts in default runspace handling input and exceptions


Demonstrates how to Run scripts in default runspace handling input and exceptions


SysMgmt\WindowsPowerShell\CSharp\Runspace04


Using specific consolefiles to invoke commands


Demonstrates how to use specific consolefiles to invoke commands


SysMgmt\WindowsPowerShell\CSharp\Runspace05


Adding snap-in to a Runspace configuration and using it to invoke commands


Demonstrates adding snap-in to a Runspace configuration and using it to invoke commands


SysMgmt\WindowsPowerShell\CSharp\Runspace06


Adding Command and Scripts directly to Pipeline


Demonstrates adding Command and Scripts directly to Pipeline


SysMgmt\WindowsPowerShell\CSharp\Runspace07


Adding parameters to commands in Pipeline


Demonstrates adding parameters to commands in Pipeline


SysMgmt\WindowsPowerShell\CSharp\Runspace08


Asynchronous Invocation of Commands from Pipeline


Demonstrates Asynchronous Invocation of Commands from Pipeline


SysMgmt\WindowsPowerShell\CSharp\Runspace09


Add specific Cmdlet to RunspaceConfiguration and use modified configuration for invoking Cmdlets


Demonstrates Adding specific Cmdlet to RunspaceConfiguration and use modified configuration for invoking Cmdlets


SysMgmt\WindowsPowerShell\CSharp\Runspace10


Creating Advanced Cmdlets


Demonstrates Creating Advanced Cmdlets


SysMgmt\WindowsPowerShell\CSharp\SelectObject


Cmdlet that uses InputObject, ParameterSets, PSCmdlet derivation


Demonstrates Cmdlet that uses InputObject, ParameterSets, PSCmdlet derivation


SysMgmt\WindowsPowerShell\CSharp\SelectString


ShouldProcess, ShouldContinue, Force and PassThru support


Demonstrates ShouldProcess, ShouldContinue, Force and PassThru support


SysMgmt\WindowsPowerShell\CSharp\StopProcessSample01


User Notifications


Demonstrates User Notifications (WriteWarning, WriteVerbose, WriteDebug)


SysMgmt\WindowsPowerShell\CSharp\StopProcessSample02


Aliases, Wildcards and Help messages


Demonstrates Aliases, Wildcards and HelpMessage


sysmgmt\WindowsPowerShell\CSharp\StopProcessSample03


Web Services for Management (WSMan) Shell client API sample


Demonstrates how to use WinRM public shell client API


SysMgmt\WinRM\ShellClientAPI


Web Services for Management (WSMan) Authorization Plugin API sample


Demonstrates how to use WinRM Authorization plugin public API


SysMgmt\WinRM\WSManAuthzPlugin


Web Services for Management (WSMan) Shell Plugin API sample


Demonstrates how to use WinRM shell plugin public API


SysMgmt\WinRM\WSManShellPlugin


 


Karin Meier-Magruder


Program Manager for Samples


Windows SDK Team


 

Comments (0)