|
server
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Scripting for Windows Servermicrosoft.public.windows.server.scripting
[msh] remove-mshsnapin error
/\/\o\/\/ [MVP] -
28 Jan 2006 10:57 PM - 3 messages
I get an error on remove snapin : MSH>remove-mshsnapin getIADsLargeInteger remove-mshsnapin : Object reference not set to an instance of an object. At line:1 char:17 + remove-mshsnapin <<<< getIADsLargeInteger but it works OK ...
Hard drive space script to email
Wobble_Wobble -
28 Jan 2006 10:28 PM - 5 messages
Hello folks, completely new to this and slightly confused to say the least, but at least I'm learning. I have taken a copy of the script from the Microsoft technet site [link] ...
[MSH] How can I make Snapin to receive piped data?
DontBotherMeWithSpam -
28 Jan 2006 8:02 PM - 12 messages
I am trying to implement "out-clipboard" cmdlet through Snapin. I am trying to get "out-clipboard" to receive an input data through pipe like the following MSH>"Hello, World" | out-clipboard But that doesn't seem to work while the following approach works ...
scripting help needed
Darren -
28 Jan 2006 4:08 AM - 2 messages
Hi, All I need a script that would add the current logged on domain user to the local power user group IF the logged on %username% matches the local %computername%.. So far I just have something like this net localgroup power users /add "%domainname%\%username%" ...
Leading 0 when displaying month and date if it is a single digit
modemgeek -
28 Jan 2006 12:19 AM - 3 messages
I've been looking around and couldn't find a simple way to format the month and date with a leading zero if it is a single digit. Here's what I have: today = Month(Now()) & "-" & Day(Now()) & "-" & Year(Now()) ...
Robocopy Question?
Jeff T -
27 Jan 2006 8:04 PM - 7 messages
Hello, we are migrating users to different file servers based on username. What flags do I need to use to have Robocopy read from a list of directories? ...
Wired error of get-credential for non-privilege user
TonyDeSweet -
27 Jan 2006 4:36 PM - 6 messages
Not sure if it is right place, but I discovered this while using monad. System: Windows XP Home, .NET Framework SDK 2.0, Monad beta3 If login as a member of Administrators group, MSH.exe runs perfectly. I am writing "su.msh" script (go to [link] ...
Search and delete folders
Mark -
27 Jan 2006 2:11 PM - 3 messages
i have some how managed to create numerous folders called "test", is there an easy way to create a script to search and delete all of these folders? I have tried using the windows search and deleting but there are far too many ...
How can I change "Allow this number of users" value for user share
paoutdoorsman -
27 Jan 2006 1:35 PM - 2 messages
Hello all, On a Windows 2003 file server I have a user folder with a share for each user inside. This space maps as drive T: when users authenticate to the network. I currently have all shares configured to allow 1 user to ...
Multiple folder delete
MuSzAr -
27 Jan 2006 10:42 AM - 4 messages
Hello, how can i delete with a script multiple folders in the "documents and settings" folder and this without deleting system folders. thanks ...
Modified logon control script
TomKing -
27 Jan 2006 7:08 AM - 5 messages
Following script is used as a logon script. When user logon it will check and write info into a log file. If user has log as "logon" another computer, it will auto logoff that user. It was working before, until I did some changes ...
Interactive Windows form modification, is it possible with MSH?
Seva -
27 Jan 2006 3:24 AM - 9 messages
I wonder if with Monad it is possible to create and modify Windows Forms application interactively. There is a sample in Monad documentation that shows you how to create a form object, place controls onto it, define event handler and activate the dialog ...
problems with formatting get-acl output
Seva -
27 Jan 2006 3:04 AM - 5 messages
I noticed that built-in cmdlets format-table and format-wide have issues with resolving display names for security principals when non-default parameters are used. With defaul parameters, security principal name is resolved correctly, but output is truncated to fit the screen. ...
create loc user and unjoin domain
TomKing -
27 Jan 2006 1:21 AM - 2 messages
The following script should create a local user and unjoin the computer from its current domain. '==================================== strComputer = "." Set colAccounts = GetObject("WinNT://" & strComputer & "") Set objUser = colAccounts.Create("user", "library") objUser.SetPassword "password" objUser.SetInfo Const NETSETUP_ACCT_DELETE = 2 'Disables computer account in domain. ...
[MSH] Calling remote stations
RichMcKinney -
27 Jan 2006 1:18 AM - 2 messages
Hi, in looking at the MSH documents and sample code, I have not seen an example of how to access a remote workstation. That is most of what I do. Anyone got an example of how to do that? ...
[MSH] Bringing form to front
Grzegorz Niemirowski -
27 Jan 2006 12:57 AM - 4 messages
I have written very simple script for displaying images using Windows Forms. It works well but there is one problem. Form is shown behind console window so everytime a window with a picture is displayed I have to click it to ...
Avoiding output message through [void]
DontBotherMeWithSpam -
26 Jan 2006 11:49 PM - 5 messages
I have create a simple function that lists accessible printers on my current machine like the following. ============================================================ MSH>function get-printers { MSH>get-printers Microsoft Office Document Image Writer HP LaserJet 8150 PCL 5e(관리êµ) ...
MSH: Script Performance
Bob -
26 Jan 2006 9:29 PM - 4 messages
I am writing an MSH script that seems like it should be rather easy; The purpose of the script is enumerate the contents of a share and provide some statistics in a csv format about the data based on the lastwritetime ...
Change the color of the Text in a Shell.popup window
Gott -
26 Jan 2006 9:27 PM - 2 messages
Does anyone know how I can change the color of the Text in a Shell.popup window? I have looked at the RGB(R,G,B) function but that did not prove fruitful. Thanks! ...
Scripting directory/file security in IIS Manager?
RG -
26 Jan 2006 3:09 PM - 7 messages
I need to be able to frequently flip the directory/file security on files and folders in a couple of my web servers between specific settings. One of those restrictions involves entering around 250 subents in the list of exceptions (long story) so the only practical solution ...
VBS Script
CraigM -
26 Jan 2006 2:42 PM - 4 messages
I have a script which maps a user to a netwrk drive when they click a certain icon on the desktop. This is working fine, however when the user clicks the icon, a command prompt window shows in the background. ...
MSH: Access is Denied
Bob -
26 Jan 2006 2:33 PM - 7 messages
Since installing Beta 3 anytime I try to open any .msh file in explorer (right-click, Open or Edit) I get an access is denied message. I have verified that permissions etc. are ok. I can launch notepad and open, edit, ...
New to scripting
tecan4u -
26 Jan 2006 2:20 PM - 7 messages
To all other scripmasters. Any one for advise best way and material to learn and implement scripts to windows. ...
File Date
Scotty -
26 Jan 2006 2:10 PM - 4 messages
I need to get the date that an exe was modified, and use that date to create a Julian dated directory. I am not having any luck in storing the file information? ...
Running scripts
gingepaul -
26 Jan 2006 1:48 PM - 3 messages
Hello everyone, I'm new to all this and have never used/created scripts before. Could someone please tell me how I'd run these scripts and what application if any are needed. Cheers in advance. ...
Script launch during Shutdown
Scott Kolesar -
26 Jan 2006 1:26 PM - 4 messages
I want to run a script to collect log data while an XP Pro machine is being shut down. The data is lost once the machine is shut down. Is there any means to kick off the script during a shutdown? I'd rather ...
Distinguishedname
Rasmus -
26 Jan 2006 1:21 PM - 3 messages
I'm building a VB login script where I need the distinguished name of the user logging. How do I easily retreive this from Active Directory ? Thank you ...
delete folders.
KejiaLi -
26 Jan 2006 8:35 AM - 3 messages
Hi,everyone. I want to create a small vbscript in order to delete some folders. Assume that if the position is c:\test, and there are several folders below c:\test, for example, folder A, folder B, and so on.But it will be created ...
HTA "Malicious script detected"
McKirahan -
26 Jan 2006 3:13 AM - 3 messages
I've got an HTA (HTML Application) that writes to a log file. It runs daily and generates timestamped entries into a log file. Symantec's Norton AntiVirus identifies it with a "Malicious script detected -- High Risk" dialog box. I manually authorize this script each time but would ...
Script newbie
pk -
26 Jan 2006 2:14 AM - 2 messages
I wish to make use of "script" to copy one file to network clients, via GPO in AD and publish to computers. I am new to scripting, any advise welcome. Have looked at MS Scripts Centre, nothing there, only a sample for running ...
List of all user Account in Active Directory for .NET
Sidhi-List all user Account in AD -
26 Jan 2006 1:46 AM - 3 messages
Hi, I'm using a .Net web application to list all user account in AD. here is my listing : Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click 'List all User ...
MSH and System.DirectoryServices.ActiveDirectory
RichS -
25 Jan 2006 8:03 PM - 3 messages
Does anyone have examples of using System.DirectoryServices.ActiveDirectory with MSH. I was looking for an example of ceating a site or subnet but any examples would be useful Thanks ...
MSH or VBS
J Ford -
25 Jan 2006 7:21 PM - 3 messages
I have a iPlanet LDAP server installed on a Windows 2003 server, I was wondering with any scripting style ("prefered Monad or VBS") to have R/W capabilities to it? Could somebody point me where to look or provide a ...
Assigning limited admin privileges
adrianj -
25 Jan 2006 6:57 PM - 3 messages
Is there any way using scripts that i can allow a user on my network privileges to unlock a pc after a user has locked it???? ...
Disabling and moving users
Marc B -
25 Jan 2006 6:32 PM - 2 messages
I am trying to create a script that would disable and move a user to a disabled ou. Does anyone no a good script that woould do this? Thank You in advance ...
Addtional Info
MikeC -
25 Jan 2006 5:00 PM - 5 messages
FYI, I just tried to copy a file to a W2K3 zipped folder using the FileSystemObject and got the same results. Const OverwriteExisting = TRUE Set objFSO = CreateObject("Scripting.FileSystemObject") objFSO.CopyFile "C:\FSO\ScriptLog.txt" , "D:\Archive.zip\", OverwriteExisting The script works great when copying to a 'normal' folder. ...
Change DNS Record
John F -
25 Jan 2006 4:42 PM - 3 messages
Hi, Is there an easy to change the IP address of a DNS record in a script? Reason: A script is copying data from one computer to another. When the copy is finished the new computer will replace the old one. ...
Reading GPO information
fcny -
25 Jan 2006 3:44 PM - 3 messages
I have a VB script that reads all the GPO's in the domain. The only Feacture that I'm missing is how to tell if the GPO is link and if so to what OU's. ...
Using copy command to a zipped folder
MikeC -
25 Jan 2006 2:50 PM - 3 messages
I have various Windwos 2000 and Windows 2003 servers in my environment. For log file archiving purposes in the past on the W2K servers, I use a command line zip program in a script to archive older logs. ...
Can you add a user from the Monad command line ?
Patrick -
25 Jan 2006 8:44 AM - 2 messages
Is it possible to create a new user account using MSH (Monad) ? If so, how ? Regards, Patrick. ...
should be an easy 'FIND' for you experts out there
joe cullen -
25 Jan 2006 3:27 AM - 3 messages
Hi I need a script that will search all files in a folder and pick out the first 10 chars on line 1 of the file. I found a script that loops through all files, but I can't seem to code the extract line...can you help please?? ...
[MSH] Parsing System.Drawing.Size in B3
/\/\o\/\/ [MVP] -
24 Jan 2006 10:29 PM - 26 messages
This did work before : MSH>[System.Drawing.Size]"12,12" Cannot convert "12,12" to "System.Drawing.Size". Error: "12,12 is not a valid value for Int32." At line:1 char:22 + [System.Drawing.Size]" <<<< 12,12" ...
SCripting
Burdus -
24 Jan 2006 6:56 PM - 3 messages
Hi, I am beginner in script world. I would like to learn me more about how to make and implement logon script(Win2003Server-XP Client). I'd appreciate if someone can help me to fined more about that. ...
[MSH] A Blast from the Past
Keith Hill [MVP] -
24 Jan 2006 5:42 PM - 3 messages
I was looking over my internal blog and came across this entry that I posted way back in Feb of 2003. I thought some of the MSH folks might get a kick out of it. :-) Microsoft Next Generation Shell ...
Converting DWORD Values from Registry ASCII Export File to Int.
vegasjoe -
24 Jan 2006 4:51 PM - 3 messages
The script that I am working on reads an ACSII export of a registry key. Then the script compares this source file with what is actually on the destination computer's registry. If there are any missing values this script will add the ...
script to allow dial-in for multiple users in a OU.
vsavino -
23 Jan 2006 10:17 PM - 2 messages
Allow dial-in for several users at one time is not available in Active Directory like setting password never expires and so on. Need a script that will set to allow dial-in for all the users in a OU. ...
I need a script that will pull this information.
michaelr1831 -
23 Jan 2006 9:13 PM - 3 messages
Platform OS Version HBA Count HBA Make & Model WWPNs of HBAs HBA Driver Name / Version Server Size (GB) Information on NAS storage ...
Find and Replace a File
OldDog -
23 Jan 2006 8:17 PM - 4 messages
Hi, I am looking for a script or a utility that will search a server for a specific file and if found, replace it with another file. I have found many "Find and Replace" tools for finding text in a file, but none for ...
Need help deleting files
donnyboy -
23 Jan 2006 7:07 PM - 4 messages
Have a store bought application that leaves many tmp files after it shuts down. Six months ago wrote a script to run from the startup folder to delete these files before they overrun a PC. It hase worked perfectly whether it ...
Need help to find all server hard disk inventory
Vikram Samnt -
23 Jan 2006 4:49 PM - 2 messages
Dear All, Thanks to Microsoft and all people who dedicatated for MS products. I need one help for finding out any script or any free tool which find out my all servers hard disk size and current available space through remotely on ...
CMD Script: Run Task against Every Domain Controller
anonymous -
23 Jan 2006 1:28 PM - 7 messages
Hi, I'd like to know if it is possible to do the following in a CMD Shell script. For each DomainController in DomainControllers OU Domain Controller = X run task on X next Basically to enumerate the Domain Controllers in a domain and run a remote ...
Help needed setting user security rights through a script
Fran -
23 Jan 2006 1:07 PM - 4 messages
I have a user that gets a new version of an application monthly. This requires the uninstall and reinstall of the application (it's a poor design to be sure but I have to deal with it as it's a company product ...
Is it safe to say that in Monad...
Luis Abreu -
23 Jan 2006 12:27 PM - 5 messages
Every object used on the shell is wrapped by an instance of MshObejct? I still didn't had any time to study the internals, but I've been seeing several references that lead me to believe that this is true. Is it really ...
What did MshSnapin installer do during installation process?
TonyDeSweet -
23 Jan 2006 3:25 AM - 2 messages
public abstract class MshSnapIn : MshSnapInInstaller public abstract class MshSnapInInstaller : MshInstaller public abstract class MshInstaller : Installer So if install snapin using installutils.exe, what did MshSnapin installer do? For example, write what registry value? ...
Close and save a spreadsheet
TomKing -
23 Jan 2006 12:35 AM - 6 messages
I have sheduled a script to write stuff into an exist spreadsheet. After it completed, Excel always ask if you want to save it or not. How to skip this message window and defaultly choose yes? ...
[MSH] "Are you sure you want to continue?"
Dominik -
22 Jan 2006 6:13 PM - 4 messages
hi, i wrote a script which deletes some files/folders: .... remove-item $item.fullname -force -errorvariable +err .... but when i run this script sometimes this message pops up: Confirm The item at ... has children and the -recurse parameter was not ...
|
|||||||||||||||||||||||