This is the last step in my Kix to .vbs conversion. Having
a little difficulty with OR statements in conversion. Here is
the original kix script:
' Check / Set registry settings for screen saver. Logoff
user if settings are updated
$IsLocked =
:[EMAIL PROTECTED] On
Behalf Of Harding, Devon
Sent: Tuesday, December 13, 2005
11:51 AM
To: ActiveDir@mail.activedir.org
Subject: [ActiveDir] If, and, or
in .vbs
This is the last step in my Kix to .vbs conversion.
Having a little difficulty with OR statements in conversion.
Here is the original
Desmond
Sent: Tuesday, December 13, 2005
12:05 PM
To: ActiveDir@mail.activedir.org
Subject: RE: [ActiveDir] If, and,
or in .vbs
Dim isLocked
isLocked = RegRead(Stuff)
Dim ssTimeout
ssTimeout = RegRead(MoreStuff)
If (isLocked = 0) or (CInt(ssTimeout) 900)
Then
Do Stuff
End
The only problem I have is that I cant
get it to auto logoff after 20 Seconds.
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Harding,
Devon
Sent: Tuesday, December 13, 2005
2:49 PM
To: ActiveDir@mail.activedir.org
Subject: RE: [ActiveDir] If, and,
or in .vbs
What would be the correct way to convert this batch file to
a .vbs?
Echo Mapping Drive
letter for IPCC Access
if exist i:\ net
use i: /delete
net use i:
\\10.1.0.103\DESKTOP_CFG password /user:ipccuser /PERSISTENT:NO
Devon Harding
Windows Systems
@mail.activedir.org
Subject: [ActiveDir] Authenticated
drive mapping via .vbs
What would be the correct way to convert
this batch file to a .vbs?
Echo Mapping Drive
letter for IPCC Access
if exist i:\ net
use i: /delete
net use i:
\\10.1.0.103\DESKTOP_CFG password /user:ipccuser /PERSISTENT:NO
Sorry, username and password need to be in
quotes.
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Harding, Devon
Sent: Thursday, October 13, 2005
12:04 PM
To: ActiveDir@mail.activedir.org
Subject: RE: [ActiveDir]
Authenticated drive mapping via .vbs
I seem
a syntax error on the comma
or space after the username.
From:
[EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED]] On Behalf Of Crawford, Scott
Sent: Thursday, October 13, 2005
11:49 AM
To: ActiveDir@mail.activedir.org
Subject: RE: [ActiveDir]
Authenticated drive mapping via .vbs
Set
Of Crawford, Scott
Sent: Thursday, October 13, 2005
1:59 PM
To: ActiveDir@mail.activedir.org
Subject: RE: [ActiveDir]
Authenticated drive mapping via .vbs
Sorry, username and
password need to be in quotes.
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Harding,
Devon
] On Behalf Of Harding,
DevonSent: Thursday, October 13, 2005 3:24 PMTo:
ActiveDir@mail.activedir.orgSubject: RE: [ActiveDir] Authenticated
drive mapping via .vbs
Quotes work.
Now I just need to be able to sync time with my local DC via
.vbs.
In my batch file, I
have
10 matches
Mail list logo