|
Delete all occurences of a file
Is it possible to delete all occurences of a particular file on the local c:
drive when a user logs on? Mayby pipe the dir/s command to a file or
something like that?
Thanks.
...
|
2 |
6/19/2007 12:12:16 AM |
|
Win32_PerfFormattedData_PerfOS_Processor
Hi,
I'm trying to use WMI to calculate cpu usage. I'm running the
following script into a W2K3 box. It works fine, but I had some doubts
about the values that I receive.
Reading MSDN (http://msdn2.microsoft.com/En-US/library/aa394271.aspx),
it tells that PercentProcessorTime "This property was designed as a
primary indicator of processor activity". Ok, but I want to break it
into user t...
|
1 |
6/18/2007 5:49:14 PM |
|
Need to check for running services
I am trying to devise a script that will run against a remote server to
check the status of Services that are set to start on boot (automatic). I
have been looking at the sc.exe utility. It looks promising using the query
or queryex switch, but it only shows the running services.
Actually what I could use is a script that checks for boot services that are
NOT running (stopped). I need t...
|
7 |
6/18/2007 3:14:09 PM |
|
Logon Hours
I manage a Windows NT network and use User Manager or a Net User command to
change a users logon hours, however I'm looking to see if it possible to do
this via vbscript.
I've done various searches on the internet and found scripts to do different
things to a user account except change their logon hours. The nearest I've
got is to either copy another users hours or read and display the ...
|
7 |
6/18/2007 12:27:32 PM |
|
Getting a List of User's folders on Exchange
I need to get a list of all of my users and the folders that are in their
mailbox.
For instance:
Mailbox - New User
Contacts
Employees
Inbox
Sent Items
Calendar
etc.
Is this possible? If so, how?
Thanks!
...
|
1 |
6/17/2007 5:57:06 PM |
|
Writing to Public Folder
I have a public folder, named "staff", that contains contacts. I'd like to
set up a script to do the following each night:
Remove all the contacts in the public folder named "staff"
Read from an Excel (or CSV) file and write the records as contacts into the
"staff" folder.
This will prevent staff from having to do double entries.
Can someone please point me into directions on how ...
|
1 |
6/17/2007 5:55:29 PM |
|
Telling IE to delete cookies/form data/temp files ?
Hello everyone,
I was wondering whether or not I can use a script to tell "internet
explorer" (we have Windows Vista) to delete either its cookies, its form
data, or its temporary files. If so, where could I get a description of the
"objects" and "methods" that are used to do this ?
It would be great if I could, then I can put it into task scheduler.
I'm new to all of this and am t...
|
3 |
6/17/2007 8:32:00 AM |
|
Setting servers to GMT (ZULU) Worldwide
We want to set all of our servers Worldwide to GMT. I know I can write a
script to change the local offset to GMT to 0 thus setting the time to GMT,
but it leaves the time zone as whatever it was set to previously and does not
change it in the Date/Time Control Panel.
I was hoping that there was a way to set the time zone in the Control Panel
to GMT programmatically. Has anyone done t...
|
2 |
6/17/2007 12:49:14 AM |
|
Set Domain Name.
Currently I am working on a script to setup new PC's for our network. So
far I have a working script that sets up the network addresses, what I need
though is a way to set the Domain Name.
I have looked around on the net and cant find an answer to what I'm looking
for, so hopefully someone here can help.
So far my script is fairly basic, essentially just running a bat file (not
bein...
|
4 |
6/16/2007 7:41:00 PM |
|
Listing all memebers of a group
hello - i am studying wise scripting. I got the script in VBS to show all the
members of a group, but i cannot make it function in command line. I'm trying
to run a DSquery of the ldap server with the correct cn, ou, and dc
following. It keeps giving me an error that the path is incorrect, even
though i am copying it directly from my VBS script which seems to grab all
the correct info. C...
|
2 |
6/15/2007 1:29:01 PM |
|
Script To Delete Home Drives, Profile and Terminal Services profil
Is there any script that would allow to prompt for the netbios name of a user
and then read Active directory and then go to the Servers of the profiles and
completely remove the user's Home drive, Profile and Terminal Services
Profile. I have had a look but there is nothing at all I can find.
Any help would be appreciated
Gary...
|
3 |
6/15/2007 9:44:01 AM |
|
If, Else If unable to get it to work
I found this code here:
http://www.tech-forums.net/showthread.php?s=&threadid=138872 which I'd love
to use, but it has all sorts of weird chars in it. Since I have close to zero
(very close) knowledge here I'd greatly appreciate it if some one could clean
it up.
I basically want to run a given program if the first argument is true,
something else if the 2nd and if not, then something ...
|
9 |
6/15/2007 4:07:52 AM |
|
Elevated system rights?
Hi,
I'm playing around with scripting, specifically scripting to get inventory
information from a desktop computer. I'm using the scripts provided on a
Microsoft technet page. I'm trying to inventory a remote computer but I
find that if I run the script as administrator it works fine but if I try to
run the script as a standard user I get an access violation error message.
Is it po...
|
2 |
6/14/2007 8:26:45 PM |
|
System inventory setup?
Hi,
I was reading an article on the MS web site about how to use scripting to
get information from remote computers. Their example was for inventory of
the hardware and software of a given Windows 2000 or XP system.
I would like to adopt this technique but instead of just displaying it to
the screen I'd like to dump the information into a database. I typically
use Visual Fox Pro an...
|
1 |
6/14/2007 3:10:22 PM |
|
_passés_en__ligne_de_commande
Bonjour,
je souhaite savoir comment on récupère les arguments passés à la ligne de
commande en VBScript?
Merci bcp
--
Guillaume
TECHNICIEN MICRO/RÊSEAUX...
|
2 |
6/14/2007 1:41:00 PM |
|
Script to remove Exchange Mailbox
Can you see anything wrong with this script?? I can get it to run when only
having one server but we have 4 which is causing me the problem.
Any help appreciated
Const ForReading = 1
Const ADS_NAME_INITTYPE_GC = 3
Const ADS_NAME_TYPE_NT4 = 3
Const ADS_NAME_TYPE_1779 = 1
strUser = InputBox("Enter User Name")
strDomain = "My Domain"
Set objTrans = CreateObject("NameTranslat...
|
1 |
6/14/2007 1:13:01 PM |
|
script to update group policy
Hi to all,
I have 100 windows 2000 workstation that work with workgroup and not domain.
I want to configure this workstation by group policy -(not change time and
date, and not "HAVE the RUN"
How can I do that by script that can send it to all this workstation?
thanks
...
|
1 |
6/14/2007 11:45:08 AM |
|
WMI listing processes and user as login user not admin local
the problem is - i will look on a terminal server as a user not as a admin,
who runs as examble the internet explorer. but the script showns me my own
explorer but not the name of the user which opened the internet explorer at
this terminal server.
i see the count of the users but not the names.
see:
strProcess = "iexplore.exe"
strComputer = "."
Set objWMIService = GetObject("winmgm...
|
1 |
6/14/2007 8:30:00 AM |
|
Log Folder Security
Hi,
does anyone know a tool to read the NTFS folder security settings.
I want to know which security has which access to a folder.
...
|
1 |
6/14/2007 7:17:43 AM |
|
Scripting for Exchange 2007
How do i get the following cmdlet recognised using powershell get-mailbox...
|
3 |
6/14/2007 1:43:02 AM |
|
Script to remove user from All Groups in AD
Hi
Can anyone find why this doesn't work?
Const ForReading = 1
Const ADS_NAME_INITTYPE_GC = 3
Const ADS_NAME_TYPE_NT4 = 3
Const ADS_NAME_TYPE_1779 = 1
Const ADS_PROPERTY_DELETE = 4
Const E_ADS_PROPERTY_NOT_FOUND = &h8000500D
dim strUser, strDomain, strUserDN
dim objTrans, objUser, objGroup
strUser = InputBox("Enter User Name")
strDomain = "Globalinfra"
Set objTrans = C...
|
2 |
6/13/2007 2:05:40 PM |
|
lastlogonTimeStamp Script... Works but...
Ok well here is my script. It works sort of... What I would like for
it to do it get the lastlogontimestamp for every user in the domain.
It works if I add - On Error Resume Next - putting this in either
skips the record that does not have a lastlogontimestamp or uses
outputs the same timestamp from the previous user account.
If I leave it out I get the following error - (33, 4) Active
Dir...
|
2 |
6/13/2007 1:52:38 PM |
|
Really Hard Scripting
Still a vbs beginner and been struck with a major scripting task
The script I need to write is as follows:
1. I need to prompt for a netbios name. When entered it will remove them
from all the groups they are in in the Active Directory Member Of tab.
2.Once this is done then it will search the user's Attributes and find the
Profile Path, Home Drive Path and Terminal Services Profile Path. T...
|
1 |
6/12/2007 2:54:01 PM |
|
Need Exchange Script.
Is it possible to create a script that will run at user logon to create a
Profile within exchange configured to the right exhange server and mail
account.
What I am looking for is a way that when a users log's on, the mail settings
are pulled from AD, so that when they 1st load Outlook it loads their
mailbox based on username.
EG. If I logon as 01as, the script checks for my mailbox...
|
2 |
6/12/2007 2:08:57 PM |
|
Monitor share access
Hello again.
Does anyone know of / have a script which can log the users that are
accessing shares on a server? just like the shared folders snap in with mmc,
but something that i could leave running for a week and would create me a
nice text file of all the connection made?
thanks...
|
1 |
6/12/2007 1:19:03 PM |