Unable to access the desired machine or service

Hello experts-

I am trying to run a .bat file and retrieve stats speicific to sql servers performanace; however when I execute the .bat job, I continue to get the below error message.

I have enterprise admin, and local admin permissions on the machine.

Error:
Unable to access the desired machine or service. Check the permissions and authentication of the log service or the interactive user session against those on the machine or service being monitored.


Any help would be greatly appreciated.
nitayalevetteAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

wantabe2Commented:
Try adding this to your batch file:

runas /user:<domain_name>\<user_name> <program_name>

Of cource you'll have to edit it for your info. I'm not sure if you enter the path in the <program name> area or just the batch file name.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
nitayalevetteAuthor Commented:
Should I add this at the beginning?  Below is the syntax in the batch file:


for %%a in (MMCorpBaseline) do (logman.exe create counter SQLBaseLine%%a  -s %%a -si 00:00:30 -f csv -o "C:\sqlsat\4 Logman\%%a.csv" -v mmddhhmm -cf "C:\sqlsat\4 Logman\BaselineCountSQL.config")
REM
REM for %%a in (MMCorpBaseline) do (logman.exe start counter SQLBaseLine%%a -s %%a)
REM
REM for %%a in (MMCorpBaseline) do (logman.exe stop counter SQLBaseLine%%a -s %%a)

pause
0
ChiefITCommented:
Ahh, looks like another victim of Internet Explorer Enhanced Security:

It looks just like this:
http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/2003_Server/Q_23351830.html
0
nitayalevetteAuthor Commented:
Experts, I've attempted both potential solutions, and neither work.  I am attempting to run this .bat on the local machine...the code within the .bat file


for %%a in (MMCorpBaseline) do (logman.exe create counter SQLBaseLine%%a  -s %%a -si 00:00:30 -f csv -o "C:\sqlsat\4 Logman\%%a.csv" -v mmddhhmm -cf "C:\sqlsat\4 Logman\BaselineCountSQL.config")
REM
REM for %%a in (MMCorpBaseline) do (logman.exe start counter SQLBaseLine%%a -s %%a)
REM
REM for %%a in (MMCorpBaseline) do (logman.exe stop counter SQLBaseLine%%a -s %%a)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2003

From novice to tech pro — start learning today.