Home All Groups Group Topic Archive Search About



Scripting for Windows Server

microsoft.public.windows.server.scripting
Score Booting up PC
Margo - 5 Aug 2006 6:15 PM - 3 messages
I'm having problems starting up my pc.  I switch on snd my monitor says it's not gettting a signal.  I can hear the fann running.  I've checked all the connections and they are ok.  Does anyone have any ides?  Many thanks in ...
Score Addition using function
hiriumi@gmail.com - 5 Aug 2006 1:18 AM - 4 messages
I have another question. When I was working on a very easy sample in PowerShell, I came across this issue. When I create a function that takes two parameters and add those two parameters assuming that they are integer, instead of the sum of the two numbers, I get a result of ...
Score Class in PowerShell?
hiriumi@gmail.com - 5 Aug 2006 1:14 AM - 4 messages
In VBScript, we can create class. Is it possible to create class in PowerShell? ...
Score Mapping on group membership
Mike - 4 Aug 2006 8:50 PM - 4 messages
I'm working from a Hey Scripting Guy script ([link]) to map drives based on group membership. The script below is supposed to determine and display the groups that the ...
Score Becoming desperate - Couldn't find the group policy template file
sddjd - 4 Aug 2006 3:41 PM - 2 messages
Ah, but there's a twist.  Our network uses a logon script in the following format: \\domain.local\sysvol\domain.local\Policies\...etc. We added six new XP Pro machines to our SBS2003 network and cannot get only those six machines to run the logon script which applies policies and maps ...
Score Running a mail scan/creation script on an Exchange Server
Conor Kelly - 4 Aug 2006 3:38 PM - 3 messages
Hello, I have a VB script written that will generate an e mail and send it to a specific address. I want this to run when a certain user on the Exchange server gets an e mail from a specific e mail address. ...
Score Problem in running Batch files on Remote Desktop
workmonu - 4 Aug 2006 9:49 AM - 4 messages
I faced an unusual problem. Whenever i run the batch file from the Remote De sktop window and minimize the Remote Desktop to come back to my desktop, the batch file would not perform any further actions. However if i stay on ...
Score Programatic Determine AD Integrated DNS Records are Static or Dyna
Inherited A Mess - 3 Aug 2006 9:24 PM - 3 messages
Hi, we've got a big problem.  Trying to enable scavening on W2K3 AD Integrated DNS, but we can't allow static records to be scavenged, which if would of enabled scavenging at the onset wouldn't be an issue. ...
Score Tips to Create a S/W inventory Script
Tim H. - 3 Aug 2006 8:38 PM - 4 messages
Good Afternoon Everyone,     I'm new to scripting and rather get advice from the Experts before I get to ahead of myselfs or to confused. I am trying to create a script to use in my local domain network, I would like for it to search the computer I run it ...
Score Finding Device Instance ID via VBScript and maybe WMI???
Mikepiliotis - 3 Aug 2006 8:34 PM - 3 messages
Hi guys - A little background - my office is working on some power management software to manage nightly shutdowns of all workstations in our environment.  We have most of the configurations done.  One of our last tasks is to make each workstation able to wake up from standby by ...
Score Backing up an Excel File Hourly
Mark A. Dudley - 3 Aug 2006 7:59 PM - 2 messages
I am trying to write a script to back up and Excel file hourly, save all 24 copies per day and make sure the users have access to this file.  Anyone have an easy way to do this. It is a Windows 2003 file server. ...
Score service state across servers
balta - 3 Aug 2006 5:06 PM - 3 messages
Suppose that a service is installed on various servers and I want to be able to check, at any time, on which servers it is running an don which it is stopped. Is there a script that allows me to achieve that? ...
Score CMD.EXE and ">> logfile"
Peter Juuls - 3 Aug 2006 12:19 PM - 8 messages
I use scheduled batch files do many automated tasks on my Win2000/Win2003 servers, like checking for available diskspace. All batch files write to a single logfile on the local disk, so I only need to check one logfile for ...
Score Audit script
Adriano - 3 Aug 2006 8:24 AM - 8 messages
Hi. Sorry for my poor english. I need a solution to audit 4 of my domain computers. I want to know everything  they are doing. I try spectorsoft but no luck. What can i do ? ...
Score bunch of Users Details addition in AD
RAM - 2 Aug 2006 9:45 PM - 2 messages
Can any one of you please guide me how to add details(Addres,Mobile No,Designation,Department) for a bunch of users in Active Directory i these details in Excel file how to import it directly to AD is their any tool or ...
Score If the condition is true, don't do a thing and keep going
Michael - 2 Aug 2006 8:39 PM - 2 messages
If ComputerName = "ws21068" Then %DoNothing% Else objPrintUtil.Run "c:\FAOWPU1\FAOWPU1.exe" End If Select Case PrintUtil     Case 1           ComputerName ="ws210168"           %DoNothing% ...
Score Configuring Windows 2003 DCHP Server by scripting
rlinhard - 2 Aug 2006 7:44 PM - 2 messages
Is there any tool or possibility to configure a windows 2k3 server by a simple script with scope`s and classes without using the dhcp-snapin? Thanks for any idea's! ...
Score _Path_Property???
OK - 2 Aug 2006 3:40 PM - 4 messages
Guys, I’m trying to convert C# program to PowerShell script and I’m having some stupid error. C# using System.DirectoryServices; public static void Main(string[] args) {     DirectoryEntry de = new DirectoryEntry();     de.Path = "IIS://localhost/W3SVC"; ...
Score exporting and importing user details using vbs and excel
Vexander - 2 Aug 2006 2:09 PM - 2 messages
I am not sure is this has been answered somewhere before, if it has just through me in the general direction if you don't mind please.    I want to export all the users in my AD to a spreadsheet, and then once I ...
Score D Telefonliste HTA User
RayParkerCOM - 2 Aug 2006 1:09 PM - 13 messages
Hello,  i try to write a script for my company. This script display all activ User and their telefonnumbers. But I have a mistake/ error? Can you help me, by this problem? Error row ... row 42 .... **** Set objRecordSet = objCommand.Execute ...
Score Update AD from asp using alt. credentials
Lumbago - 2 Aug 2006 1:06 PM - 3 messages
Hi people, I have searched quite abit but I haven't found any piece of code that lets me update Active Directory data using alternate credentials. Is there an easy way I can modify this script that we use on our intranet to make the ...
Score Script not Sending Email
Aj - 2 Aug 2006 7:48 AM - 3 messages
I have a Script Running on a Server Which Pulls out the Disk Info on a Text File and Emails it . . . . It was working fine till some time back but now its pulling out the Disk Info but not Sending the Email . . .  Can somebody Please help and Let me ...
Score MSH: WMIC replacement?
Matt Brown - identify - 2 Aug 2006 3:02 AM - 4 messages
Hello, Man, I love Windows Powershell.  Are there plans to give it the full WMI control that wmic currently gives?  Will/can you set properties? Why isn't WMI a PSDrive?  In my opinion it doesn't make sense. ...
Score Get "DisplayName" from SQL table and add to Exchange DL
James - 1 Aug 2006 8:37 PM - 3 messages
Hello, I'm new to VBScripting. I succesfully created my own script that opens a csv file in excel that has data that was exported from a MSDE 2000 database with "DisplayName" in column A, querys LDAP for the DN of the "displayName" and ...
Score GPOLinks and VBScript
Bodo R. Meyer - 1 Aug 2006 3:37 PM - 3 messages
HI NG, I need to create and remove GPOLinks via VBScript. I found some help in the GPMC-dcumentation, but I also would like to know, if there's a way to do that without using the GPMC. Thanks Bodo ...
Score Monitor printer queues
DrBadvines - 1 Aug 2006 9:29 AM - 3 messages
Hi, Is it possible to monitor printer queues. problem that we have that some prints don't print and that the queue fills up with prints. I want to monitor that.. Hans ...
Score Run .BAT file as other user...
Geir Holmavatn - 1 Aug 2006 6:08 AM - 2 messages
Hi, I'm trying to run a .BAT file which backs up a MSDE database as a scheduled task when an 'ordinary' user (user1) is logged in.  I have assigned the administrator in the task's 'Run task as user' property and ...
Score stdout of a command ran on a remote server
Joseph - 1 Aug 2006 12:49 AM - 7 messages
Hi, Here is the script to run the commands on a remote server, I'd like to capture the output and display, but it's not working... strcomputer = "remoteserver" strUser = "Administrator" strPwd = "********" Set objLoc = CreateObject("WbemScripting.SWbemLocator") Set objConnect=objLoc.ConnectServer(strComputer, "root\cimv2", strUser, ...
Score Server Information Script
Sam - 31 Jul 2006 9:36 PM - 2 messages
Hello Everyone. I used to have a pearl script that would load the current status of the server as an active desktop. Memory, CPU, Hard Drive Space etc .. I am trying to find this script, unable to find it anywhere. Was hoping ...
Score Copying a Folder from the Server to the Local My Documents folder.
Jason Thomas - 31 Jul 2006 8:54 PM - 2 messages
I have been looking to copy a folder containing a series of folders and other documents from a network location to the user's My Documents folder within their local user profile.  My users spend large amounts of time disconnected ...
Score DRVMGR.VBS not working to add drivers to server or PC
tdealy - 31 Jul 2006 6:52 PM - 3 messages
I have been testing the use of the script drvmgr.vbs to add print drivers to a clustered print server.  The script can list drivers and simple tasks, but cannot do the more complex task of adding drivers to a remote server (or to ...
Score VBscript for how to enable execption port on Windows Firewall
Mohamad Muhammimi - 31 Jul 2006 6:46 PM - 3 messages
Do anyone know how to to create a vbscript that can add port that SMS 2003 uses to communicate through a Windows firewall on the XP workstation???????? I really need your help on this.................. ...
Score Need to query SID on local groups on remote computers.
Tom E @ NG - 31 Jul 2006 5:30 PM - 2 messages
Because of some company policy crackdowns, we need to identify which accounts have elevated rights on our servers.  What I'm really trying to do is to remotely scan all of my servers and enumerate the members of the ...
Score Newbie Q: How to suppress return value printing in PowerShell
hwiechers - 31 Jul 2006 4:22 PM - 2 messages
Is there anyway to suppress printing return values in PowerShell? What I mean is: When you call a function Foo that returns a bool, PS will write 'True' or 'False' to the screen by default. Is there anyway to get it to stop writing those return ...
Score trouble in connecting wmi accross NAT
Sergio - 31 Jul 2006 3:04 PM - 3 messages
Dear all, this is my scenario I need to manage some server in the remote offices. I have a pix-firewall and also the remote networks have it. A remote server ( well i call it MYSERVER from now) is reachable with the ...
Score How to add a URL to each users desktop
TeeCee - 31 Jul 2006 12:40 PM - 6 messages
Using the vb script, how to create the script to add a new URL to each users desktop or a specific group with group policy startup logon script? I am not the greatest at writing script. I found an example for adding a URL to ...
Score Vbscript control
Omar Abid - 31 Jul 2006 8:29 AM - 2 messages
I want to know the hole propreties of control (like textarea) I want a quick tutorial about it Thank you ...
Score Script help
Christopher Martin - 31 Jul 2006 2:31 AM - 4 messages
I am a complete scripting newbie, and I am in a bit of a bind. I need a script that runs "net use \\ipaddress\IPC$" for the entire length of a class C subnet. It's just a loop and the call of the ...
Score remote machine execution
James - 31 Jul 2006 2:12 AM - 21 messages
i create a local batch files that does something of this nature : I use robocopy and copy my files to remote machine directory. The next step i wish to do is to execute the batch files on the remote machines directory. ...
Next »