|
server
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Scripting for Windows Servermicrosoft.public.windows.server.scripting
Remote Login from Script
Miztiik -
17 Mar 2007 5:00 PM - 7 messages
i have 11 Servers. Server1 to server10 are standalone servers Server0 can connect to all these 10 servers.[more like a domain controller] i want my script to be in Server0 and it has to connect to each server [same ...
Client Start Menu Using VBScript
Hiwj -
17 Mar 2007 1:36 PM - 1 message
I'm trying to create a custom start menu for different users when they logon at different locations. I've looked at 2 methods: Use VBScript to redirect the start menu (by changing local registry settings) to a server based pre-configured start menu. However, this isn't ...
How can I specify log/app pool settings when setting up new web si
kentiler -
17 Mar 2007 3:20 AM - 1 message
Hi, I have a script setup that will create a new app pool and service account for the app pool, ftp site, and web site that listens on a specific IP address. However, I can't find documentation on how to script the new ...
Scripting Newbie needs help
Pat Hall -
16 Mar 2007 11:14 PM - 7 messages
I get this error when I run my script form the command line csrcipt retrieve_TS_Profile_ISD.vbs). U:\MyFiles\MISC\AD_Scripts\VB_Examples\retrieve_TS_Profile_ISD.vbs(10, 5) Micros oft VBScript compilation error: Expected statement Code is: Const ADS_SECURE_AUTHENTICATION = 1 ...
vbscript to map network drivers and set default printer
David Allen -
16 Mar 2007 9:31 PM - 4 messages
I have a user who switches between offices I need to write a script that will set his drive mappings and switch his default printer depending on LOGONSERVER how can I do that? ...
Delete many users in Active Directory
Leo -
16 Mar 2007 1:34 PM - 6 messages
How can I delete many users in Active Directory? I have a txt file with all usernames that have to be deleted. I read below script but it is only for one user. Set objOU = GetObject("LDAP://ou=hr,dc=fabrikam,dc=com") ...
how to use this script
Miztiik -
16 Mar 2007 11:33 AM - 2 messages
i have this script from scriptomatic On Error Resume Next Const wbemFlagReturnImmediately = &h10 Const wbemFlagForwardOnly = &h20 arrComputers = Array("localhost") For Each strComputer In arrComputers WScript.Echo WScript.Echo "==========================================" WScript.Echo "Computer: " & strComputer ...
find server info
Miztiik -
16 Mar 2007 9:02 AM - 6 messages
i want a script, which will find the following information from the server and output it in a text file..with the server name MC Server Name Support Group Installation Status IP Address M/C Serial Number Machine Type Server Type ...
update Group Policy ADM Files Script
Miztiik -
16 Mar 2007 8:51 AM - 1 message
i am new to script i got this script from [link] i copied the script code and saved it as script.vbs file now how do i run this script ...
Whis is better
Miztiik -
16 Mar 2007 8:48 AM - 8 messages
i am new to scripting..i want to know which way to script is better windows batch scripting in DOS or VBScripting? ...
Getting number of DCHP Leases with WMI
Steven -
15 Mar 2007 6:29 PM - 4 messages
Does anyone know if it is possible to obtain the number of current DHCP leases using WMI? I can't find any info on this so far and there is no DHCP object listed in my WMI namespace list. ...
WOL Laptop clients SMS 2003 VBScript - a script to help manage laptops with WOL for SMS.
CPL -
15 Mar 2007 6:16 PM - 1 message
Original source taken Rob Kuehfus from then mutlitlated a bit to run on Windows 2003 as a schedueled background task for SMS 2003 to wake up the Laptop clients. I've changed the product to wolcmd.exe as wol.exe was a little buggy. Sorry about the header btw, if someone is ...
Delete and map network drive using VB script
Lino767 -
15 Mar 2007 2:43 PM - 3 messages
I wrote the following script to delete and map network drive. What I actullay want is to delete if the drive is mapped and map using the VP script, and also to map the drive if the drive is not mapped. Please check this script if ...
mkdir with date
tom.henricksen -
15 Mar 2007 2:06 PM - 5 messages
This script works echo off @REM Seamonkey's quick date batch (MMDDYYYY format) @REM Setups %date variable @REM First parses month, day, and year into mm , dd, yyyy formats and then combines to be MMDDYYYY FOR /F "TOKENS=1* DELIMS= " %%A IN ('DATE/T') DO SET CDATE=%%B ...
How do I remove a IIS folder that is locked?
codehead42 -
14 Mar 2007 11:16 PM - 1 message
Hi, I'm new here, sorry the subject isn't more clearer. Suppose you have a web app, and you want to delete it ( virtual folder & physical folder) -- i know this is a FAQ Here's the part I'm wondering about: ...
How to read a membership group of a current user logged in?
guillermo_bcn2 -
14 Mar 2007 3:14 PM - 1 message
Hi, How i can read a membership group of a current user logged in a server with a RDP session? and later compare if this user is a member of an specific group for present a information window... Thanks ...
set standards and formats
A. Stueber -
14 Mar 2007 2:12 PM - 1 message
Hello NG! my goal: based on the value HKCU\Keyboard layout\Preload\1 I want to set all values for "Regional Settings / Standards and formats" automatically. Example: If HKCU\Keyboard layout\Preload\1="00000809" then set ALL values for "Standards and formats" for "English (United ...
query AD for disable date
Ant000 -
14 Mar 2007 12:09 PM - 1 message
Hello, Is it possible to query Active Directory to find out the date an user was disabled? Does exist any field in the schema that content this information? I would like to do this in ASP (vbscript) Thanks! ...
batch to rename files
hook.steven -
14 Mar 2007 10:27 AM - 5 messages
Hi, We're using an automated work flow system to process files for print, at one point it has to send files to another program for further processing. To do this the files have to be re-named from a ...
Connection on a AD domain via scripting
Oriane -
14 Mar 2007 8:35 AM - 1 message
Hi there, Suppose I'm connected on a computer in a NT4 domain. I want to connect on a AD domain with a bidirectional approval relationships for, say, get the domain controllers of this AD domain. What parameter do I have to pass to GetObject in the following script: ...
wirte country attribute for AD user account
Golden_au -
14 Mar 2007 2:10 AM - 4 messages
hi I use objNewUser.Put "co", "Australia" to set the country/region but it do not display on the user properties address screen, I have to use objNewUser.Put "c", "Au" then it work. my question are 1. is there anything wrong in my first statement ...
Modifing IIS metabase with scripting
HermanW -
13 Mar 2007 9:59 PM - 2 messages
I am new to scripting but i need to find out how to write a vbscript to uncheck "Anonymous access" and check "Intergrated Windows authentication" in IIS. I cant't seem to find a list of all Metabase objects(objIIS.*). I also ...
LastLogon
Lamborghini -
13 Mar 2007 9:26 PM - 5 messages
Hi All, I am in the quest of getting information of stale objects and accounts in AD. Since the LastLogon attribute of the User object does not get replicated and I am having problems with the lastLoginTimestamp attribute, I am having ...
LastLogonTimeStamp
Lamborghini -
13 Mar 2007 9:21 PM - 2 messages
Hi, I am trying to get rid of the 'stale accounts' in our Active Directory. I read about the LastLogonTimeStamp from The Scripter Guy or Scripting Center at [link] ...
Need VbScript
james brady -
13 Mar 2007 8:53 PM - 6 messages
I need a vb script that will scan all the computers in my domain and return the sytem time. It would be nice to export the computer name and system time directly to excel. A DOS script would also work. ...
Monitor SubFolder Creation in Multiple Folders
Highlander -
13 Mar 2007 8:12 PM - 2 messages
Hello all. Consider the following script: strComputer = "." Set objWMIService = GetObject("winmgmts:" & _ "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") sDir = "C:\Test" sDir = Replace(sDir, "\", "\\\\") Set colMonitoredEvents = objWMIService.ExecNotificationQuery _ ("SELECT * FROM __InstanceCreationEvent WITHIN 10 WHERE " _ & "Targetinstance ISA 'Win32_SubDirectory' and " _ ...
Fodler Redirection
Jeff -
13 Mar 2007 6:46 PM - 1 message
I would like to redirect users' My Documents to a file server; however, I do not want to redirect the various special folders (My Music, My Videos, etc). The folder redirection GPO only allows sxcluding of My Pictures. Is there a ...
VBS works on Client, Not on Server
robboll -
13 Mar 2007 6:39 PM - 9 messages
I am able to run some VBScript on my workstation but am unable to run it on the server. No errors. It simply doesn't respond like it does on my workstation. Is there something I need to turn on on the ...
Create Folder and Amend ACL's
Simon G -
13 Mar 2007 5:29 PM - 2 messages
Hello all, I am after a script / batch file. Where by it prompts you for the samaccountname, then a server/folder and create an account and amend the ACL of it.... Something like this.... 1. Prompt for user id - enter "USERID" ...
How to add more than 65 workstations to a Users "log on to" proper
Darren -
13 Mar 2007 4:48 PM - 1 message
I am trying to restrict a user to log on to 75 workstations. Problem is that when i hit 65, it gives an error saying that this property is limited to 64 values. Is it possible to use a script to add more than 64 vaules to this ...
Audit Exchange Mailbox Permissions IMailboxStore
Jamestechman -
13 Mar 2007 3:46 PM - 3 messages
I'm using the script listed in [link] to query all users that have access to a certain mailbox. However, this works by specifying the dn for each mailbox you wish to query. I ...
Set-Mailbox -EmailAddresses
Louis_Göhl -
13 Mar 2007 12:43 PM - 2 messages
Hi, I want to use the following cmdlet: Set-Mailbox -EmailAddresses <ProxyAddressCollection> Can anyone tell me what the syntax is if I want to specify more than one email address? Thanx, Louis ...
Move a client computer to specified OU
Move a client computer to specified OU -
13 Mar 2007 11:56 AM - 2 messages
I want to automatically move a computer to a specified OU when the computer join the domain. ...
List of all parameters for objuser
Mike Matheny -
12 Mar 2007 9:49 PM - 2 messages
I am trying to write a script that will enumerate all users in a group, and I need to get the domain they belong to also. I cannot find how to get the domain with objuser. ============ 'on error resume next ...
Script to check off the Automatically adjust clock
Rick -
12 Mar 2007 4:25 PM - 2 messages
I am looking for a script to go in to a remote machine(s) and check off the "Automatically adjust clock for daylight savings changes" Thanks in advance Rick ...
Check for reg entry and run cmd if not there
Brandur Holm Petersen -
12 Mar 2007 4:13 PM - 2 messages
I'm new to vbs scripting. Just used batch scripting. So here goes... I vould like to check for a string in the regestry ([HKEY_LOCAL_MACHINE\SOFTWARE\Føroya Fróðskaparfelag\Stavarin]), if this string is there then exit, but if it's not there, then call a batch file or ...
Find last restart time
George -
12 Mar 2007 2:06 PM - 2 messages
Hello, Please help me to find the 'last system restart time' for a group of servers in Windows 2003 AD using VB script. At present we are using 'net statistics ' command to find the last restart time in each servers. ...
Batch script reading registry
Xavi Rodríguez -
12 Mar 2007 11:34 AM - 2 messages
Hi, I'm using this script in GPO on Windows XP machine's. I want to read a registry value to know the last user logon in a machine but the value of AltDefaultUserName isn't stored in the var. ...
Outlook email signature
Willie -
12 Mar 2007 10:03 AM - 1 message
I have put together a script that produces a standard signature by gathering information from Active Directory. It works well but the problem now is that some people in our organization use stationary themes. This causes the background of the email to be filled up with teddy bears for example. ...
Office 2003 shortcut problems
Yobbo -
11 Mar 2007 6:08 PM - 2 messages
Hi All I hope you can make sense of this!! Basically our school has a suite of PCs running Office 2003 standard and a number of classroom PCs running Office 2003 professional. They all link up to a Win2003 server active directory/gpo setup and use ...
A script that can collect patch information ???
Mike -
11 Mar 2007 7:36 AM - 2 messages
Hello, In my job, I have to put the following information about windows updates into a spreadsheet each month: patch code - description - install date I have to go to microsofts site, look up the code, and copy and paste the ...
I m looking for a script that can ...
Mike -
11 Mar 2007 7:31 AM - 1 message
I am looking for a script that will put the drive letter and amount of free space on that drive in a spreadsheet in 2 separate columns. Sometimes it has 1, 2, or 3 drives and sometimes the drives don't start with ...
How can I create script that will put event logs into excel?
Mike -
11 Mar 2007 7:25 AM - 2 messages
I am looking for a script that will collect event logs between certain dates and only collect the error number and its description and put those in columns 2 and 3 respectfully in an xls file. I would also like the script to fill column 1 with the name of the log it ...
|
|||||||||||||||||||||||