|
logevent command bombs scheduled task
I have a script that uses logevent. Logged in as my account the
script runs successfully, without errors, and writes to the event
log. When I attempt to run this batch file as a scheduled task, under
my SAME credentials, it fails with 0x1 error, which according to
microsoft means "An incorrect function was called or an unknown
function was called". If I rem out the logevent line the schedu...
|
2 |
4/25/2007 2:13:17 AM |
|
Modify IIS 6.0 Website Server Bindings using VBScript?
Hi,
I'm trying to modify an existing website's server bindings using WMI. I
think its just a simple syntax problem but I haven't found any documentation
on updating existing serverbindings.
This is a small part of my code that I'm using to try to update the MetaBase
file using IIsWebServerSetting and the ServerBindings property. I can
connect to the path but this script is not upd...
|
1 |
4/24/2007 9:42:01 PM |
|
Move files
Move files from a folder in a Server, to another folder in another Server.
The files that move are the generated only in the present day. The task must
executed every day at 23:00.
Thankyou...
|
3 |
4/24/2007 1:39:32 PM |
|
Mouse equivalent for sendkeys
Is there a sendmouse command like sendkeys?? Im trying to send mouse commands
much like i am able to send keyboard functions and commands. IF this is
possible where can i go read about how to do it or what command can i use to
do this??...
|
2 |
4/24/2007 11:47:26 AM |
|
WScript error
I am trying to learn to do windows scripting correctly.
Win I run the following code on the xp machine i get this error:
Script: C:\test.js
line: 1
Char: 5
Error: Expected ';'
Code: 800A03EC
Source: Microsoft Jscript Compolation Error
The code is the following:
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run ("mmc.exe")
i have wsh 5.6 installed on this xp mac...
|
2 |
4/23/2007 5:00:02 PM |
|
Outllok 2003 Signature script
I came across the script below in an issue of TechNet and have been testing
it ever since so that I can actually use it. I'm not very familiar with
scripting, but from playing with the code in this was able to figure out what
is what. I would like to tweak it to do a couple more things but have not had
much luck figuring these options out. If possible I’d like to have the e-mail
addres...
|
2 |
4/23/2007 3:13:26 PM |
|
Connecting and binding to an AD domain from within a NT4 domain
Hi there,
I try to understand the follwing script:
Set oRoot = GetObject("LDAP://sinai.local/RootDSE")
MsgBox oRoot.Get("defaultNamingContext")
doesn't work when I run it with an NT4 user account, on the command line of a NT4 computer account. The MsgBox display that the domaine is not operational.
"sinai.local" is an AD domain, having a bidirectional approval relation with the curren...
|
2 |
4/23/2007 2:00:54 PM |
|
how to note down files modify or remove action?
How to note down when ActiveDirectory user Create/Modify/Remove file on
server by WScript
now i use Auditing Policy to do the same thing,but i hope do that by wscript
and write the log to database.
please excuse me i am not good at english,hope can understand what i
meaning.
...
|
6 |
4/23/2007 5:12:01 AM |
|
How to ping multiple hosts via a script
Hi all.
I have some T1's that go over copper and Microwave.
I have devices that have both a copper span and a microwave span.
Our present tools have no capability for watching our T1's so in order to
try to identify if it is copper spans, or microwave spans, I am looking to
periodically ping my devices over a long period of time(say 6 hours or more)
and have the results sent to a file I c...
|
9 |
4/23/2007 5:01:15 AM |
|
create AD-PC-Account with given GUID per script
Hello,
is there a way to create computer accounts with given GUID's (by the
Hardware-Dealer) with a script?
--
thx,
Jens
--
...
|
2 |
4/23/2007 1:50:02 AM |
|
Login script not executing for WinXP SP2 clients!
On Win2003 Srvr assigning a login script via Group Policy that maps a drive
as follows:
Set objNetwork = CreateObject("WScript.Network")
objNetwork.MapNetworkDrive "M:" , "\\srvr1\mt4"
To assign I do the following:
1. Right-click on container and choose "Create and link a GPO here..."
2. Give name "mapdrive" and press OK.
3. Right-click "mapdrive" GPO object and choose Edit.
4. Navig...
|
3 |
4/22/2007 2:02:01 PM |
|
Login.cmd scritp doesn't run when user logon
There is a login.cmd script supposes to run to create network drives when
user logs on. The network is consist of 25 staff and few remote sites. User
logins in the morning successful without problem but the scripted network
drive doesn't appear in my computer. I believe is login using the cache
credential. Not sure what is happening there. Some people has not problem
and some people...
|
4 |
4/22/2007 6:13:06 AM |
|
script to copy user profile!!
hello everyone,
i am migrating users from one domain to another and have decided to
manually copy user local profiles to new domain. im using admt to
migrate user accounts only to new domain nothing else..i have created
a script pasted below. when i run this script it makes all relevent
directories but dosn't copy any contents from user's directories.
whats missing help!!
thanks in ad...
|
6 |
4/22/2007 2:41:43 AM |
|
Copy File to user's profile
I need to copy a config file to each user's Documents and Setting/Local
Settings. This is what I have so far,
Const OverwriteExisting = TRUE
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.CopyFile "\\Server\Share\LinkConfig\Config.ini" , "C:\Documents and
Settings\%USERNAME%\Application Data\LinkConfig\", OverwriteExisting
My main problem is getting the file to copy ...
|
2 |
4/21/2007 2:12:22 AM |
|
Win32_PerfRawData_PerfNet_Server.BytesReceivedPersec interpretatio
Hello to all:
I want to get using vbscript the average traffic in bytes per second from a
network card in a windows 2000 server and each time that I read the
BytesReceivedPersec from Win32_PerfRawData_PerfNet_Server class I get a
higher acumulative value. How can I interpret this? I mean, can I substract 2
samples and divide it by the time between the samples and to say that this is
t...
|
1 |
4/20/2007 8:26:02 PM |
|
Copy file with scheduled tasks
trying to create a scheduled tasks to copy a file from a remote server to a
local server.
I've mapped the drive to the remote server as Y:
Const OverwriteExisting = TRUE
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.CopyFile "Y:\Source\MyFile.txt" , "D:\Destination\",
OverwriteExisting
The file seems to copy, the file sizes match up, but when you try to open
the fi...
|
1 |
4/20/2007 3:38:32 PM |
|
How to ensure login script runs on client?
Need help understanding what security setting prevents my client login
scripts from running on WinXP SP2 workstations. When I run it manually I get
a security window that warns it cannot determine if it should be run, and
prompts me whether to allow it to run or not.
What setting do I clear to allow my login scripts to run?
TIA
rich...
|
8 |
4/20/2007 1:48:01 PM |
|
Login Script
Does anyone know of or have a script that i can use to display a login
message after sucessfull login? or example Welcome %DOMAINUSER%i am guessing
it is done in .vbs if so i need to get a rnage of scripts done that can work
on a per user basis for drive mappings and printer mappings etc also to
initiate redirects of history folders and cookies. could someone point me in
the drection as ...
|
5 |
4/19/2007 11:53:33 PM |
|
Getting started with Windows scripting
Hmm...wasn't sure if I should post this here or not, but figured I
would give it a shot.
I have always wanted to get better with scripting. I understand the
basics and have done some real basic scripts (logon/logoff stuff), but
nothing to where I feel I can say that I can 'script'.
I have never really been in a position to really do something that
required scripting.
With that, what a...
|
3 |
4/19/2007 8:35:24 PM |
|
find and replace to make new files
I have a project I need some help with.
This has to do with an internal security policy.
I need to take the existing, known working policy, find a the user's e-mail
ID and replace it with a new user's e-mail ID and finally name the file with
that user's Network logon ID.
I would be able to create a datasheet (ie in Excel) with the necessary
information...I just don't know the scripting th...
|
1 |
4/19/2007 6:44:40 PM |
|
Drop-down list on Active Directory
I used this script to give all users the same postal address.
Option Explicit
Dim adoCommand, adoConnection, strBase, strFilter, strAttributes
Dim strQuery, adoRecordset, strDN, objUser
' Setup ADO objects.
Set adoCommand = CreateObject("ADODB.Command")
Set adoConnection = CreateObject("ADODB.Connection")
adoConnection.Provider = "ADsDSOObject"
adoConnection.Open "Active Direc...
|
2 |
4/19/2007 6:07:57 PM |
|
exchange 2003 mobile services
Can anyone tell me of a script that will check to see if the Exchange Mobile
services on a user account is enabled/disabled.
thanks...
|
1 |
4/19/2007 2:06:03 PM |
|
detect a remote machine is reachable or not through vbscript
can anyone tell how can detect a remote machine is reachable or not through
vbscript.
many thanks for any advice.
--
Golden_au...
|
2 |
4/19/2007 1:03:33 PM |
|
Shutdown a virtual server
Hi,
If I use the vbs script to shutdown a virtual server 2003 (see also
http://www.microsoft.com/technet/scriptcenter/scripts/vs/default.mspx?mfr=true)
the Guest system doesn't shut down, because on the console there is a
messages bos with question:
"Application popup: Windows : If you shut down this remote computer, no one
can use it until someone at the remote location manually restarts...
|
1 |
4/19/2007 11:32:03 AM |
|
How to check whether the server is up in VBScript
Please do tell me how to check whther the url or the webserver is up and
running using VBScript
Thanks,
Jerry...
|
2 |
4/19/2007 2:13:56 AM |