Grab our RSS feeds Follow us on Twitter Join our Facebook Group Connect with us on LinkedIn
myITforum.com, Powered by You.
you are not logged in

Articles

Newslinks

Links

Downloads

Site Services

Community Forums

Discussion Lists

Article Search

Newsletter

Web Blogs

FAQs

Live Support

myITforum TV

Take a Poll

Monthly Drawing

myITforum Network

User Group Directory

Our Partners

About Us

Register

Login

BRONZE PARTNER:

BRONZE PARTNER:



Industry News:




  Home : Articles : SMS 1.2 print | email | | Forums |   print | email | | Blogs |   print | email | | Wiki |   print | email | | FAQs |   print | email | Article Search  
Return all the Shares on a Local NT Workstation using a MIF File


Bookmark and Share

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

  myITforum.com ©2010 | Legal | Privacy