Microsoft Virtualization Discussions

Highlighted

How do I close idle sessions for specific user from specific address?

Simply, I'm looking for a PowerShell equivalent to the following CLI command:

vserver cifs session close -node * -vserver MYVSERVER -address 10.xx.yy.zz -windows-user mydomain\myuser

 

We're running CDoT 9.1.P14, but will be upgrading to 9.3.<something> in the next couple of months.

 

 

2 REPLIES 2
Highlighted

Re: How do I close idle sessions for specific user from specific address?

did you try close-nccifssession

Highlighted

Re: How do I close idle sessions for specific user from specific address?

I looked at it and while it looks good on face value b/c it looks like I "could" do the following:

 

Close-NcCifsSession -Node * -VserverContext MYVSERVER -Address 10.x.yy.zzz -WindowsUser mydomain\myuser

 

the cmdlet wants me to define the SessionID (since we're on CDoT 9.1), which makes this infinitely more complicated.  I want to clear all connections for a specific domain user. We don't care about the SessionID.

 

 

 

 

Check out the KB!
Knowledge Base
All Community Forums