Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


2 quesitons...

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,31622
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> 2 quesitons...
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 2 quesitons... - 2/28/2006 3:23:40 AM   
  robszar


Posts: 182
Score: 0
Joined: 2/27/2005
From:
Status: offline
    1st
i am sending an email with the code below but I get a security warning in outlook that states "a program is trying to send an email on your behalf, do yo want to allow this?  yes- no", does anyone know how to suppess the warning?

      

2nd question

i have code to move a computer account from 1 OU to another, how can I add a user name and password so anyone can run the script with embeded credentials


      
 
 
Post #: 1
 
 RE: 2 quesitons... - 2/28/2006 4:09:05 AM   
  kirrilian


Posts: 628
Score: 3
Joined: 3/15/2005
From:
Status: offline
on the first one, use the CDO object and you wont have that problem. there are some example scripts in the "post a script" section
on the second one, im not sure if you can "embed" the credentials, use runas to run it as someone who has the proper permissions

_____________________________

Have you searched here ?
VBScript Fundamentals
My Site

(in reply to robszar)
 
 
Post #: 2
 
 RE: 2 quesitons... - 2/28/2006 8:27:39 AM   
  robszar


Posts: 182
Score: 0
Joined: 2/27/2005
From:
Status: offline
how about something like this

Set objNewOU = GetObject("LDAP://OU=Finance,DC=fabrikam,DC=com", username, password

(in reply to kirrilian)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> 2 quesitons... Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts