Hi
I've built an internal update server using AUSST for updates. I want to set a script to run the updates incrementally without being logged in - assumed a powershell script run as a scheduled task would be the best option. The script I've written is below:
$body="C:\Program Files (x86)\Common Files\Adobe\OOBE\PDApp\CCP\utilities\AUSST\AdobeUpdateServerSetupTool.exe"--root="D:\Updates\Adobe"--incremental|Out-String
"Updates are complete."-Nonewline-ForegroundcolorGreen
-Fromemail@domain-Toemail@domain-Subject"Adobe AUSST Updates"-Body$body-SmtpServer"mailbox.domain.local"
I get the following error when running this though:
At line:1 char:117
+ ... tupTool.exe" --root="D:\Updates\Adobe" --incremental |Out-String
+ ~~~~~~~~~~~~~~~~~~~~~~~
Unexpected token 'root="D:\Updates\Adobe"' in expression or statement.
At line:1 char:9
+ $body = "C:\Program Files (x86)\Common Files\Adobe\OOBE\PDApp\CCP\utilities\AUSS ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The '--' operator works only on variables or on properties.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedToken
Can anyone see where I'm going wrong? I've not done an awful lot with Powershell so excuse me if I'm doing something daft.
Cheers.
Tom