예제 #1
0
        public override void OnExecute(CommandLineApplication app)
        {
            var session = SmbSession.EnumerateInstances(Parent.ComputerName, Parent.GetNetworkCredential())
                          .Single(s => s.SessionId == SessionId);

            session.ForceClose();

            throw new NotImplementedException();
        }
예제 #2
0
        public override void OnExecute(CommandLineApplication app)
        {
            var sessions = SmbSession.EnumerateInstances(ComputerName, GetNetworkCredential());

            if (PrintAsList)
            {
                PrintCollection(sessions);
            }
            else
            {
                PrintTable(sessions);
            }
        }