Anonymous_User Absent Member.
Absent Member.
459 views

Agent install -q parameter not honored


Hi all: Following a re-image of a workstation I run several setup scripts to ready the computer for use. My first script installs the Novell client, iPrint and the ZCM agent. The script calls the zcm agent executable with the -q and -x parameters which SHOULD suppress a reboot upon completion AND suppress the manual reboot dialog from appearing, yet the reboot dialog still appears. As a work-around I put up a dialog showing the status of the installation but many users ignore this and click the reboot button which screws up the post-imaging work.



Suggestions?? Thanks, Chris.



Here is the portion of the script which installs the agent:



Write-Host "Installing ZCM Agent ..."
New-RegistryKey "HKLM:\SOFTWARE\Novell\ZCM" "HonorWorkstationOnlyLogin" "DWORD" "1"
$AgentCommand = "C:\Setup\Install\ZCMAgent\PreAgentPkg_AgentComplete.exe"
$AgentParams = "-q -x"
$agentprocess = [Diagnostics.Process]::Start($AgentCommand,$AgentParams)
$agentprocess.WaitForExit()
while (Get-Process 'ZENPreAgent' -ea SilentlyContinue) {
sleep -s 10
Write-Host "Still Processing ..."
}
Write-Host "ZCM Agent installed."
Write-Host ""



Start-Sleep -s 2



Write-Host "Rebooting ..."
Restart-Computer
Labels (2)
0 Likes
2 Replies
Anonymous_User Absent Member.
Absent Member.

Re: Agent install -q parameter not honored

Chris,

It appears that in the past few days you have not received a response to your
posting. That concerns us, and has triggered this automated reply.

Has your problem been resolved? If not, you might try one of the following options:

- Visit http://www.novell.com/support and search the knowledgebase and/or check all
the other self support options and support programs available.
- You could also try posting your message again. Make sure it is posted in the
correct newsgroup. (http://forums.novell.com)

Be sure to read the forum FAQ about what to expect in the way of responses:
http://forums.novell.com/faq.php

If this is a reply to a duplicate posting, please ignore and accept our apologies
and rest assured we will issue a stern reprimand to our posting bot.

Good luck!

Your Novell Forums Team
http://forums.novell.com


0 Likes
Anonymous_User Absent Member.
Absent Member.

Antw: Agent install -q parameter not honored


Hi Chris,



we use the AutoIT-Utility to suppress such dialogs.



- start the Agent install

- start AutoIT.exe AutoIT.au3



AutoIT.au3:

==

WinWait ("Reboot required")

WinActivate ("Reboot required")

Send ("{SPACE}")

==

(Replace "Reboot required" with the title You see.)



Regards - Frank










>>> cmosentine<cmosentine@N0_5pam_vrapc.com> 30.07.2015 16:47 >>>


Hi all: Following a re-image of a workstation I run several setup scripts to ready the computer for use. My first script installs the Novell client, iPrint and the ZCM agent. The script calls the zcm agent executable with the -q and -x parameters which SHOULD suppress a reboot upon completion AND suppress the manual reboot dialog from appearing, yet the reboot dialog still appears. As a work-around I put up a dialog showing the status of the installation but many users ignore this and click the reboot button which screws up the post-imaging work.




Suggestions?? Thanks, Chris.




Here is the portion of the script which installs the agent:




Write-Host "Installing ZCM Agent ..."
New-RegistryKey "HKLM:\SOFTWARE\Novell\ZCM" "HonorWorkstationOnlyLogin" "DWORD" "1"
$AgentCommand = "C:\Setup\Install\ZCMAgent\PreAgentPkg_AgentComplete.exe"
$AgentParams = "-q -x"
$agentprocess = [Diagnostics.Process]::Start($AgentCommand,$AgentParams)
$agentprocess.WaitForExit()
while (Get-Process 'ZENPreAgent' -ea SilentlyContinue) {
sleep -s 10
Write-Host "Still Processing ..."
}
Write-Host "ZCM Agent installed."
Write-Host ""




Start-Sleep -s 2




Write-Host "Rebooting ..."
Restart-Computer
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.