|
AD Audit
Hi
How can I track changes to AD objects - users, groups, computers, etc? Can
someone, please, give me some starting points?
I am looking for scripting it myself.
Thanks
Best wishes
Iyer...
|
1 |
13.07.2007 09:36:00 |
|
Authentified Connection to an active directory
Hello,
I have a problem to establish an authentified connection with an active
directory. My code :
Private Sub CommandButton_Click()
Const ADS_SECURE_AUTHENTICATION = 0
Dim uid As String
Dim pwd As String
Dim LDAPString As String
Dim LDAP As IADsOpenDSObject
Dim obj As IADs
uid = "saucisson47@domain.fr"
pwd = "mypassword"
LDAPString =...
|
1 |
13.07.2007 09:14:02 |
|
Remove users with @xyz email attribute from all groups in an OU
Hello All,
I am new to scripting and fairly new to AD so please be patient with me :-)
We have recently sold a company. They still use resources in the forest for
exchange. I am being asked to remove all employess of this sold company from
all d-lists/groups so that they may no longer receive mail intended for
current employess only. All of the groups are in the same OU, and the
com...
|
1 |
13.07.2007 03:02:02 |
|
Exchange Users across several exchange servers
Hi all,
We have about 40 exchange servers with a lot of users spread across them. As
part of a clean up process, we need to extract the mailboxdata from all of
the servers and import into excel.
I have tried several different scripts to manage this, but keep on running
into a brick wall. At this stage I sit and do this manually on all the
servers.
Please can someone help me with ...
|
2 |
13.07.2007 01:40:53 |
|
what is shell running in windows server 2003 64bit?
i want to know what shell is running in windows server 2003 64bit environment.
Powershell or not?
does vbscript and batch scripts written for 32 bit work here in 64 bit?...
|
2 |
13.07.2007 01:38:39 |
|
Export All Active Directory Group memberships to a .txt file
Not sure how to do this any suggestions.
not really a programmer.
...
|
2 |
13.07.2007 00:01:16 |
|
Scripting ADSI and Sub Domains Question
Hello,
My issue is one that I have not experienced previous to now, but also I
cannot remember if I have ever tried this before or not so...
Anyway, here is the dilemna. I am creating a script to output the group
membership of a user. This is the easy part and the script is functional for
that (for the most part). The issue arises because I have to write the
script to choose eithe...
|
4 |
12.07.2007 21:49:58 |
|
Changing owner of Dist List
I have a number of DL's that I need to update the managed by field. All the
DL's are located in the same OU. The script I am using is the following
Set objGroup = GetObject _
("LDAP://cn=Scientists,ou=R&D,dc=NA,dc=fabrikam,dc=com")
objGroup.Put "managedBy", "cn=MyerKen,ou=Management,dc=NA,dc=fabrikam,dc=com"
objGroup.SetInfo
First the script is generating a "dn syntax" err...
|
2 |
12.07.2007 20:02:10 |
|
Take ownership of files
Hello, I have a drive that all users used to have read/write rights to.
They had this permission via membership in a group. Now I want them to only
be able to read from the drive so I've moved all users into a read_only
rights group. The problem is that users can still write to the disk via the
default CREATOR/OWNER permission that was originally given when they created
the files.
I...
|
1 |
12.07.2007 18:52:58 |
|
Globally add printers
sI have been using a bat file to add printer globally to work station
computers in school computer labs. This has worked just fine on Windows OS
2000. It doesn’t work on XP machines. Is there a script that can replace it?
Or can it be changed so it will work on Xp machines.
The bat file is:
rundll32 printui.dll,PrintUIEntry /in /q /n \\sever_name\printer_name
rundll32 printui.dll,Print...
|
3 |
12.07.2007 18:02:02 |
|
setprinter command
has anyone used the setprinter command?
i want to be able to use it to point printers to another driver so that i
can delete the current driver they are currently using
I cannot delete the current driver because it says it is in use
has anyone had any experience with this
thanks
don
...
|
4 |
12.07.2007 16:22:06 |
|
Blocking access to websites?
How would I write a script to block access to youtube, etc. on my
workstations? I run Windows Server 2003. Thanks in advance....
|
1 |
12.07.2007 14:14:02 |
|
List of Users in AD saved to Excel
I am trying to write a script that will give me an Excel Spreadsheet of all
of the users in a particular OU and all of it's sub OU's. I'd like for the
Output to include the Distinguishedname.
Here's what I have so far. I can't find directions on how to get it to
write to Excel instead of a text box on the screen. (Also, when I run this
I get the person's name to show up, if I change ...
|
4 |
12.07.2007 11:49:14 |
|
Newbie - Need to ping..!.
Hi All,
I need to read a file with computer names in, issue a ping to those
computers and write back to a file (or the same file) on the success or
failure of the ping..
My scripting guy has swan'ed of to Oz on hols and I could really do with a
dig out..
any pointers are very very welcome
many thanks
Andi
...
|
4 |
12.07.2007 11:00:00 |
|
2000 uptime
Script shown below returns up time value on a Win 2000 system in minutes.
Can someone help me with the code to show days instead of minutes?
Thank you very much
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colOperatingSystems = objWMIService.ExecQuery _
("Select * from Win32_OperatingSystem")
For Each objOS in colOperatingSyst...
|
4 |
12.07.2007 10:08:34 |
|
How to get the pid of the current running script and parent proces
Sorry, I am not a power shell user (YET). I am using cscript
I have tried the following and it did not work for the oShell.ProcessID.
When I exec the process, it returns the PID.... Why?
How do I get the current process ID, so I can perform actions on all of the
processes in the system but the current process AND some of the other
selected processes like windows itself etc.
va...
|
2 |
12.07.2007 01:04:34 |
|
newbie: dsquery question
dear scripting gurus,
i have a root domain with 3 childdomains.
bigroot.com
bigeast.com
bigsouth.com
bignorth.com
if i start dsquery (dsquery user -name johnx) for a user on
bignorth.com on a member server on bigroot.com, dsquery can not find
the object. is it possible to run dsquery on a bigroot-member and
find
objects on the child-domains ?
thanx alot
tim
...
|
1 |
11.07.2007 21:03:29 |
|
64 bit
hi
i need to write a vbscript to check on some os settings and logs on a 64 bit
machine.
Will the same same queries built for 32bit work for 64 bit windows...
|
1 |
11.07.2007 12:04:02 |
|
CAPICOM - How to access Certificate Store remotely?
Hi all,
I need to check the expiration date on certs installed on remote servers. I
have a code for checking the local store, but I can't find a way to access
Certificate Stores remotely. Is it supported? How can I do this?
Thanks a lot!!
Luci....
|
1 |
11.07.2007 06:28:02 |
|
EnumLocalGroup.vbs - how to enumate all groups
I was looking at the "EnumLocalGroup.vbs" script on Richard Mueller's
site. The description indicates that it can be "It can be revised to
document membership in any local group."
What would I need to change to have it enumerate any group?
' Bind to local Administrators group.
Set objLocalGroup = GetObject("WinNT://" & strComputer _
& "/Administrators,group")
I know that the ab...
|
2 |
10.07.2007 23:05:46 |
|
nested group not getting mapped drive
I have a script that basically maps drives and printers based on domain
local groups. Its using the winnt provider which I think should support
nested groups.
SO I created one group with some users in it. The script maps drivers and
printers based on this group. Then I greated another group and put it into
the first group. Now the users in the second group are not getting mapped
drive...
|
6 |
10.07.2007 19:11:57 |
|
Enumerate uses in ad from text file
I have a list of users in a CSV file that I need to go through AD and
see if they have an email address. Is there a way to do this with a
script?
thanks
Rick
...
|
6 |
10.07.2007 18:56:14 |
|
create new admin account
Hi,
does anybody know a script which creates an admin account with password on
every machines of the network?
Thanks for help!...
|
1 |
10.07.2007 13:18:04 |
|
Purge Old Files
Hi
I have a script here that delete old files from a Windows 2000 server and
keep a log of what been deleted by a log file created but
it does not work on XP or windows 2003 server.
On the windows 2000 server - i run the file like this cscript scripname.vbs
Please can you help me get this working on a xp and windows 2003.
Error message it get is this
D:\test>cscript test.vbs
...
|
3 |
10.07.2007 10:44:05 |
|
Running slmgr.vbs results error 80041010. Any idea?
When running that script, with any parameter or no parameter,
it stops with with that error code, indicating a problem in line 328
5th char. This script comes with the KMS package for W2K3.
As much as I can tell from looking into the script, it looks to me
that the line#\char.position are made of thin air (bogus)
The built-in WSH is still version 5.6. Does it require a highier
version an...
|
1 |
09.07.2007 22:47:17 |