Jump to content

teshko

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by teshko

  1. Thank you Adam, that was it. I am running 32 bit on 64 bit for compatibility. My keys were written to: HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftCryptographyCalaisSmartCards instead of HKEY_LOCAL_MACHINESOFTWAREMicrosoftCryptographyCalaisSmartCards For whatever it means (reg query ...): HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System EnableLUA REG_DWORD 0x1 ConsentPromptBehaviorAdmin REG_DWORD 0x5 FilterAdministratorToken REG_DWORD 0x0 For reference I fixed with similar to this: Local $sRegKey = "\SOFTWARE\Microsoft\Cryptography\Calais\SmartCards\SynchrotekID" If @OSArch = "X64" Then $sRegKey = "HKLM64" & $sRegKey Else $sRegKey = "HKLM" & $sRegKey EndIf RegWrite($sRegKey) RegWrite($sRegKey, "80000001", "REG_SZ", $InstallDir & "\opensc-minidriver.dll") RegWrite($sRegKey, "ATR", "REG_BINARY", Binary("0x3BF81800008031FE450073C8401000900091")) RegWrite($sRegKey, "ATRMask", "REG_BINARY", Binary("0xffffffffffffffffffffffffffffffffffff")) RegWrite($sRegKey, "Crypto Provider", "REG_SZ", "Microsoft Base Smart Card Crypto Provider") RegWrite($sRegKey, "Smart Card Key Storage Provider", "REG_SZ" ,"Microsoft Smart Card Key Storage Provider")
  2. Update: http://pastebin.com/AkdqB2cX I tested fixed script on Windows 7 SP1 32bit and it works fine. On Windows 8.1 registry is not modified. (I had a dumb typo when doing a FileOpen test)
  3. Hi, I started using autoit few days ago, and I love it. Unfortunately I believe I've run into the same issue on win 8.1 x64. My script won't modify/create Registry entries. Niether RegWrite nor Run(@ComSpec & ' /c regedit /s "' works. Also saving files (FileOpen/FileWrite) in protected directories doesn't work, though FileCreateShortcut and FileCopy works fine. Here's my script (work in progress): http://pastebin.com/3xvRb0zR I haven't tested it on windows 7 yet.
×
×
  • Create New...