This project is read-only.


Adding a function.

Find the directory the functions are:
Get the directory by inputting following line.

To see the folder with explorer directory, following line.
explorer $SessionManager.GetValue("");

Make a function file:
for example: function named Echo-Info

function global:Echo-Info()
    $ret = [string]::Empty;
    $ret += $env:username;
    $ret += " on ";
    $ret += $env:computername;

(this file is linked from this page.Echo-Info.ps1)

Reflect the function:
Place the file in SALADROOT.scripts.
To reflect visibility of the functions, input follows.(Reflect-Visibility)

And the users can input Echo-Info in SALAD to get the name and the computer next session.

Last edited Mar 2, 2013 at 1:59 PM by Tom__S, version 13


No comments yet.