Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 03-30-2009, 09:15 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Searching on google for

computer management automate shared folders disconnect all sessions

The cached link for the second result

http://209.85.173.132/search?q=cache...=us&lr=lang_en

Suggests two possibilities.

VBScript (from a Run Script action):
Code:
Set objConnection = GetObject("WinNT://computername/LanmanServer")
Set colSessions = objConnection.Sessions

For Each objSession in colSessions
    colSessions.Remove(objSession.Name)
Next
or from a Run Program action:

net session \\computername /delete /y

http://www.ss64.com/nt/net_share.html
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 11:38 PM.


Copyright © 1999-2023 Kinook Software, Inc.