RecordingMacro

Recording macro.

To start recording
[SALAD]
Start-Macro;
To end recording
[SALAD]
End-Macro;

ex) fetch Windows services and display a text file -> macro
[SALAD]
Start-Macro;
# recording started
$sl = Get-WmiObject -ComputerName $env:COMPUTERNAME -Namespace root\cimv2 -class win32_service;
$sl | Out-Text;
# end recording
End-Macro;
# check the function file out
explorer $SessionManager.GetValue("system.session.directory.macrounits");

Last edited Mar 2, 2013 at 1:52 PM by Tom__S, version 3

Comments

No comments yet.