Ok better. 

Now I get a bunch of red letter complaining about being digitally
signed?

 

From: Damien Solodow [mailto:[email protected]] 
Posted At: Wednesday, June 06, 2012 12:22 PM
Posted To: [email protected]
Conversation: Powershell and dos batch
Subject: RE: Powershell and dos batch

 

Try this for your batch file:

C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe -file
e:\in01\oper\task\BackupJob.ps1

 

 

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 12:08 PM
To: NT System Admin Issues
Subject: Powershell and dos batch

 

I have need to running a powershell script for Backup Exec 2012 through
a DOS batch file.

Here is what I have so far:

 

::Batch File

::powershell

 

C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe
"'e:\in01\oper\task\BackupJob.ps1'"

exit

_______________________

BackupJob.ps1

Import-Module BEMCLI | Get-BEJob -Name "BackupJob-Full" | Start-BEJob |
exit

 

 

Where the BackupJob is already set up in the GUI library on the server.

I get nothing.

The batch file just finishes.

I put a pause after it and I see no errors?

So what am I doing wrong and how do I make it work?

Thanks

 

~ 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

~ 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


~ 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

Reply via email to