WDS 2012R2 wdsutil runnig from php script requires administrative access

Dulleo 1 Reputation point
2022-10-07T00:13:35.197+00:00

Hello,

I created WDS 2012R2 kickstart environment (WDS, AD, IIS) where java spring application register device for windows installation using post request and php script.

The wds-script.php file runs wdsutil command:

WDSUTIL /Add-Device /Device:Installation%s /ID:%s /JoinDomain:No ---------

My spring log shows the following message:

Registering device with url 'http://wds.ip/iis-file-path/wds-script.php?command=add&------------------------------------'
Post Response: ��Windows Deployment Services Management Utility [Version 6.3.9600.16384]� 2013 Microsoft Corporation. All rights reserved.Error: You must have administrative access to this computer in order to run this utility.An error occurred while trying to execute the command.Error Code: 0x2E4Error Description: The requested operation requires elevation.

Can somebody help me out?

Regards

Windows Server 2012
Windows Server 2012
A Microsoft server operating system that supports enterprise-level management, data storage, applications, and communications.
1,529 questions
Windows Server Setup
Windows Server Setup
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
241 questions
0 comments No comments
{count} votes