Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2007
  • Last Modified:

Emailing through MYOB, run as Admin

Hi Guys...

I have been having some difficulties with emailing through MYOB. I am running Windows Server 2012 with Remote Desktop Services, I have Office 2010 (32 bit) and MYOB (32 bit) installed, when a user tries to send an email through MYOB I get the following error

"The attachment file was created successfully, but there was an error writing it."

I can see what the problem is, I think MYOB is trying to use the "c:\Users\Administrator\AppData\Local\Temp" folder to create and attach the PDF files, this is probably because I have the MYOB shortcuts with the following command in the Target field of the properties for the shortcuts
"C:\Windows\System32\runas.exe /savecred /user:administrator "c:\Premier19-NZ\myobp.exe"

I had to do this to stop MYOB asking for Administrator permission to run.

Not sure what to do or how to get myself out of this situation, any ideas?
Thanks
0
Ergs
Asked:
Ergs
  • 6
  • 3
1 Solution
 
Davis McCarnOwnerCommented:
Logged in as the server admin, go to the original MYOB shortcut, right-click on it, choose properties, and, on the Compatability tab, click the button to Change settings for all users. Check the box to Run this program as an administrator and then OK.
Copy the shortcut to C:\Users\Public\Desktop, log in as another user, and try it.
0
 
ErgsAuthor Commented:
Even if I do as it instructed, when a user attempts to run MYOB it still asks for a admin user/password.

The email function only works from the Administrator login? when I try as a normal user I get the "The attachment file was created successfully, but there was an error writing it."
0
 
Davis McCarnOwnerCommented:
The Runas; though, is invoking the program as the administrator which would then have to have an email account which worked and would further send every email from that account if it worked.
Pretend you are setting it up on a network and do what this tells you to do: http://myobnz.custhelp.com/app/answers/detail/a_id/33034
0
Get quick recovery of individual SharePoint items

Free tool – Veeam Explorer for Microsoft SharePoint, enables fast, easy restores of SharePoint sites, documents, libraries and lists — all with no agents to manage and no additional licenses to buy.

 
ErgsAuthor Commented:
I followed the instructions and I am still getting the administrator username/password prompt?
0
 
Davis McCarnOwnerCommented:
Did you remove the check on Run this program as an administrator?
0
 
ErgsAuthor Commented:
Just doubled checked everything - basically started from the beginning with a new shortcut and yes for some reason it is asking for Admin Username/Password - When trying to run MYOB it has always asked for username password that's why I initially setup the shortcut with the
"C:\Windows\System32\runas.exe /savecred /user:administrator "c:\Premier19-NZ\myobp.exe"
0
 
ErgsAuthor Commented:
And what I have noticed is that if I enter the Administrator Username/Password - MYOB sends the email but from the Administrator profile, the Administrator logon must be running Outlook and it send the email, I can confirm this by checking the sent items for both the normal user account and Admin account
0
 
ErgsAuthor Commented:
I had a post regarding MYOB and UAC which Hi  xBouchardx helped me with
http://www.experts-exchange.com/Software/Server_Software/Email_Servers/Exchange/Q_28096424.html

This worked well until I had to email from MYOB
0
 
ErgsAuthor Commented:
Hi Davis.... I think I have it sorted. Using the link from your original post (mapping drive) and using the information in this link
http://adrian.sutantio.info/2012/06/fix-myob-required-administrator-account.html
to stop UAC it is working nicely.

Thanks for you help
0

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

  • 6
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now