Answer the question
In order to leave comments, you need to log in
Executing a script for registering a dll from an admin account with a subuser?
Good afternoon.
How can I organize the execution of the gpo script under a domain user that requires admin rights.
Essence.
There are paths with dll
D:\WORK\work.dll
D:\HOME\home.dll
write
@echo off
cd /d D:\WORK\
start /wait regsvr32 "D:\WORK\work.dll"
cd /d D :\HOME\
start /wait regsvr32 "D:\HOME\home.dll"
Error accordingly
---------------------------
RegSvr32
-- ------------------------
Module 'D:\WORK\work.dll' loaded, but call to DllRegisterServer failed with error code 0x80040201.
How to insert execution variables with domain admin account login+pass.
For security, I know that it's crooked, do not judge.
Answer the question
In order to leave comments, you need to log in
1. runas in cmd.
2. Start-Process in PowerShell.
3. Add a script to the Scheduled Task with a launch from a specific user and a trigger - when the workstation starts.
Everything is googled at once, feel free to use the search.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question