here are my notes to get it to work: here's how to compile to use cpau: cpau -u domain\username -p password -ex "process to run, no path" -enc -f "filetocreate.job" -- process to run is in the directory where the build occurs -- do not specify any path since to get to get it to run it needs to be copied to the required machine. -- filetocreate.job becomes the encrypted process with the user/pass included -- not sure of including -profile as we add it to the executing script
then to run the script c:\scripts\cpau -dec -file filename.job -profile -- big note here you need to run it with -profile when running the job script for it to work. -- example: cpau -dec -file "setTechGroupb.job" -profile in the actual batch or cmd file that runs from a server, we copy the necessary items to the c:\temp folder and run it there. bob On Thursday, December 2, 2004 5:19 PM, Beach Computers <[EMAIL PROTECTED]> wrote: >MAN! >This thing refuses to work. > >I have: >CPAU -u DOMAIN\ADMINUSER -p PASSWORD -ex "C:\WINDOWS\system32\shutdown.exe >/r /t 1" -profile -cwd C:\WINDOWS\system32 >And still nothing. > >Talk about frustrating! > >Thanks > > >-----Original Message----- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] On Behalf Of Bob McGregor >Sent: Thursday, December 02, 2004 6:40 PM >To: [EMAIL PROTECTED] >Subject: Re: [IMail Forum] Reboot via Alias > >check out a utility called CPAU >http://www.jsiinc.com/SUBO/tip7200/rh7258.htm > >this utility does what you want. it encrypts whatever you want to run and >uses runas command. > >bob > >>Sent: Thursday, December 02, 2004 6:20 PM >>To: [EMAIL PROTECTED] >>Subject: RE: [IMail Forum] Reboot via Alias >> >>Ok.... This certainly seems to be a security issue. >>I switched the Queue Manager service to start with an admin account, >>and the alias works like a charm. >> >>Considering this would be a terrible security practice, does anyone >>have any suggestions on launching the batch file or running shutdown in >>the batch file as an administrative user? >> >>Thanks much >> >>Dave >>>-----Original Message----- >>>From: [EMAIL PROTECTED] >>>[mailto:[EMAIL PROTECTED] Behalf Of Beach >>>Computers >>>Sent: Thursday, December 02, 2004 3:30 PM >>>To: [EMAIL PROTECTED] >>>Subject: [IMail Forum] Reboot via Alias >>> >>> >>>Hello, >>> >>>Testing out an idea which does not want to work and wondered if anyone >>>could point out why. >>> >>>Setup an alias in Imail to launch C:\WINDOWS\system32\reboot.bat. >>>Reboot.bat reads: >>>C:\WINDOWS\system32\shutdown.exe /r /c "email reboot" /t 1 >>> >>>All seems fine, and testing reboot.bat by itself, it runs without a >>>problem and reboots the machine. >>>But, when I test this via the Alias, nothing happens. >>>My system log reads: >>>12:02 15:20 SMTPD(791e000f0138a26f) [69.93.89.101] MAIL FROM: >>><[EMAIL PROTECTED] <BLOCKED::mailto:[EMAIL PROTECTED]> > >>>12:02 15:20 SMTPD(791e000f0138a26f) [69.93.89.101] RCPT TO: >>><[EMAIL PROTECTED] <BLOCKED::mailto:[EMAIL PROTECTED]> > >>>12:02 15:20 SMTPD(791e000f0138a26f) [69.93.89.101] >>>D:\IMail\spool\D791e000f0138a26f.SMD 1280 >>>12:02 15:20 SMTP-(0000000000000000) Info - Adding Queue file >>>D:\IMail\spool\Q791e000f0138a26f.SMD >>>12:02 15:20 SMTP-(791e000f0138a26f) processing >>>D:\IMail\spool\Q791e000f0138a26f.SMD >>>12:02 15:20 SMTP-(791e000f0138a26f) [x] toprog >>>C:\WINDOWS\system32\reboot.bat D:\IMail\spool\tmp2A.tmp >>>12:02 15:20 SMTP-(791e000f0138a26f) finished >>>D:\IMail\spool\Q791e000f0138a26f.SMD status=1 >>> >>>Any ideas why it's not working? >>> >>>Thanks much. >>> >>>Dave >>> >>> >>> >>> >>>To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html >>>List Archive: >>>http://www.mail-archive.com/imail_forum%40list.ipswitch.com/ >>>Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/ >>> >>>--- >>>Incoming mail is certified Virus Free. >>>Checked by AVG anti-virus system (http://www.grisoft.com). >>>Version: 6.0.803 / Virus Database: 546 - Release Date: 11/30/2004 >>> >>--- >>Outgoing mail is certified Virus Free. >>Checked by AVG anti-virus system (http://www.grisoft.com). >>Version: 6.0.803 / Virus Database: 546 - Release Date: >>11/30/2004 >> >> >>To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html >>List Archive: >>http://www.mail-archive.com/imail_forum%40list.ipswitch.com/ >>Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/ >> >> >> >> >> >>To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html >>List Archive: >>http://www.mail-archive.com/imail_forum%40list.ipswitch.com/ >>Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/ >> >> >>To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html >>List Archive: >>http://www.mail-archive.com/imail_forum%40list.ipswitch.com/ >>Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/ >> > > >To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html >List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/ >Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/ > > > > > >To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html >List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/ >Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/ > To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/ Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/
