VMware

This Question is Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
1 2 Previous Next 23 Replies Last post: Nov 2, 2009 7:55 AM by allencrawford  

scheduled tasks + credentials not passed to script posted: Feb 4, 2009 9:05 AM

Click to view RobMokkink's profile Expert 679 posts since
Jun 7, 2005
I opened another thread, because if accidentaly set the other thread to solved.

I am still having issues with scheduled tasks and credentials. I created a new lab (on my laptop) to test the issue.
But still i am having issues, i keep on getting this error:

Connect-VIServer : C:\WINDOWS\system32\windowspowershell\v1.0\%APPDATA%\VMware\
credstore

When i installed the previous version everything works oke. When i hard code the username and password in the script, it works oke

Who has the answer to my problem, i can't seem to find the problem.

.

Click to view CITITECHS's profile Novice 37 posts since
Feb 4, 2008
As stated in the last thread. Am also having the same issue. Am replying so that I get alerts when post are made to this thread.
Click to view pxu's profile Lurker 2 posts since
Feb 4, 2009
I too am seeing the exact same problem after upgrading to 1.5.
Click to view CITITECHS's profile Novice 37 posts since
Feb 4, 2008

Rob - The Fix worked for me thanks ...
If you get a chance please share your debugging methods as how you determined that was needed.

Thanks

Click to view LucD's profile Champion 2,431 posts since
Oct 31, 2005
Your fix works for me on XP and W2K3.
Well done Rob.
Click to view pxu's profile Lurker 2 posts since
Feb 4, 2009
Thank you Rob, that worked. I also tried logging in with my functional account and set a AppData environment variable to the proper folder and that worked also, probably not recommended.
Click to view roity57's profile Novice 15 posts since
Jan 21, 2009

I ended up just using:

$USER=$env:username
$env:appdata = "C:\Documents and Settings\" + $USER + "\Application Data"

Works a treat! Thanks for the fix.

Click to view mabrown's profile Lurker 1 posts since
Aug 14, 2007
Awesome! Thanks for the fix Rob!!

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities