|
server
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Scripting for Windows Servermicrosoft.public.windows.server.scripting
Running an Excell Macro from a script
schmidtfamily6 -
22 Apr 2006 10:26 PM - 2 messages
I have a lot a macro's I set up to save me lots of time. The porblem is I have to run these Macro's by hand "if I forget or get to busy, they do not get run". I would like to run these from a script that a can place in task ...
Running an Excell Macro from a script
schmidtfamily6 -
22 Apr 2006 10:20 PM - 2 messages
I have set up all these Excell macro's that save me hours a day formmating out data. The porblem is I have to run the macro by hand, is there a way I can put this into a script and attach that to task scheduler and have it run ...
(msh) get-command does not work in variable provider
/\/\o\/\/ -
21 Apr 2006 10:44 PM - 4 messages
MSH>cd variable: MSH>get-command Get-Command : Dynamic parameters for the cmdlet cannot be retrieved. The NavigationCmdletProvider methods are not supported by this provide r. At line:1 char:11 + get-command <<<< Ok just give me my list of commands then ;-) ...
foreach-dictioanry cmdlet
klumsy -
21 Apr 2006 7:57 PM - 3 messages
by design monad passes through a hashtable as one object into the pipeline.. sometimes i want to however have a where clause or something that treats these seperately, basically you want toe ability to have it both ways.. currently you can do it with the foreach ( $i in $_.keys ) or ...
Software installed on server
Jacques -
21 Apr 2006 5:16 PM - 5 messages
Hi, Is there any script from Microsoft or others that will tell me what software is installed on my server? Thank you Jacques ...
[msh] Best way to create objects, add properties in script?
forestial -
21 Apr 2006 1:36 PM - 9 messages
Let's say I want to create an object in a script, and give it some properties. I can do the following (from a recent post by Jouko Kynsijärvi): #create an empty object $o = new-object system.management.automation.mshobject ...
(MSH) starting error
//o// [MVP] -
21 Apr 2006 9:56 AM - 2 messages
I get the following error when I try to start MSH, after a system restore (not before MSH upgrade) H:\>msh Internal Monad error. Loading managed MSH failed with error 80131522. any chance of fixing this without remove / reinstall ? ...
SMS - checking for Advertised jobs
James -
21 Apr 2006 7:02 AM - 2 messages
we are using sms. In our client machine control panel, there is a applet called Run Advertised Programs how can i list the jobs that are done in each pc assuming i don't have sms console ? i m trying to do via vbscript and i can't find it in sms scripting guide ... ...
xls2csv function
Alexis Mieles -
21 Apr 2006 12:19 AM - 4 messages
Am attempting to use this function in a similar method as a post by Kaushik Pushpavanam [MSFT] regarding csv2xls, but am having no luck using the documentation. I have two xls files which are updated frequently by business users. Need to ...
Password never expire(not including disabled accounts)
Misha -
20 Apr 2006 8:16 PM - 5 messages
I have the script to enumerate the password never expire accounts but I am wondering how can I enumerate with the same script accounts with passwords never expire but only for users accounts which are enabled and not disabled. I noticed there are many accounts in my directory with password never expire ...
Re: [MSH] Requires an executable on the RHS of a pipe?
Lee Holmes [MSFT] -
20 Apr 2006 8:15 PM - 2 messages
Just to be complete, the best workaround is to explicitly invoke the script using its associated executable: dir | cscript foo.vbs I know this workaround came up earlier in the thread, but others may not have seen it. ...
Script to create subdirectories
QA -
20 Apr 2006 4:33 PM - 6 messages
I found this vbs script that creates a directory & subdirectories. The final directory structure should look like: c:\www\hits\xxx.yyy.zzz\cgi-bin. I'm getting an error message on line "Public Class CreateSubTest" indicating "Expected Identifier". ...
MMS conference in San Diego
Jeffrey Snover [MSFT] -
20 Apr 2006 4:04 PM - 5 messages
Is anyone going to the MMS conference in San Diego next week? Monad will be officially announced with a new name (it's super double secret so don't even ask) and all the official details like ship dates and ...
[MSH] gci behavior -
Vasu -
20 Apr 2006 3:56 PM - 5 messages
Here is the behavior I see with gci versus "[old] dir" This successfully lists files in directories 1,2 and 3 (in cmd.exe) C:\temp\monad-test>dir dir1 dir2 dir3 Volume in drive C has no label. ...
[MSH] Possible bug - ftp command
Vasu -
20 Apr 2006 1:52 PM - 5 messages
I am wondering if anyone has had any problems with Windows XP ftp through msh. Here is what I observe: The following command: ftp -s:ftpscript.txt -A 192.168.11.17 (my host) works just fine on my ...
Monad Editor
Guy Thomas -
20 Apr 2006 1:34 PM - 6 messages
I just wondered if anyone knew of a Text Editor for Monad, or does everyone just use notepad? Guy ...
Network scripting
Mark Watts -
20 Apr 2006 11:17 AM - 2 messages
I want to use MSH to script some networking tasks on my laptop. I found the references about MSH/Monad and scripting at [link] [link] ...
i need script
ahmed -
19 Apr 2006 8:45 PM - 2 messages
i need script to make best group policy in my AD. i need help for this thanks ...
shares properties and size of share
hguzman -
19 Apr 2006 8:00 PM - 4 messages
I am working on the scripts below; trying to pull share info from a remote server. the scripts never writes the folder size out. Both run without errors. The second example was an attempt that created another problem. ...
[monad] interest thing i noticed about the pipeline processing with functions
klumsy -
19 Apr 2006 6:20 PM - 3 messages
# ehre are the two functions, identical other than the begin and end are put specifcally function test1 { $input | foreach-object { write-host "IN$_" ; $_} } function test2 { begin {} process{ $input | foreach-object { write-host "IN$_" ; $_} } end {} } 1..2 | foreach-object { write-host "A$_"; $_} | test1 | foreach-object ...
[msh] select-object 'computed property' behavior
forestial -
19 Apr 2006 1:17 PM - 8 messages
I have seen several code snippets doing things like (this is from Keith Hill's blog): MSH> get-WMIObject Win32_CacheMemory | and have been trying to find more information about that "@{e={...}.;n=...}" construct in the select-object cmdlet. ...
disable multiple users and move to OU
dsmitty84 -
19 Apr 2006 12:48 PM - 3 messages
I am in need of a script that can disable multiple users without knowing which OU they are in, and then move them all to 1 OU. I found a script that can do 1 at a time posted on 1/25/06, but need to be able to disable multiple ...
Using MSH to transpose information from one Excel sheet to another.
Irish girl brid -
19 Apr 2006 6:09 AM - 3 messages
Hi, I have just started using MSH. I'm trying to use it to take info from one excel file and export it to another excel file in a different layout. For each row of the original sheet I need multiple rows in the final ...
How to retrieve User account column information
Scott Couchman -
19 Apr 2006 2:53 AM - 3 messages
I'm looking for a way to retrieve information found in AD Users & Computers columns sections, like in a find. Specifically I'm looking for how a VB script can retrieve the "Employee ID" "Exchange Mailbox Store" "Live ...
[MSH] What about $this in parameter script blocks?
Alex K. Angelopoulos [MVP] -
18 Apr 2006 10:31 PM - 3 messages
I notice that it's possible to use $this in mshxml types, but not in place of $_ in applicative script blocks such as those used with ForEach-Object - for example: MSH> Get-WmiObject Win32_Processor | %{$this.GetType().FullName} You cannot call a method on a null-valued expression. ...
[MSH] Get-WmiHelp
Alex K. Angelopoulos [MVP] -
18 Apr 2006 10:21 PM - 2 messages
Someone - I think Herr Snover - posted a GetMSDN() function that could be added to the mshxml types to make a synthetic function for all .NET objects. It turns out this same thing could be used for WMI class documentation (and ...
ANN: EditV32/Choose32 1.3
Bill Stewart -
18 Apr 2006 9:02 PM - 4 messages
EditV32/Choose32 1.3 Home page: [link] Update: Version 1.3 allows spaces in a variable's name. These programs are freeware. EditV32/EditVar and Choose32/Choose are replacements for my older ...
Modify user attributes with csv file
MG2 -
18 Apr 2006 4:08 PM - 3 messages
I'm looking for a way to modify user attributes (telephoneNumber) by using a csv file as a seed document. Remember in Exchange 5.5 - you could bulk export and import data from an excel spreadsheet? I have exported a contacts folder to csv file - all values are written in ...
ANN: EditV32/Choose32 1.1
Bill Stewart -
17 Apr 2006 9:27 PM - 6 messages
EditV32/Choose32 1.1 Home page: [link] EditV32/EditVar and Choose32/Choose are replacements for my older programs Getkey and Getvar. (EditV32/EditVar is superior to Getvar because it doesn't use temporary files.) ...
Find all files/folders that are owned by builtin\Administrators
Peter F -
17 Apr 2006 8:31 PM - 5 messages
Hi, I am working on a script that would scan through a file server and identify all files and folders that are owned by builtin\Administrators that also have NTFS permissions assigned to usernames which have been deleted from Active ...
Monitoring Ports on Remote System
TechieGirl -
17 Apr 2006 4:41 PM - 5 messages
I would like to be able to monitor open ports for service monitoring on remote systems. Is there a way to script this? Normally I would manually do this using the telnet command "open server.mydomain.com 80" or "open ...
Active Directory AD
Guy Thomas -
17 Apr 2006 3:46 PM - 3 messages
I was watching a Monad video by Jeffery Snover. On his machine I see a drive called AD. Running: get-drive on my Windows Server 2003 I see no AD amongst the regular drives, Alias and HKLM. Question: I have missed installing an essential Monad / Active Directory ...
Thank you
Guy Thomas -
17 Apr 2006 3:41 PM - 2 messages
Dear Jouko, Abhishek and Alex It worked. I am thrilled. There is nothing like the simple pleasure when a script works for the very first time. Thank you all for taking the trouble to respond to my question. ...
filenames with trailing spaces (from Mac filesystem) - help?
ceravis at g mail dot com -
17 Apr 2006 3:01 PM - 2 messages
I recently moved several thousand files from a Mac server to an XP workstation, and I've found that many of the files have trailing spaces in the names (something which most Windows programs typically avoid creating). While these files can be double-clicked from Explorer to individually access ...
Howto: Remove Computer accounts from AD using a list
jmhaynes -
17 Apr 2006 12:14 PM - 2 messages
It took awhile, and I couldn't fine a thread that worked in my environment, but here is what works for me. Create a text file and put the computer account name on each line. Do not leave a blank as the ...
a snapin with some commandlets to run MSH commands in the background.
klumsy -
17 Apr 2006 8:46 AM - 7 messages
on my blog i wrote up abou tsome new cmdlets i made today [link] . there is a link there also to downlod it. for your courtesy i will also put the text here. ...
Setting %homedrive%, %homePath% and %homeshare
Tim -
17 Apr 2006 1:44 AM - 5 messages
I hope some one can help...... I'm trying to define Homedrive, Homepath and Homeshare for a user using a VB Script and I'm not having any luck. One would think that you could just do something like this.... ...
MapNetworkDrive
Guy Thomas -
16 Apr 2006 9:24 PM - 6 messages
Is it possible to use MSH commands to Map a Network Drive? I created a drive object with new-drive x Provider Filesystem Root X:\ Is it now possible to map X:\ to a UNC path? Guy ...
How to copy file to %systemroot% and %programfiles%
×בי -
16 Apr 2006 1:28 PM - 3 messages
Hi, i have this script Const SampleXrayIni = &H10& ParentFolder = "d:\avi" Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.NameSpace(ParentFolder) objFolder.CopyHere "\\networkcomp\folder what i want is to copy the file from the \\networkcomp\folder to the local ...
|
|||||||||||||||||||||||