Topic: You Require Permissions From TrustedInstaller  (Read 21769 times)

Re: You Require Permissions From TrustedInstaller
« Reply #20 on: February 07, 2014, 10:23:49 PM »

Prz42

  • Code Baker
  • Sr. Chef
  • ****
  • Date Registered: Jan 2014
  • Posts: 513
 :great: Hey Lancelot;
for %%x in (C D E F .....) do fltmc.exe attach AccessGainDriver %%x:>nul
where would I put this command line in win8.1SE build?

Re: You Require Permissions From TrustedInstaller
« Reply #21 on: February 07, 2014, 11:23:35 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Hey Mark,

download Access Gain from Gena,
 (or use Gena\Utils\Share Scripts -----> Share with Win8.1SE  )

above works out of box as default  :thumbsup:

Re: You Require Permissions From TrustedInstaller
« Reply #22 on: February 07, 2014, 11:30:18 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Hi Chris

on FAQ http://theoven.org/index.php?topic=834
I just added
Q: I don't have permission to access files ?

 :thumbsup:

:turtle:

Re: You Require Permissions From TrustedInstaller
« Reply #23 on: February 08, 2014, 03:15:42 AM »

Prz42

  • Code Baker
  • Sr. Chef
  • ****
  • Date Registered: Jan 2014
  • Posts: 513
 :w00t:Lancelot;
download Access Gain from Gena, (or use Gena\Utils\Share Scripts -----> Share with Win8.1SE  )

I hit the Download, put check mark by Gena.  I then went to Gena\Utils|Share Scripts and check only that box ( nothing else checked).  It downloaded the script but after going
into the program I didn't see anything new?  I then went back to same location and the Gena\Utils\Share Scripts was still there.  I thought that everything that is downloaded
didn't show up in the download area?  Is there something I missed?

Re: You Require Permissions From TrustedInstaller
« Reply #24 on: February 08, 2014, 06:59:59 AM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Hi Mark,

not that way  :wink:

Trick is:
You can download all projects around the oven side by side,
 than you can use "share xxx" way

With your above usage,
 If you Download Gena side by side with Win81SE
  you can use share way to gather all things from Gena to Win81SE easly.
   ex: when updated on Gena, after you get update it is also on Win81SE

If you don't have bandwidth problem,
 easiest way is to download all projects side by side (Gena + WinXX + YomiXX) hence when one plugin updated you get at all  :wink: :thumbsup:


Other way is manual way, download Access Gain from Gena manually or with download button and copy it into a Win81SE sub-folder.

 :thumbsup:

Re: You Require Permissions From TrustedInstaller
« Reply #25 on: February 09, 2014, 09:48:57 AM »

was_JFX

  • Code Baker
  • Grand Chef
  • *****
  • Date Registered: Dec 2010
  • Posts: 1074
For x64, we need to disable the driver signature. I tried with:
Code: [Select]
bcdedit /set loadoptions DDISABLE_INTEGRITY_CHECKS
bcdedit /set testsigning ON
The DD was an older trick that no longer works.
The problem is winload.exe, it scans for DISABLE_INTEGRITY_CHECKS string and replaces it with spaces.

So to get it work, the string in winload.exe needs to be changed to something else.
Than the PE Header checksum needs to be corrected wit PEChecksum.exe.

To get bootmgr accepts the invalid certificate of the new winload.exe this is needed.

Code: [Select]
bcdedit -store bcd /set {default} NoIntegrityChecks 1
And finally we can disable the checks

Code: [Select]
bcdedit -store bcd /set {default} loadoptions DISABLE_INTEGRITY_CHECKS

PS: there are two winload.exe one in system32 and one in system32\boot


psexec not distributable. ..
i remember jfx provided alternate tools elsewhere but i can not remember now (hard to find on mobile browse...)
i guess jfx or galapo already had done this with au3.
I think you mean Galapo's  Runlimited.au3 in Vmware script.
Maybe I can create a simple app that runs with system rights, just needs to check if it works in WinPE.
This PaExec is quite disappointing and only gives errors here.
« Last Edit: February 09, 2014, 09:54:35 AM by JFX »

Re: You Require Permissions From TrustedInstaller
« Reply #26 on: February 09, 2014, 08:15:41 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
I think you mean Galapo's  Runlimited.au3 in Vmware script.
:worship:
Maybe I can create a simple app that runs with system rights, just needs to check if it works in WinPE.
:clap: :clap: :clap:

:turtle:

Re: You Require Permissions From TrustedInstaller
« Reply #27 on: February 10, 2014, 03:52:19 AM »

anshad

  • Chef
  • ***
  • Date Registered: Apr 2012
  • Posts: 323
Hi

What about using Nircmd which is Redistributable ?.

For example ,

nircmd.exe elevatecmd runassystem X:\windows\regedit.exe

nircmd.exe elevatecmd runassystem X:\Programs\qdir\qdir.exe

Re: You Require Permissions From TrustedInstaller
« Reply #28 on: February 10, 2014, 01:21:47 PM »

was_JFX

  • Code Baker
  • Grand Chef
  • *****
  • Date Registered: Dec 2010
  • Posts: 1074
Your right anshad, nircmd does the job just fine and is redistributable :thumbsup:

Re: You Require Permissions From TrustedInstaller
« Reply #29 on: February 10, 2014, 02:11:53 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Thanks anshad  :smile: :smile:

only could not figure out how to start cmd.exe as SYSTEM with nircmd ?

ps: I tested these, which seems not working !!?? :
Code: [Select]
cmd.exe /c "nircmd.exe elevatecmd runassystem %systemroot%\cmd.exe"
Code: [Select]
Start "nircmd.exe elevatecmd runassystem %systemroot%\cmd.exe"
Code: [Select]
cmd.exe /K nircmd.exe elevatecmd runassystem %systemroot%\cmd.exe"

Re: You Require Permissions From TrustedInstaller
« Reply #30 on: February 10, 2014, 02:41:34 PM »

was_JFX

  • Code Baker
  • Grand Chef
  • *****
  • Date Registered: Dec 2010
  • Posts: 1074
Should work, maybe you use an older version or NT5 system?

EDIT: Seems it doesn't like the %systemroot%
« Last Edit: February 10, 2014, 02:42:49 PM by JFX »

Re: You Require Permissions From TrustedInstaller
« Reply #31 on: February 10, 2014, 04:20:08 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
I figured out

nircmd.exe elevatecmd runassystem %systemroot%\System32\cmd.exe

works  :thumbsup:

ps: "Administrator" title stays at top, besides it is system when checked from taskmanager or procexp


edit:
it seems cmd.exe under windows do not want to start that way ;) , both does not work:
nircmd.exe elevatecmd runassystem %systemroot%\cmd.exe
nircmd.exe elevatecmd runassystem C:\Windows\cmd.exe

hehe, there is no cmd.exe under windows  :embarrassed:

ps: I use Win81x64 for a while now  :thumbsup:

Well all solved  :smile:

:turtle:
« Last Edit: February 11, 2014, 08:31:03 AM by Lancelot »

Re: You Require Permissions From TrustedInstaller
« Reply #32 on: February 11, 2014, 10:05:45 AM »

ChrisR

  • XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
Thanks Anshad for reminding the very good NirCmd  :thumbsup:

For DISABLE_INTEGRITY_CHECKS, I tried this morning but without success, maybe I missed something.
I guess that it is the same for winload.efi. here is my code box.
Code: [Select]
[Process]
If,%SourceArch%,Equal,x64,Begin
  ShellExecute,Hide,%Tools%\gsar.exe,"-o -s:x44:x49:x53:x41:x42:x4C:x45:x5F:x49:x4E:x54:x45:x47:x52:x49:x54:x59:x5F:x43:x48:x45:x43:x4B:x53 -r:x58:x49:x53:x41:x42:x4C:x45:x5F:x49:x4E:x54:x45:x47:x52:x49:x54:x59:x5F:x43:x48:x45:x43:x4B:x53 #$q%Target_Sys%\winload.exe#$q"
  ShellExecute,Hide,%Tools%\PEChecksum.exe,"#$q%Target_Sys%\winload.exe#$q"
  If,Not,%ExitCode%,Equal,0,Echo,"updates the checksum failed, exit code : %ExitCode%"
  Filecopy,%Target_Sys%\winload.exe,%Target_Sys%\Boot\winload.exe,NoWarn
End
//-
If,Not,ExistFile,%Tools%\%SourceArch%\bcdedit.exe,FileCopy,%InstallSRC%\Windows\System32\bcdedit.exe,%Tools%\%SourceArch%
Set,%BcdEditExe%,%Tools%\%OSArch%\bcdedit.exe
If,Not,ExistFile,%BcdEditExe%,Set,%BcdEditExe%,%Tools%\x86\bcdedit.exe
//-
If,%SourceArch%,Equal,x64,Begin
  ShellExecute,Hide,%BcdEditExe%,"/store #$q%TargetDir%\Boot\bcd#$q /set {default} NoIntegrityChecks 1",%Tools%\%OSArch%\
  ShellExecute,Hide,%BcdEditExe%,"/store #$q%TargetDir%\Boot\bcd#$q /set {default} loadoptions DISABLE_INTEGRITY_CHECKS",%Tools%\%OSArch%\
End


With x86 AccessGain, perhaps Take OwnerShip in addition for x64, and with NirCmd Run As System, it seems to me that we have the tools to answer the question  :thumbsup:

Re: You Require Permissions From TrustedInstaller
« Reply #33 on: February 11, 2014, 10:16:54 AM »

was_JFX

  • Code Baker
  • Grand Chef
  • *****
  • Date Registered: Dec 2010
  • Posts: 1074
The string to replace should be unicode not ascii.
Well im not so sure about winload.efi, it properly don't work with secure boot.

Re: You Require Permissions From TrustedInstaller
« Reply #34 on: February 11, 2014, 11:45:25 AM »

ChrisR

  • XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
Thanks  :thumbsup:
I do not know if gsar in Tools folder can do it. Do you have a small program or tool to do it or I have to use au3 with StringToBinary("string",2), StringReplace.

Re: You Require Permissions From TrustedInstaller
« Reply #35 on: February 11, 2014, 01:41:28 PM »

was_JFX

  • Code Baker
  • Grand Chef
  • *****
  • Date Registered: Dec 2010
  • Posts: 1074
Hmm, a tool to replace unicode strings would be much better, but gsar.exe can do it:

Code: [Select]
gsar.exe -o -s:x44:x00:x49:x00:x53:x00:x41:x00:x42:x00:x4C:x00:x45:x00:x5F:x00:x49:x00:x4E:x00:x54:x00:x45:x00:x47:x00:x52:x00:x49:x00:x54:x00:x59:x00:x5F:x00:x43:x00:x48:x00:x45:x00:x43:x00:x4B:x00:x53:x00 -r:x58:x00:x49:x00:x53:x00:x41:x00:x42:x00:x4C:x00:x45:x00:x5F:x00:x49:x00:x4E:x00:x54:x00:x45:x00:x47:x00:x52:x00:x49:x00:x54:x00:x59:x00:x5F:x00:x43:x00:x48:x00:x45:x00:x43:x00:x4B:x00:x53:x00 winload.exe

But actually I don't like AccessGain, people should lern to understand how to deal with user rights instead of bypassing them.
« Last Edit: February 11, 2014, 01:43:00 PM by JFX »

Re: You Require Permissions From TrustedInstaller
« Reply #36 on: February 11, 2014, 05:11:47 PM »

ChrisR

  • XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
It works wonderfully  :great:  awesome :thumbsup: :thumbsup:

AccessGain works after, but as you say, it is less well for learning how to manage user rights.

Re: You Require Permissions From TrustedInstaller
« Reply #37 on: February 13, 2014, 04:15:11 PM »

ChrisR

  • XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
The patch to bypass the driver signature for Win8.x is written now :thumbsup:
AccessGain works perfectly now on NT6 64-bits. It remains good to know how to get around these problems rights, manually.

I also wrote a script to add "Run as System" in context menu, for exe files. It uses the great NirCmd :thumbsup:

Thank you All  :great:

Re: You Require Permissions From TrustedInstaller
« Reply #38 on: February 13, 2014, 04:52:29 PM »

Atari800xl

  • Code Baker
  • Sr. Chef
  • ****
  • Date Registered: Feb 2013
  • Posts: 827
And thank YOU! ChrisR! Amazing piece of work, once again...
So if I understand correctly, this driversignature patch allows us to "mess with" (usually: delete, probably) any file on a host HD from within PE? (through AccessGain).
Everybody keeps mentioning running QDir as System, is this a special case, or does it work equally well with other programs? (I use TCCLE and XYPlorer in PE). I don't come across the "You Require Permissions..." problem that often, but of course it will come up when you least expect it... (Murphy...)

Re: You Require Permissions From TrustedInstaller
« Reply #39 on: February 13, 2014, 05:45:58 PM »

ChrisR

  • XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
Yep, a pleasure this work in common  :thumbsup:

I had not seen and not pay attention, before, to this problem of rights on the host system.
This concern does not exist on the other PE that use the system account.

Pending Murphy, "Anything that can go well, will go well"  :wink:, there are now several solution, if needed:
The first, Take Ownership and grant full access to files or folders manually, if needed.
Use AccesGain driver to bypass files sytem security. For x64, the driver is loaded thanks to JFX's patch.
Use Run As Sytem context menu entry to load another file explorer, QDIR, Explorer++, XYPlorer, ... with all rights from the system account. 

Run As system may be useful for other applications, eg: regedit to have the full rights on the registry, or other apps if needed.

 

Powered by EzPortal