Microsoft Virtualization Discussions

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

rhosysadmin

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

did you try close-nccifssession

rhosysadmin

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.

 

 

 

 

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public