Microsoft Virtualization Discussions

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

rhosysadmin
1,846 Views

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

JGPSHNTAP
1,829 Views

did you try close-nccifssession

rhosysadmin
1,790 Views

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.

 

 

 

 

Public