Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Windows Server » microsoft.public.windows.server.scripting

HTVi
TV Discussion Newsgroups

Threads Replies Last Post
17 Pages: 1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  17  
Variable
I'm trying to add a string to a number example number= "12345" I now want to add the below DD_ So it looks like this DD_1234 When i run a msgbox, its fine msgbox "DD_"&number but when I run a command like WShell.run "%COMSPEC% /C dir >> c:\temp\DD_"&"number" I get c:\temp\DD_number And not the actual number I want, it should be DD_12345 Any thoughts ...
3 11/23/2008 10:21:01 PM
How can I do a WMI Bulk data retrieval ?
Hi, The following WMI query executes fine and outputs the Processor details On Error Resume Next strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colItems = objWMIService.ExecQuery("Select * from Win32_Processor") For Each objItem in colItems Wscript.Echo "Address Width: " & objItem.A...
6 11/21/2008 4:37:01 AM
Monitor Folder Recursively using WMI
I am writing a VBscript to monitor a folder for file creation and deletion. This is a script that I copied from Microsoft Scripting Guy to start with. It works well except that it only monitors file activities on the root of the folder. I would like it to recursively monitor sub-folders as well. Any suggestions? strComputer = "." Set objWMIService = GetObject("winmgmts:\\" & ...
3 11/21/2008 3:31:14 AM
What is error '80041003', please?
Hello I am getting an '80041003' error, but I'm not sure what it means. Here is the script: <%@ LANGUAGE="VBSCRIPT" %> <% ' Please indicate where notifications should be sent Const ADMIN_EMAIL = "myEmail@whatever.com" ' Please provide the following details for your SMTP server Const SMTP_SERVER="mail.whatever.com" Const SMTP_PORT = 25 ' Do not change if you are unsure ...
8 11/20/2008 11:57:01 AM
How to add a computer account with any domain users can take it in to my AD
I have a script whitch works well.It read some infomation such as name,department from a excel file,and then it create user accounts for these person.Usualy I mannulay create the Computer Accounts for them,and with the option "Domain users can join them into AD" .Now I have Many person to join my AD,I want do that job within my script.I know how to create a computer account with script,b...
1 11/20/2008 10:07:00 AM
managing NTFS permissions - cacls or wmi?
cacls or wmi for managing ntfs permissions? I was going to go with cacls but having an issue using 'echo y | cacls...' command? my cacls command is good, it works until I try to echo y into it so it can go without user interaction. Anyone know whats up with that? how is wmi for this? haven't looked yet, just looking for others opinions based on their experiences using either of these ...
7 11/19/2008 9:11:22 PM
querying wmi - recommended structure when iteration seems unnecessary?
Hello, using wsh-vbscript-wmi somewhat new to wmi, working on a project now that has a lot of need to use it... I've been accomplishing a lot of what I need by starting from code examples, mostly from MS MSDN sites and the scripting center. One thing that has been bothering me is that no matter what, the code examples allways seem to use the For Each construct to iterate through a co...
6 11/19/2008 6:50:26 PM
Need to deploy PowerShell
Hi All; I need to deploy PowerShell on my network and I intend to use GPO but powershell is packaged as a standalone updater. I need to transform this to an msi file but i need leads as to the tools I can use. Does microsoft supply any of these as a download or must I purchase it? I need your advice on this and a recommendation for a tool to use. Thanks in advance ...
2 11/18/2008 12:44:35 PM
Simple Ping Script
What are the errorlevels for the ping command? I am trying to create a script that will ping a remote router, and in the event it is non-responsive, will cause the machine the script is running on to reboot without warnings or prompts. Any help much appreciated. ...
6 11/18/2008 7:24:53 AM
accesschk script to include datestamp
Hello All, I would like to automate a daily report of accesschk againsts a file server but would like to include a datestamp, for example; accesschk -rws "group" "folder target" > %datestamp%.txt I would like afterwards to run a diff command (what is the equivalent of this in windows?) against the files and see if any access permissions have changed Any help would be greatly app...
7 11/17/2008 3:05:59 PM
Any Drive Snapshot experts here?
I would like to get advices on scripting its backup command line. ...
1 11/17/2008 1:53:02 PM
User on the system Start up
Hi everyone, I want to know wich user is executing the code that we put on a server on the "Machine Configuration" to be executed on the start up (WSF). I have a problem on the Windows XP registry, because I'm unable to change somes values from this user. Thanks in advance to evyone, G Aranda ...
5 11/14/2008 10:18:42 AM
ANOUNCE: PS Virtual User Group #7 starts in 15 min!
http://marcoshaw.blogspot.com/2008/10/windows-powershell-virtual-user-group.html To join: https://www.livemeeting.com/cc/winserver_usergroup/join?id=4RS44G&role=attend&pw=8%5E-%5CzqX Video: Video will be delivered via the Microsoft Live Meeting client Audio: For attendees, audio will be delivered via the Internet using your computer's speakers. There will not be a call-in number for ...
2 11/13/2008 5:12:50 PM
How to create a unique samaccountname in AD
Does anyone have a script that will check AD for a samaccountname to make sure it is unique. If it isn't, the script should append a 01, 02, 03, etc. Thanks in advance!! -- thehump ------------------------------------------------------------------------ thehump's Profile: http://forums.techarena.in/members/thehump.htm View this thread: http://forums.techarena.in/server-scripting/1069890.ht...
5 11/13/2008 1:10:30 AM
scripting IIS settings?
Hello, all questions below pertian to IIS 6 on Server 2003 1. can IIS be added/removed via script? (either WSH or WMI)? 2. can an IIS web site be created/configured via script? (either WSH or WMI)? ...
3 11/12/2008 9:30:01 PM
Redirecting Output of Script
I must be missing something basic. I have a simple script that calls an external command (subinacl): $homeMapFile = "C:\VOL\AD\data\ad_user_homes.csv" $prefix = "M:\" Import-CSV -path $homeMapFile | foreach-object { $homeDir = $prefix + $_.HOME_DIR & subinacl /file $homeDir /display=owner } The script is saved in "set_permissions.ps1" So now...
2 11/9/2008 6:23:49 PM
Script on Machine Startup GPO
Have a Machine Startup Script configured on GPO. I need to run the windows "Uptime" command and email the result. When I run the script manually it runs fine, on startup it doesn't run (GPO times out). The Authenticated Users and Domain Computers have Full access on the script folder. Is it because of Uptime ? How can I run this on Startup ? Script is something like this: strRun...
5 11/8/2008 5:28:17 PM
Updating SSL with IISCertDeploy.vbs
Hi, I am trying to update SSL certificates across a web server farm by using IISCertDeploy.vbs but I am having problems with it removing the assigned ip address of the website. We host many different websites on each server in our web server farm. Each website has a unique ip address assigned to port 443 and port 80 is unassigned. When I execute the command to update the SSL it remove...
1 11/8/2008 9:46:00 AM
Disk Space of Volume Mount Points
Hiya I need help trying to figure out how to find the size and free space for for volumes that have been mounted as folders within a directory structure. So I have the F:\ drive for example which is a mount point on our SAN. Then within the F drive we have a folder called F:\Logs which is also a mount point on our SAN. I can pull back information on any mount point that has been mount...
3 11/8/2008 12:02:07 AM
Command Script variable value lost during execution
I made a Command Script to determine the version of RoboCopy.exe found of a system but the value of the variable is lost during execution and it get back it's value when exiting the script like if I was using SETLOCAL but I don't use it... The problem occur only when I call the script with no parameter, when I use parameters I get the expected result. Here is the script: :: RCVer....
7 11/6/2008 8:40:01 PM
Script to add username,computername and IP address on every printed pages
I have been working on how to insert/add username,computername and IP address on every printed page on my network printers in order to manage printing and resources. any help will be appreciated!. thanks ...
5 11/6/2008 2:04:47 PM
Script to obtain last password change date
I am creating a script to get the date of the last password change for each user in Users in abc.corp. I am trying to get the syntax right for the Get Object for the user. It keeps failing on the Get Object command with the error 80072030, There is no such object on the server. I copied the command out of the script center and it is supposed to work against 2003 AD. The line is: S...
2 11/1/2008 2:01:46 AM
script terminates before here
Set objUser = GetObject _ ("LDAP://localhost:51008/xxxxxxxxxxxxxxxxxxxxxxxxxx") objUser.Put "KeyValueString", "true" objUser.SetInfo '=================================================================================================================== strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv...
1 10/31/2008 4:28:24 AM
Archive files
I would like to be able to right click on a file or folder and click "archive" and it should take the file or folder, copy it to a subfolder in the present directory called archive, and then rename the file/folder copied with a date suffix. How to: ..Add a batch/cmd item to the right-click menu when clicking on a file or folder ..write a batch file that will. take a file or folder, co...
3 10/30/2008 6:56:29 PM
WMI
Hi everyone, I'm starting to using (WMI) I downloaded the WMI code creator and scriptomatic and I used the Win32_UserAccount, but this doesn't give me the last time that they logged on? I'm starting going crazy with this... :( For example I also nee to get software installed on those servers, again I used scriptomatic to create a script with Win32_Product, guess what?? Not all in...
9 10/28/2008 7:54:50 PM
17 Pages: 1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  17  

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen