|
server
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Scripting for Windows Servermicrosoft.public.windows.server.scripting
checking status of a service
jimmyb -
1 Jul 2006 1:24 PM - 3 messages
im using the net start/stop commands to manipulate a service to run some maintenance. however the service does not always behave when getting these commands. is there a script to check the status of a services, maybe return a ...
cmd shell script question
sbillard -
30 Jun 2006 7:10 PM - 4 messages
I am embarrassed to ask, but trying to help someone with a specific need. I'm trying to assing the output of a command to a variable using old fashined shell scripting. For example, this command returns the needed value: ...
Modify Multiple Share Permissions
Rob -
30 Jun 2006 3:52 PM - 5 messages
I have over 100 servers in which I need to add a security group to multple share permissions. There must be a way to script it or accomplish this from the command line. Can anyone help? ...
Getting Drive Space properties on all servers in a domain
Santosh -
30 Jun 2006 6:05 AM - 7 messages
Hi Guys, If anyone could help me getting a script to get the Drive properties ie space usage in C, D drive of all the servers in a domain. Thanks Santosh ...
[PowerShell] change multiple user objects
Daren Daigle -
29 Jun 2006 8:04 PM - 2 messages
this works for one user
@($root.get_children().find('ou=users,ou=,ou=org').get_children())[2].InvokeGet("AllowLogon") (the allow a terminal server session bit) But i want to do the same thing on multiple lines and ultimately to set the ...
Oplocks script
Shannsou Roberts -
29 Jun 2006 6:37 PM - 4 messages
I am trying to get this oplocks script working. For some reason the script is not working. I need to create a script to enable oplocks on a workstation and a server the the script is as follows for a workstation. ...
[Powershell] How can I split a string into "words"
ErstwhileIII -
29 Jun 2006 4:34 PM - 2 messages
I would like to use Windows PowerShell to execute a command providing arguments to that command from each line in a file. (Like the old /For DOS scripting command that would read a file and split it into arguments that ...
Move Computer from default OU to another during build process
RC -
29 Jun 2006 3:06 PM - 10 messages
I am attempting to automate the move of a computer account from the default container to an OU I specify either during the imaging/sysprep process or on first logon. I'm currently experimenting with the sample script shown below ...
change local admin password through script
Robert -
29 Jun 2006 5:05 AM - 4 messages
Hi all, To avoid the risk brought by local administrator password being exposed, i have to change it on all workstations. we now still use NT4.0 domain and run ntlogon.bat with Kix32 during logon. Can I add command lines into the script file to change password? if it's ...
PowerShell "Access is denied" error
dhorrigan -
29 Jun 2006 12:58 AM - 4 messages
I am writing some C# dll's that will use PowerShell to call Exchange12.
We load these "Provider" dll's into MPS (Microsoft Provisioning
Services). I am getting an "Access is denied" error on the
Runspace.Open() statement. In unit tests, the code executes fine, using cmdlets such as get-date
and get-item. However, within MPS the code errors out on the
Runspace.Open() statement. The Principal.WindowsIdentity at that point
is the Administrator account. Here is the thrown exception: ...
Script to copy files to desktop if member of specific security group
k1w1 -
29 Jun 2006 12:49 AM - 3 messages
I'm wanting a script to copy some shortcuts to users desktops if they're a member of a specific security group. Can someone tell me if this is along the right lines. I won't be able to try ...
problem from asp page
Rogério Altman -
28 Jun 2006 11:43 PM - 2 messages
I'm triyng to run the following script within an asp page but it doesn't work. I've got the following error: '800a0046 permission denied. But it works if I rename it in .vbs... Any idea will be welcome. ...
simple login script using GPO
Javan -
28 Jun 2006 8:09 PM - 2 messages
I have a SIMPLE script that I execute via a batch file. All it is doing is mapping 4 drives via NET USE command. I followed this tech net article [link] ...
Monad/PowerShell
Sofia Engvall -
28 Jun 2006 1:54 PM - 2 messages
Hi! :) I just saw the "Jeffrey Snover - Monad demonstrated" video: [link] I though it looked great and installed PowerShell at once. Now I've tested a few things. I can't find the "out-excel" command he used at about 7.40 in the video. ...
CLean out all users Temp Dir Folder
Daniel -
28 Jun 2006 1:46 PM - 2 messages
Good morning, I have been having trouble modifying a simple script to loop through all the user folders on a server and clean out each user's temp direactory. The basic script is: ***** Dim arrFolders() intSize = 0 strComputer = "." Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") ...
Active Directory - Clean up old computer accounts
deb -
28 Jun 2006 1:46 PM - 3 messages
I have tried using the dsquery tool in AD to find old computer accounts in our domain. However, I am not having much luck b/c while our domain is Windows 2003, the forrest is only at 2000. I get errors that I our domain ...
Run macro and other setting into excel document
Luke_FineGoodMan -
28 Jun 2006 9:40 AM - 3 messages
I need to open .CSV file and run a saved macro that make all setting automatically (or set some settings like grid, set colummn dimension etc.). Thanks in advance. P.S. Where I can find all Excel object proprierty? ...
How to configure IP address with Powershell ?
SC -
28 Jun 2006 7:37 AM - 5 messages
Hi, Is it possible to configure the IP address of an ethernet interface with Powershell ? If yes, which is the function to use ? I've looked to the WMI classes accessible with powershell but didn't find how to configure the IP address. ...
VBS from ASP page
Rogério Altman -
27 Jun 2006 11:05 PM - 2 messages
Hello, I'm trying to execute a vbs script from an asp page as follows: <% Set WSHShell = CreateObject("WScript.Shell") WSHShell.Run "cscript c:\drive.vbs" %> (IUSR_COMPUTER rights are given to cscript.exe in system32) /******* And the "drive.vbs": ...
Is there a way to identify services running uner a particular userID?
Cappy -
27 Jun 2006 3:41 PM - 5 messages
Hello! We have approx 400 servers that have a piece of software on them. Most of the boxes have the two services associated w/ this software running as, or logging on as, a domain account. Poking around in the services of a few ...
Question about ignoring numbers in a CSV
Alexis Mieles -
27 Jun 2006 2:46 PM - 3 messages
Hello, I have a CSV file that looks like this: 2006-05-17-11.29.23,,,,, AIB,2005-04-21-13.17.15.890883,26874107,Monkey Punky,Chocolate Chips, I want it to look like this: "AIB","Monkey Punky","Chocolate Chips", ...
Control panel for IIS6
FRANCO -
27 Jun 2006 1:21 PM - 2 messages
Hello People Anybody can recomended a control panel free to administer the IIS6? Thanks ...
MS office version
Jrex7 -
26 Jun 2006 8:54 PM - 2 messages
I need a script that will give me the MS Office version on several servers. Can anyone help with this? If possible I want to save the results in a text file or excel spreadsheet. Thank you. ...
change subnet mask with scripting
bob via WinServerKB.com -
26 Jun 2006 9:41 AM - 7 messages
hi all, we must change our subnet mask in reason of grouth network environment , we have 400 PCs and now we need create a subnet with 1000 new host in our Active Directory related network . after subneting and create a new range of ...
Error 68 when trying to assign IP address using WMI
Irish girl brid -
26 Jun 2006 3:07 AM - 7 messages
Hi, I'm trying to set the IP address of some servers using the code below but I keep getting an Error 68 returned and the IP address does not change. DHCP is not enabled. does anyone have any ideas that might help me?? ...
Pls help with the If statement
Paul -
26 Jun 2006 1:40 AM - 3 messages
Hello, I want to display all the printers connected to my computer system except the 'fax' and 'Microsoft Document Image Writer'. Does anyone have any suggestions? I believe my syntax in the IF statement is the problem. This is probably something very simple ...
What's the problem?
ppsy -
25 Jun 2006 2:46 AM - 5 messages
I copied code from MS official page. Pasted it into a file named "test.ps1" I tried to double click it but "test.ps1" was opened by NOTEPAD.EXE Is there any suggestion? The following code was written into "test.ps1" ...
|
|||||||||||||||||||||||