K1000 agent not deploying via GPO to Windows 10 machines
Greetings,
For years I have deployed the K1000 agent via GPO to machines from Windows XP to Windows 7. For some reason my GPO is applied to Windows 10 machines but the .msi does not execute. I have it running from a UNC path. It still executes to non-Windows 10 machines. Any ideas?
2 Comments
[ + ] Show comments
Answers (0)
Please log in to answer
Be the first to answer this question
Is there anything in the Event logs by chance?
Edit: Sorry I meant C:\Windows\Temp... my bad - Desktop Jockey 7 years ago
@echo off
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v EnableLUA /t REG_DWORD /d 1 /f
IF EXIST "C:\Program Files (x86)\Quest\KACE" goto _End
:: BatchGotAdmin
:-------------------------------------
REM --> Check for permissions
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
REM --> If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' (
goto UACPrompt
) else ( goto gotAdmin )
:UACPrompt
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
"%temp%\getadmin.vbs"
exit /B
:gotAdmin
if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" )
pushd "%CD%"
CD /D "%~dp0"
:--------------------------------------
msiexec /i "\\PATH TO MSI" /qn
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v EnableLUA /t REG_DWORD /d 1 /f
:_END - rockhead44 6 years ago