/build/static/layout/Breadcrumb_cap_w.png

KACE Script to see what computers left on my domain that do not already have KACE installed.

I have over 900 computers and I need a Powershell script that I can run that will produce a spreadsheet of computers that are missing KACE. Is there a script already out there like this?

0 Comments   [ + ] Show comments

Answers (2)

Posted by: worzie 6 years ago
Fourth Degree Brown Belt
0
Back in the day when starting out with KACE, we used to run a provisioning schedule on all our subnets at staggered intervals: Settings Provisioning Provisioning Schedule.  Target your subnet similar to: 10.1.100.10-254.  We no longer run these schedules as we have a task that installs the agent during imaging so finding one without an agent is rare now.

Alternatively, you could just deploy using group policy if you have an active directory domain.
Posted by: PaulGibson 6 years ago
Orange Belt
0
I don't have a PowerShell script to check for the KACE agent, but I did write a Tenable SecurityCenter audit to check for it. I originally wrote this for Dell KACE, but after Quest bought I changed to Quest. If you're using that, hope this helps.

# Verifies the Quest KACE Agent is running and connected to a KACE server## Required Services#	AMPWatchDog			Quest KACE Agent WatchDog#	OfflineScheduler	Quest KACE Offline Scheduler#	konea				Quest KACE One Agent## Required Files #	AMPWatchDog.exe		%ProgramFiles(x86)%\Quest\KACE#	KSchedulerSvc.exe	%ProgramFiles(x86)%\Quest\KACE#	konea.exe			%ProgramFiles(x86)%\Quest\KACE# KACE 8.0 installs the files under "%ProgramFiles(x86)%\Quest\KACE" or "%ProgramFiles%\Quest\KACE"# 2017-10-23 - Initial version for 7.2 - Each item created a separate Plugin ID# 2017-11-28 - Updated to check for 7.2 and 8.0; a single Plugin ID is created rather than an ID for each check# 2017-11-29 - Updated to work with 64-bit or 32-bit Windows (was originally only checking 64-bit Windows)<check_type:"Windows" version:"2">	<group_policy:"Quest KACE Agent is installed and set to Automatic">		<if>			<condition type:"and">				<if>					<condition type:"or">						<custom_item>							type: FILE_CHECK							description: "File: Quest KACE Agent WatchDog Exists"							value_type: POLICY_TEXT							value_data: "%ProgramFiles(x86)%\Quest\KACE\AMPWatchDog.exe"							file_option: MUST_EXIST						</custom_item>						<custom_item>							type: FILE_CHECK							description: "File: Quest KACE Agent WatchDog Exists"							value_type: POLICY_TEXT							value_data: "%ProgramFiles%\Quest\KACE\AMPWatchDog.exe"							file_option: MUST_EXIST						</custom_item>					</condition>					<then>						<report type:"PASSED">							description: "Quest KACE Agent WatchDog file exists"						</report>					</then>					<else>						<report type:"FAILED">							description: "Quest KACE Agent WatchDog file exists"						</report>					</else>				</if>				<if>					<condition type:"or">						<custom_item>							type: FILE_CHECK							description: "File: Quest KACE Offline Scheduler Exists"							value_type: POLICY_TEXT							value_data: "%ProgramFiles(x86)%\Quest\KACE\KSchedulerSvc.exe"							file_option: MUST_EXIST						</custom_item>						<custom_item>							type: FILE_CHECK							description: "File: Quest KACE Offline Scheduler Exists"							value_type: POLICY_TEXT							value_data: "%ProgramFiles%\Quest\KACE\KSchedulerSvc.exe"							file_option: MUST_EXIST						</custom_item>					</condition>					<then>						<report type:"PASSED">							description: "Quest KACE Agent Offline Scheduler file exists"							</report>					</then>					<else>						<report type:"FAILED">							description: "Quest KACE Agent Offline Scheduler file exists"						</report>					</else>				</if>				<if>					<condition type:"or">						<custom_item>							type: FILE_CHECK							description: "File: Quest KACE One Agent Exists"							value_type: POLICY_TEXT							value_data: "%ProgramFiles(x86)%\Quest\KACE\konea.exe"							file_option: MUST_EXIST						</custom_item>						<custom_item>							type: FILE_CHECK							description: "File: Quest KACE One Agent Exists"							value_type: POLICY_TEXT							value_data: "%ProgramFiles%\Quest\KACE\konea.exe"							file_option: MUST_EXIST						</custom_item>					</condition>					<then>						<report type:"PASSED">							description: "Quest KACE Agent One Agent file exists"						</report>					</then>					<else>						<report type:"FAILED">							description: "Quest KACE Agent One Agent file exists"						</report>					</else>				</if>				<custom_item>					type : SERVICE_POLICY					description : "Service: Quest KACE Agent WatchDog is Automatic"					value_type : SERVICE_SET					service_name : "AMPWatchDog"					value_data : "Automatic"					svc_option: CAN_NOT_BE_NULL				</custom_item>				<custom_item>					type : SERVICE_POLICY					description : "Service: Quest KACE Offline Scheduler is Automatic"					value_type : SERVICE_SET					service_name : "OfflineScheduler"					value_data : "Automatic"					svc_option: CAN_NOT_BE_NULL				</custom_item>				<custom_item>					type : SERVICE_POLICY					description : "Service: Quest KACE One Agent is Automatic"					value_type : SERVICE_SET					service_name : "konea"					value_data : "Automatic"					svc_option: CAN_NOT_BE_NULL				</custom_item>			</condition>			<then>				<report type:"PASSED">					description: "Quest KACE Agent is installed and set to Automatic"				</report>			</then>			<else>				<report type:"FAILED">					description: "Quest KACE Agent is installed and set to Automatic"				</report>			</else>		</if>	</group_policy></check_type>
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ