BRONZE PARTNER:
BRONZE PARTNER:
Industry News:

| |
 |
 |
 |
| Return all the Shares on a Local NT Workstation using a MIF File |
 |
|
|
By: Garth Jones
Posted On: 6/27/2002
As with the "List who is in the Local Administrator Group" SMSI script. This script will return all the shares on a workstation. This script is yet another good example of how to return static inforation to a SMS database.
This script could be modified to return the results more effctively in SMS 2.0, instead of creating a MIF file create a registry key with the information. Then use MOF to return the results. The end results would be cleaner and faster.
There are many ways in which this example could be modified to return just about anything that you want. Example: Find all PST Files sorted by last access date.
replace execute %commandcom% /c Net share > %temp%\%exportfile% with execute %commandcom% /c dir *.pst /S /O:D /T:W > %temp%\%exportfile%
Keep in mind, that the results will not dynamicly update, you will need to re-run the script if you want to update the results
|
 |
 |
 |
|
|