I ran a patch installation script against 9 target machines under
those conditions. Four of them reported success. The others all said
they couldn't establish the local working directory because "access denied".
--
You received this message because you are subscribed to the Google Groups "ntsysadmin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ntsysadmin+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ntsysadmin/64512d86.050a0220.47003.13c0SMTPIN_ADDED_MISSING%40gmr-mx.google.com.
- I ran a patch installation script against 9 target machines under
- those conditions. Four of them reported success. The others all said
- they couldn't establish the local working directory because "access denied".
Have you checked perms relating to the "working directory" ?
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\system\FilterAdministratorTokenAll of my test-only workstations do NOT have that DWORD at all, and they all worked when running the command as local admin. So "If the DWORD does not exist, then you must create it" is not accurate. That's why I initially rejected this as a solution in my original post.
>¯\_(ツ)_/¯
To view this discussion on the web visit https://groups.google.com/d/msgid/ntsysadmin/024901d97dd3%244c5bb3f0%24e5131bd0%24%40gmail.com .
That reg key change just turned off UAC for the built in administrator account. I would not do that.
Create a new standard user domain account, add it to the local admin group on all the machines via GPO. Make it an very strong password.
From: ntsys...@googlegroups.com <ntsys...@googlegroups.com>
On Behalf Of Ken Dibble
Sent: Wednesday, May 3, 2023 11:52 AM
To: ntsys...@googlegroups.com
To view this discussion on the web visit https://groups.google.com/d/msgid/ntsysadmin/6452830e.170a0220.b9e0.3f6dSMTPIN_ADDED_MISSING%40gmr-mx.google.com.
CAUTION: This email originated from outside of the organization. Do not click any links or open any attachments unless you trust the sender and know the content is safe.
So after this project, I would suggest looking into LAPS so that you don't have the same local admin password on all your machines.
-----Original Message-----
From: ntsys...@googlegroups.com <ntsys...@googlegroups.com> On Behalf Of Ken Dibble
Sent: Wednesday, May 3, 2023 11:56 AM
To: ntsys...@googlegroups.com
Subject: RE: [External] [ntsysadmin] PSExec/BatchPatch "Access Denied"
It does if it's a local admin account that exists on all machines and has the same password on all of them. If that were not the case, this would have failed on 100% of machines, but that did not happen.
Such an arrangement is a requirement for using BatchPatch if you don't want to run it as DA.
Ken Dibble
https://urldefense.proofpoint.com/v2/url?u=http-3A__www.stic-2Dcil.org&d=DwIFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=rJ0bECN-DLREGJliaxbIirMa-UuoXK1suNAdXyOdScU&m=Pi8CxHI7BKWx4RgAL12hmMuapXnp97acs4XdHwAErFo&s=LXoyveOlNggABsraFmGjJsnagBQQB_Hds9P424JpRYc&e =
At 11:43 AM 5/3/2023, Melvin Backus wrote:
>If you're running that as the local admin account on your workstation
>then that account has no rights on any other machine, unless you've
>specifically granted them.
>
>--
>There are 10 kinds of people in the world...
> those who understand binary and those who don't.
>
> >¯\_(ツ)_/Ã_/¯
That reg key change just turned off UAC for the built in administrator account. I would not do that.
From: ntsys...@googlegroups.com <ntsys...@googlegroups.com> On Behalf Of Ken Dibble
Sent: Wednesday, May 3, 2023 11:52 AM
To: ntsys...@googlegroups.com
Subject: RE: [External] [ntsysadmin] PSExec/BatchPatch "Access Denied"
Yes, it's related to this, I think.
Actually, what BatchPatch recommends is this:
"If the local account you are using to run BatchPatch is THE built-in administrator account on the target computers, the following registry DWORD must be set to 0 on the target computers. If the DWORD does not exist, then you must create it. When this DWORD is set to 0, the built-in administrator account is set to full-token mode, and BatchPatch will work properly. However, if it’s set to 1, the built-in administrator account is put in admin-approval mode, which will prevent most BatchPatch actions from completing successfully for those target computers:
- https://help.pdq.com/hc/en-us/articles/220533007-Can-t-access-ADMIN-share-using-a-local-user-or-LAPS-account
- Paul.
- -----Original Message-----
- I got "access denied"
- Thanks.
- Ken Dibble
- www.stic-cil.org
- >machines?
- >
- >--
- >
- >¯\_(ツ)_/)_/¯
It should be easy to deploy the registry change to all the workstations via GPO. You can use these instructions to browse to the relevant key on a machine with the right setting to create the gpo: Deploy A Registry Key Using Group Policy (kapilarya.com)
--
John Wright
IT Support Specialist
![]()
1800 Old Bluegrass Avenue, Louisville, KY 40215
Please submit IT requests to Hazelwoo...@newvista.org
24 Hour Helpline 1.800.928.8000
CONFIDENTIALITY NOTICE: This message contains confidential information and is intended only for the individual(s) addressed in the message. If you are not the named addressee, you should not disseminate, distribute, or copy this e-mail. If you are not the intended recipient, you are notified that disclosing, distributing, or copying this e-mail is strictly prohibited.
From: ntsys...@googlegroups.com <ntsys...@googlegroups.com>
On Behalf Of Ken Dibble
Sent: Wednesday, May 3, 2023 12:18 PM
To: ntsys...@googlegroups.com
Subject: RE: [External] [ntsysadmin] PSExec/BatchPatch "Access Denied"
|
This message is from an external sender. |
"So after this project, I would suggest looking into LAPS so that you don't have the same local admin password on all your machines."
--
You received this message because you are subscribed to the Google Groups "ntsysadmin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
ntsysadmin+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ntsysadmin/64528932.050a0220.a8757.79cdSMTPIN_ADDED_MISSING%40gmr-mx.google.com.
|
[CAUTION] Do not click on links or open attachments unless you recognize the sender and know the content is safe. |
It should be easy to deploy the registry change to all the workstations via GPO. You can use these instructions to browse to the relevant key on a machine with the right setting to create the gpo: Deploy A Registry Key Using Group Policy (kapilarya.com)
--
John Wright
- -----Original Message-----
- >specifically granted them.
- >
- >--
- >
- >¯\_(ツ)_/)_/¯
- >
- >-----Original Message-----
- >From: ntsys...@googlegroups.com
- >
- >
- >offending machines.
- >
- >
- >I got "access denied"
- >
- >
- >
- >machines?
- >
- >Thanks.
- >
- >Ken Dibble
- > https://urldefense.proofpoint.com/v2/url?u=http-3A__www.stic-2Dcil.org &
- >d=DwIFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=rJ0bECN-DLREGJ
- >liaxbIirMa-UuoXK1suNAdXyOdScU&m=Pi8CxHI7BKWx4RgAL12hmMuapXnp97acs4XdHwA
- >ErFo&s=LXoyveOlNggABsraFmGjJsnagBQQB_Hds9P424JpRYc&e=
- >
- > >those machines?
- > >
- > >--
- > >
- > >¯\_(ÃƒÆ’ÃÆ’£Ã†Ã¢€™„)_/Ã_/Ã/Ã_/¯
I can’t answer the why question, however if you set the registry key as a preference you can use targeting to prevent it from being applied if the key does/doesn’t exist so it can selectively do your bidding.
--
There are 10 kinds of people in the world...
those who understand binary and those who don't.
¯\_(ツ)_/¯
--
You received this message because you are subscribed to the Google Groups "ntsysadmin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
ntsysadmin+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ntsysadmin/6452957d.050a0220.fd127.4082SMTPIN_ADDED_MISSING%40gmr-mx.google.com.