Home All Groups Group Topic Archive Search About



Scripting for Windows Server

microsoft.public.windows.server.scripting
Score Find users who have not logged in in the last 30 days
Shiloh - 13 Apr 2007 8:14 PM - 3 messages
Please help me, I need to find all the users in our domain who have not logged into the domain in the last 30, 60 and 90 days. Is there any script I can run to see this info or does anyone have advise on ...
Score Check if computer is online
Tim Kelley - 13 Apr 2007 7:21 PM - 3 messages
I have a script that queries AD for all computers and loops throught the list of names and querys each computer.  Is there a way to check if the computer is actually turned on.  I want to be able to skip PCs that are not ...
Score Problem getting newly created user accounts enabled and password n
Joe - 13 Apr 2007 7:14 PM - 2 messages
Hi guys, I've been trying to get this vbscript from Scott Lowe, modified so that I could get a list of AD users created from a csv file. The goal I'd like to attain is to have the newly created acounts enabled, passwords populated, ...
Score list user who has particular terminal service home directory value
strongline - 13 Apr 2007 2:24 PM - 3 messages
Sorry I posted this in terminal service group already while I should have cross-posted at the first place. There are enough sample on how to set terminalServiceHomeDirectory for a particular user, now I want the reverse: I have a path value, I want to find out who is using it as its ...
Score Listing members of Group with >1500 members
Umesh Thakur - 13 Apr 2007 6:54 AM - 5 messages
I have couple of groups with more than 1500 (some group have 2000+). I need to get the list of members and be able to a Text file. I tried first using DSQuery to list the DNs og members, using following command: ...
Score Identify "Account Unknown" Profile
shekkee - 13 Apr 2007 4:04 AM - 3 messages
Hi, I m working on a script to search for "Account Unknown" in the system and delete its profile from the system. But I couldn't find anything about this "Account Unknown" even from the registry. Does anyone know how should I identify which profile is belong to Account ...
Score There are currently no logon servers available to service the logon request - how to fix this error?
Daniel - 12 Apr 2007 10:02 PM - 2 messages
There are currently no logon servers available to service the logon request - how to fix this error? i get it when trying to access a share one hop away. here is port scan from the machine i am using to try to access the share of ...
Score Checking printers exist
Bebarce - 12 Apr 2007 9:26 PM - 2 messages
I've created a fairly simple script and set it into the All Users Start up directory Set objNetwork = CreateObject("Wscript.Network") objNetwork.AddWindowsPrinterConnection "\\printserver\OldPrinter", true objNetwork.RemovePrinterConnection "\\printserver\Oldprinter", true, true objNetwork.AddWindowsPrinterConnection "\\printserver\NewMainPrinter", true objNetwork.AddWindowsPrinterConnection "\\printserver\NewBackupPrinter", true ...
Score Using WMI to disable a user account
Paul - 12 Apr 2007 8:36 PM - 4 messages
Hi, I want to use a WMI script to disable a user account. Here's the test code I'm using: compName = "localhost" Set wmi = GetObject("winmgmts:{impersonationLevel=impersonate}!//"& _           compName & "\root\cimv2") ...
Score recycle windows service
ersimpso - 12 Apr 2007 12:10 AM - 3 messages
I would like a script that will recycle a windows service. Do I have to use a script that stops then starts the service? All so I would like it to check the status of the service to make sure it ...
Score Script to find if the automatically adjust clock for daylight saving changes is checked
Tim Kelley - 11 Apr 2007 8:37 PM - 4 messages
Is there a script I can run that will tell me if the automatically adjust clock for daylight saving changes checkbox is checked or not? ...
Score Domain User Local Admin
Dummie - 11 Apr 2007 10:40 AM - 2 messages
Hi, I am looking a Longon Script that looks for logon user in the local users of the PC  and if does not exist, create it with local admin rights in the PC. Regards ...
Score Need WMI script
Sriman - 10 Apr 2007 6:36 PM - 13 messages
Hi,   Due to unavailbility of .net framework in our production servers(no permission to install the .net framework). i am planning to convert my .net code to vbscript.    Any one can give the equilent vbscript of the following .net code. ...
Score Changing DNS entries
Patrick Matthews - 10 Apr 2007 5:08 PM - 4 messages
I'm looking for ideas on how I can change DNS entries on roughly a 1000 servers. Any ideas would be great ...
Score AD User in Groups
Luiza Fontes - 10 Apr 2007 3:18 PM - 2 messages
Hi! Please helpe-me! I used this script model and it functioned: Const ADS_PROPERTY_APPEND = 3 Set objGroup = GetObject _     ("LDAP://cn=Atl-Users,cn=Users,dc=NA,dc=fabrikam,dc=com") objGroup.PutEx ADS_PROPERTY_APPEND, _     "member", Array("cn=MyerKen,ou=Management,dc=NA,dc=fabrikam,dc=com") ...
Score Event log check
George - 10 Apr 2007 10:28 AM - 5 messages
Hi , I am running a script to find the event log errors for a group of servers. -------------------- Const ForReading = 1 Const ForAppending = 8 Const CONVERT_TO_LOCAL_TIME = True Set objFSO = CreateObject("Scripting.FileSystemObject") Set dtmStartDate = CreateObject("WbemScripting.SWbemDateTime") Set dtmEndDate = CreateObject("WbemScripting.SWbemDateTime") ...
Score File creation date. No change?
Tec92407 - 9 Apr 2007 9:30 PM - 2 messages
I have a vbscript script that archives a file by moving it to an archive folder, before ftp downloading another version of the file. When the file is archived, its moved from the download folder to the archive folder and ...
Score Deleting computer accounts in AD
Bankos - 9 Apr 2007 6:50 PM - 4 messages
I'm working on modifying a program my company uses to generate new computer names for AD.  I'm struggling with the portion of the script that does the actual deletion of the account from our active directory structure.  I'm ...
Score Writing to a txt file...
Les - 9 Apr 2007 5:25 PM - 2 messages
I want to run a vbscript to get the serial number of a PC (Scriptomatic does a good job for this). Instead of echoing the SN back to me on screen though I want to have it parse to file in the format: ...
Score Date Format
George - 9 Apr 2007 12:24 PM - 2 messages
Hi , I am running a script to find the last reboot time of servers. Please find the part of the script: -------------------------------- Set colOS = objWMIService.ExecQuery _    ("SELECT * FROM Win32_OperatingSystem")    For Each objOS in colOS      objTextFile1.Writeline arrServiceList(0) & vbtab & objOS.LastBootUpTime ...
Score echo <key> | application
joe.user0@lycos.com - 8 Apr 2007 6:13 PM - 3 messages
How do I pipe a key (carriage return, F3, escape and so on) to an application? ...
Score GPO logon script
Art - 8 Apr 2007 2:24 PM - 3 messages
I would like to have a GPO logon script to map printers based on the classroom where the computer is located.  I have students that move from room to room and would like to map the printer for the room that they are in.  I ...
Next »