eisefr
1
Hiiii..
I would like to save the agent-group - name into a variable.
My action script .. very simple:
Parameter = "BRS_CLS"
Aktion = "zero"
Dim ObjShell
Set ObjShell= CreateObject("WScript.Shell")
ObjShell.Run "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe c:\anwend\Skripte\Agentengruppen_ungleich_1.ps1 " & Parameter + " " + Aktion
I would like to add a row like
Group = Agentgroupname
I would like to pass this variable “Group” to a powershell skript.
Is this possible somehow ?
I’m assuming you are talking about CCPulse+ here.
Have you tried something like this?
Dim AgentGroupName = Threshold.CFGObjectID
I get an error when I try this.
Error at
Line: 1
Position: 20
Error Message: Expected end of statement
Maybe it’s just something simple.
I am very new to this.
Post your whole code pls
Enviado de meu SM-N9600 usando o Tapatalk
eisefr
5
Parameter = “KSC_Test”
Aktion = “zero”
Dim ObjShell
Set ObjShell= CreateObject(“WScript.Shell”)
Dim AgentGroupName = Threshold.CFGObjectID
ObjShell.Run "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe c:\anwend\Skripte\Agentengruppen_ungleich_1.ps1 " & Parameter + " " + Aktion
If row#5 would work, I could replace Parameter with AgentGroupName
I got it to work now.
This is how it works here:
Dim thresholdInfo
Parameter = CStr(Threshold.CFGObjectID)
Aktion = "Anmeldung"
Dim ObjShell
Set ObjShell= CreateObject("WScript.Shell")
ObjShell.Run "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe c:\anwend\Skripte\Agentengruppen.ps1 " & Parameter + " " + Aktion
Thank you all for your time and help.
Thanks for sharing the solution
Enviado de meu SM-N9600 usando o Tapatalk