Home All Groups Group Topic Archive Search About



Scripting for Windows Server

microsoft.public.windows.server.scripting
Score SNMP Script
SNMP - 25 Feb 2006 11:37 PM - 3 messages
Hi everybody, could you say me where I can to find one script to assign new new settings configuration for 100 servers (more or less) via script ??? Actually I don't know as I would like it to do it :( ...
Score Replication of LastLogonTime & LastLogOffTime field.
Lion - 25 Feb 2006 1:29 AM - 6 messages
Could anyone tell me if the LastLogonTime & LastLogOffTime field is replicate across DC's in Windows 2003 Native mode. I want to write the script to tell me Last logon and last logoff for users in AD but I want to know if I still have to do the same thing I did in NT4 ...
Score [MSH] But with auto-complete with clear-host
Keith Hill [MVP] - 25 Feb 2006 1:02 AM - 4 messages
FYI "clear-h" does not auto-complete to clear-host.  In fact if you type "clear-" and cycle through the various commands clear-host isn't to be found. ...
Score [MSH] Configuration property set
Keith Hill [MVP] - 25 Feb 2006 1:00 AM - 3 messages
I was watching the TechEd webcast on MSH (good presentation BTW) and I saw something that doesn't seem to be supported anymore.  What is up with the Configuration property set?  The slides showed this example: gps | format-table Configuration -auto ...
Score Trust Relationship Question
Luiz - 24 Feb 2006 5:09 PM - 5 messages
Hi, one question: I have 2 domains, for example test.net and test.com, and there is a trust relationship between them. In test.net there is a user named X. If the X wants to use some resource in ...
Score MSH analyzer - a new way to interact with MSH
klumsy - 24 Feb 2006 5:26 AM - 9 messages
I just put together a small app to host MSH in a way that you can easily edit a larger body of text, then highlight what you want and press f5 to run it, in a similar way that you can in other tools such ...
Score Change active directory computer description to local computer description
gbowen - 24 Feb 2006 4:33 AM - 3 messages
I am trying to get a script that will change the computer description in AD to the local worstation's description... I have found a few scripts but none of them work. Here's a copy of the latest one that ...
Score hosting MSH - need help - [MshSecurityException: AuthorizationManager check failed]
klumsy - 23 Feb 2006 9:41 PM - 3 messages
I have successfully hosted MSH inside sql server 2005 user defined functions and can get it to do alot of things, however when trying to do certian things, i get MshSecurityException: AuthorizationManager check failed errors here is an example: A .NET Framework error occurred during execution of user defined ...
Score getting pipeline data with a snapin?
klumsy - 23 Feb 2006 8:43 PM - 7 messages
dear monad gurus, with standard windows apis i can easily get the console (msh.exe) output text, however when i host a MSH runspace in my own application (i.e the monad hosting 2 example), i can access the final pipeline as an object.. do ...
Score Is there a way to query a DHCP server to get a list of MAC addresses?
mike_z@excite.com - 23 Feb 2006 6:50 PM - 8 messages
Q: Is there a way to query a DHCP server to get a list of MAC addresses? I would like to do this so that I can wake everyone up when I want to do WSUS updates weekly.  I can manually create/update the list of MAC ...
Score Getting number of real processors
Rubens Luque Sanches Jr. - 23 Feb 2006 5:05 PM - 3 messages
Hi, How can I get the number of the real processors in the machine g ? I don´t want to consider hyperthreading. thanks Rubens ...
Score [MSH] Get-Process Default Argument Values for -Input
DontBotherMeWithSpam - 23 Feb 2006 4:05 PM - 5 messages
While going over "Parameters" section of "get-help get-process", I have noticed that "-Input" parameter doesn't have a default value, while other parameters(-ProcessName, -Id) are defaulted to "null" specifically. Was the default not even set to null intentionally or was it by design? ...
Score OS version if statement fails
stev379 - 23 Feb 2006 3:21 PM - 4 messages
I'm using an if statement to quit a script if the OS is not XP.  However, the script is stopping even if the OS is XP.  I've tested with wscript.echo to verify what the script sees the OS as, and that works without error. ...
Score CredentialAttribute
Luis Abreu - 23 Feb 2006 9:14 AM - 9 messages
Hello guys. I was wondering if anyone could provide me with some info on what's the purpose of this attribute. It looks like it's used to get the credentials form a user but i still don't understand how it could be used on a property exposed ...
Score MessageTrackingEntry Help Needed
Riggs - 22 Feb 2006 6:45 PM - 2 messages
Trying to get a list of messages that are sent on a given day for a given mailbox account.  With the following script I don't get any results or errors.  Any ideas? On Error Resume Next strComputer = "servername" ...
Score How to make a domain user logon to only one workstation at a time?
shree - 22 Feb 2006 6:32 PM - 6 messages
Hello, I need to make a domain user logon to only one workstation at a time. I would greatly appreciate if someone could help me with this. Is there a gpo setting in Server 2003 which can be used to do this? ...
Score Set system time/date
Jose - 22 Feb 2006 5:39 PM - 2 messages
I want to be able to change the system's time/date.  Is it possible to do this using jscript/vbscript ? The closest example I found in the msdn site is related to setting the time zone, but that's not what I'm looking for.  ...
Score NT4 Assign LogonScript to all Acounts in one step
Xtrace - 22 Feb 2006 5:04 PM - 2 messages
I've got to questions : A) Is there any way to SET the user properties logonscript parameter to all domain accounts in one step. (editing each account by hand, means a lot of work) B) Is there any way to list all users that hasn't logonscript parameter set ? ...
Score [MSH] About Passing fully qualified Msh script path to C# Application
DontBotherMeWithSpam - 22 Feb 2006 4:36 PM - 4 messages
I was wondering if there is a way to just simply pass Msh Script name without having to opening the script file, and generating command script For now I have such a function which will receive the Msh script path ...
Score need serious help with lastLogonTimetamp attribute in 2003 AD
SixHouse - 22 Feb 2006 1:47 PM - 10 messages
i need to run a script that will target the currently logged on domain and dump to a text file the distinguished name, and lastlogontimestamp of all users. the kicker is that the lastlogontimestamp needs to be converted to human readable form before its written to the output file. anyone have ...
Score Login Script by the group a user is a member of map network driver
Kelly - 22 Feb 2006 11:59 AM - 9 messages
Hi all, I want to create a script that  maps share a specific network share making a control on the groups to which a user belongs.  If then a user is member of to a group the script she would have mapping  to network  share on the ...
Score How can I redirect a printer in VBScript?
Fran <> - 21 Feb 2006 11:20 PM - 4 messages
I need to create a logon script that will redirect the output of the LPT port to a network printer. In batch files this is something like:   net use LPT1: \\computer\SharedPrinter However, the users logging on do not have local administrator ...
Score Help writing a script to copy desktop and quicklaunch
Fran <> - 21 Feb 2006 10:26 PM - 6 messages
I want to create a script that will copy a user's desktop settings (icons, quicklaunch and e-mail if that's possible) to a secure folder on the server and reload them when they logon. So I guess I need a ...
Score [MSH] Name of the VMS environment that inspired <noun>-<verb>
Keith Hill [MVP] - 21 Feb 2006 10:11 PM - 6 messages
I'm doing an internal brown bag on MSH next week and I was trying to remember the name of that VMS environment that inspired the <noun>-<verb> naming convention in MSH.  Does anybody remember its name?  So far my slide ...
Score Unable to run vbscript at system startup
SunRace - 21 Feb 2006 9:01 PM - 5 messages
Hello, I am trying to execute following script at system startup from SOFTWARE\Microsoft\Windows\CurrentVersion\Run. Now the problem is this script does not have exit/end if as it is meant for monitoring due to this startup is waiting for the script to end - which will never happen. If I run this ...
Score add input description to AD computer
poboy_n.o_style - 21 Feb 2006 2:24 AM - 4 messages
I have excel worksheet with computer names and computer descrition:      A                  B 1 wkstation1       Bob Smith ...
Score DACL into SQL
Luke Goode - 21 Feb 2006 2:17 AM - 2 messages
All, I am trying to write a scipt at the moment that takes ACL information from a file server and dump the details into and sql database. Can get the information into a text file but I am having some issues transferring this ...
Score [MSH] Closing Excel
/\/\o\/\/ - 20 Feb 2006 4:29 PM - 13 messages
a college of mine, came with this problem, how can you quit(nor kill) an Excel instance from MSH ? see this code : $excel = new-object -com "Excel.application" $excel.visible = $true $excel.quit() the Excel object remains. $excel = $Null does not work ...
Score HTA Queries ?
TOBYW - 20 Feb 2006 11:31 AM - 4 messages
Hi, I am developing a front end for installing Windows 2003. I have got a simple form which users complete with name domain etc. I have a few queries: 1. Can I display a confirmation  screen with all the details the user has ...
Score Permission Denied in objFSO.OpenTextFile
rupart - 20 Feb 2006 6:56 AM - 3 messages
Hi Folks, I am running this command "Set LogFile=objFSO.OpenTextFile("E:\DeleteBackupLogFile\2_20_2006.txt",2,true)" but getting this error "Microsoft VBScript runtime error : Permission denied" Yes, i have permission in this computer. Any clue? TIA ...
Score Refreshing directory contents
Neobyte - 20 Feb 2006 3:10 AM - 5 messages
Hi all, I have a folder C:\PROG\ and a folder C:\PROG_refresh\ .  Each boot, I want to replace any changed files in C:\PROG\ with the originals stored in C:\PROG_refresh\.  Any ideas?  Xcopy allows you to specify to copy ...
Score [MSH] How to get stderr ouput.
Olav Kindt - 19 Feb 2006 11:05 PM - 8 messages
All, I am trying to capture the output from a legacy product, to parse the result using msh. My test app (Hello.exe) simply writes one line to COUT, and one line to CERR. Here is the output: D:\src\sconstest% .\hello.exe ...
Score Delete DNS zone
Limbo - 19 Feb 2006 10:28 PM - 2 messages
I'm trying to find a script to delete a dns zone, but have not had any success. I've tried [link] but this example seems over complicated. ...
Score [msh] Something else I can't work out how to do
Thomas Lee - 19 Feb 2006 5:20 PM - 7 messages
I am playing with some VB Scripts that play with Excel and Word. I see a fragment like this: Set objExcel = CreateObject("Excel.Application") Set objWorkbook = objExcel.Workbooks.Open ("C:\Scripts\Test.xls") So I try this in monad: $ox = new-object -com "Excel.Application" ...
Score CMD script for adding printers
<<JP<< - 19 Feb 2006 7:44 AM - 2 messages
Windows 2003 GPO login script... I have the following logon script to add printers on user login, BUT how do I prevent it from running if the printers are already installed? ECHO Installing printers... rundll32 printui.dll,PrintUIEntry /in /n \\serverABC\CanoniR5 ...
Score Tough one
Alexis Mieles - 19 Feb 2006 7:03 AM - 5 messages
Hi Everyone, Quick question: I've seen quite a few scripts in the forum for sending a CDO email, and some for searching through a file, but I am clueless as how to put them together. For example, I have a file called err.log which I output the details of a ...
Next »