Hey Guys,
I have just set up a filter rule to email me the status of software deployments by running a powershell script.
I am currently passing the name into the powershell script by using this command
script.ps1 %msgsys
then within the first line of powershell i use
param([string]$strComputer)
This is working fine. I also wanted to pass the variable for message description so the script was
script.ps1 %msgsys %msgdesc
Powershell
param([string]$strComputer, [string]$message)
When i run this all that i get is the first word in the message.
example
The message was
The task sequence has completed successfully
My script will only return
"The"
How can i output the entire message not just the first word??