Maximus5 / ConEmu

Customizable Windows terminal with tabs, splits, quake-style, hotkeys and more
https://conemu.github.io/
BSD 3-Clause "New" or "Revised" License
8.64k stars 580 forks source link

Run shell as different user via Smart card (not a password) #1725

Open ksverdlov opened 6 years ago

ksverdlov commented 6 years ago

Versions

ConEmu build: 180528 x64 OS version: Windows 10 1709 x64 Used shell version: powershell

Problem description

Need to run powershell as AD user userX, that has an attribute SmartcardLogonRequired: True, can not use password and does not have admin privs on a host. There is no Smartcard option in ConEmu, only password.

Actual results

I am able to run powershell with command like runas /smarcard /user:domain\userX "PowerShell", but powershell runs in a new window not attached as a ConEmu tab.

I am able to run powershell as userY, that has an attribute SmartcardLogonRequired: True, can not use password and HAS admin privs on a host. For that I check Run as administrator in Create new console window, press Start, UAC window appears and I can choose a smart card in it.

Expected results

There is Smarcard option in ConEmu Create new console window and there is a way to do the same via predefined tasks.

Maximus5 commented 6 years ago

Hm. I don't understand your problem. Have you tried to use -new_console:u:userY?

ksverdlov commented 6 years ago

No problems with UserY. But there is with UserX.

---------------------------
UserX
---------------------------
Invalid user name or password was specified!
LastError=0x8009033E
Вход в систему с помощью смарт-карты затребован и не использован.

---------------------------
ОК   
---------------------------
Maximus5 commented 6 years ago

I don't have smartcard to check this. Can you show step by step screenshots please?

ksverdlov commented 5 years ago

I don't have smartcard to check this. Can you show step by step screenshots please?

Screencast with explanations was sent by email.