running an exe with cmd line switchs from vbs Options
Rat
#1 Posted: : Thursday, August 03, 2006 1:29:58 PM
Rank: You're gonna stick that where?

Groups: Moderator

Joined: 5/9/2006
Posts: 97
Points: 15
Location: The sky above you
This is aimed at Sirus but anyone can answer if you know...

I need to run this line:

C:\scripts\oldcmp -report -age 60 -users -b ou=secure,dc=region,dc=company,dc=com -sort pwage -realage -format html -bit -af "(!(useraccountcontrol:AND:=66048))" -file 60-day-expired

there are two problems I have.  One...what is the proper command to execute them.  I tried:

set shell=createobject("wscript.shell")
shell.run "C:\scripts\oldcmp -report -age 60 -users -b ou=secure,dc=region,dc=company,dc=com -sort pwage -realage -format html -bit -af "(!(useraccountcontrol:AND:=66048))" -file 60-day-expired"
set shell=nothing

Well that doesn't work.  Not sure because I have the wrong syntax or because of the ! in the switches.

Ideas?

From the moment you were born, you were destined to die
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.