Add -confirm:0 as a parameter to start-bejob ------Original Message------ From: [email protected] To: NT System Admin Issues ReplyTo: NT System Admin Issues Subject: RE: Powershell and dos batch Sent: Jun 6, 2012 2:53 PM
How do I push the confirm to Y? From: Damien Solodow [mailto:[email protected]] Posted At: Wednesday, June 06, 2012 2:06 PM Posted To: [email protected] Conversation: Powershell and dos batch Subject: RE: Powershell and dos batch Ah. Change your .ps1 file; Import-module bemcli Get-BEJob -Name "BackupJob-Full" | Start-BEJob DAMIEN SOLODOW Systems Engineer 317.447.6033 (office) 317.447.6014 (fax) HARRISON COLLEGE From: [email protected] [mailto:[email protected]] Sent: Wednesday, June 06, 2012 1:36 PM To: NT System Admin Issues Subject: RE: Powershell and dos batch I did what you said. Here is my error so far. The term 'GET-BEJob' is not recognized as the name of a cmdlet, function, scri t file, or operable program. Check the spelling of the name, or if a path was ncluded, verify that the path is correct and try again. At C:\WINDOWS\system32\WindowsPowerShell\v1.0\BackupJob.ps1:1 char:33 + Import-module BEMCLI | GET-BEJob <<<< "Test-Full" | START-BEJob + CategoryInfo : ObjectNotFound: (GET-BEJob:String) [], CommandNo tFoundException + FullyQualifiedErrorId : CommandNotFoundException From: Damien Solodow [mailto:[email protected]] Posted At: Wednesday, June 06, 2012 1:18 PM Posted To: [email protected] Conversation: Powershell and dos batch Subject: RE: Powershell and dos batch Did you run the set-executionpolicy like I mentioned? If so, what is the exact error you are receiving when running the batch? From: [email protected] [[email protected]] Sent: Wednesday, June 06, 2012 1:00 -------------------------- Sent using BlackBerry ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ --- To manage subscriptions click here: http://lyris.sunbelt-software.com/read/my_forums/ or send an email to [email protected] with the body: unsubscribe ntsysadmin
