Quantcast
Channel: Ivanti User Community : Popular Discussions - Inventory
Viewing all articles
Browse latest Browse all 13197

Add registry info via a custom script??

$
0
0

I'm trying to create a custom script to add a registry entry to the RunOnce key. The problem I'm having is the amount of quotes I require in order for it to run properly. No matter what combination of quotes I use, whether it be <qt/> or ", I don't get the end result I need, which is an entry in the RunOnce key that looks like this: "C:\Program Files\LANDesk\LDClient\miniscan.exe" "/send= Custom Data - Lock Status = Unknown".

 

 

Here's the script:

[MACHINES]
REMEXEC0=C:\Windows\System32\reg.exe add HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce /v MiniScan /t REG_SZ /d <qt/>C:\Program Files\LANDesk\LDClient\miniscan.exe<qt/> "/send= Custom Data - Lock Status = Unknown", SYNC


Viewing all articles
Browse latest Browse all 13197

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>