|
How to run a scheduled task via a batch job
How do I kick off a scheduled task in a batch script? We can bring up
the scheduled tasks GUI interface, select a job and click run to run
the job direct. But can I do it via a batch job?
...
|
4 |
5/18/2007 1:05:51 PM |
|
write to eventlog?
does anyone have an example of how to write to an eventlog in PowerShell? I
need to record success or failure of a script to Application log.
Thanks much....
|
2 |
5/18/2007 12:24:29 PM |
|
WMI script doesn't return data for root\MicrosoftExchangeV2
Hi,
I am trying to get a list of routinggroup / status, so i wrote a pretty
simple WMI script which is somewhat like this
strComputer = "."
Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\"
& strComputer & "\root\MicrosoftExchangeV2")
Set colItems = objWMIService.ExecQuery( _
"SELECT * FROM Exchange_Server",,48)
For Each objItem in colItems
Ws...
|
1 |
5/18/2007 12:14:00 PM |
|
WMI script doesn't return data for root\MicrosoftExchangeV2
Hi,
I am trying to get a list of routinggroup / status, so i wrote a pretty
simple WMI script which is somewhat like this
strComputer = "."
Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\"
& strComputer & "\root\MicrosoftExchangeV2")
Set colItems = objWMIService.ExecQuery( _
"SELECT * FROM Exchange_Server",,48)
For Each objItem in colItems
Ws...
|
1 |
5/18/2007 12:14:00 PM |
|
Script help needed!!
Hi,
I need to create a batch file to check a list of computers which is in
Active directory or not.
I can query this by using simple dsquery computer command.
but i need to write a script which will take the system name from my
notepad(using for each %1 in test.txt)
I need the output in the format hostname firstcolumn and Availability
(yes/no) in the next column.
Pls. some one he...
|
4 |
5/18/2007 7:31:26 AM |
|
is there an option to 'task schedule' a non interactive batch file?
Hi All,
In the good(?) old days Windows schedulers had an option to make your
job interactive (or not). With Windows 2003 there is no longer any
such option that i can see.
All i want is to run a batch file in the background - i do not want to
see a command window pop up where/while it runs.
Is there a way to do this?
Thanks for any input!
Chris
...
|
3 |
5/17/2007 8:39:55 PM |
|
How to get a listing of expired Active Directory user accounts ?
Hi,
I need to get a list of user accounts that have expiry dates set and have
expired.
I have tried customising this vb script, obtained from the MS Technet site,
no error generated but also no output:
___________________________________________________________________
On Error Resume Next
Set objUser = GetObject _
("LDAP://cn=MyerKen,ou=Management,dc=NA,dc=fabrikam,dc=com"...
|
5 |
5/17/2007 3:59:54 PM |
|
Execute a scheduled task immediately via a batch script
It sounds weird. I know I can bring up the schedueld tasks interface
and click run to run a task.
However, I would like to do so in a batch script. Is there a way?
Thanks
...
|
2 |
5/17/2007 12:40:29 PM |
|
function reuse
How do I reuse a function in one script file, say foo.ps1 from another script
file say main.ps1?
Confused about modular programming with PowerShell !
Thanks much.
...
|
5 |
5/17/2007 9:58:01 AM |
|
List all the files of specific extention on remote Cluster Node
Hi,
I have problem to run vbscript to list all the files of specific extention
on remote Cluster Node. I have about 20 cluser servers around the world I
want to find all the MP3 files on my servers. I am able to get result on some
servers but not on all. I get no error but my code list no file but I see
many file on the server.
I am useing this code
strComputer = "."
Set objWMISe...
|
4 |
5/16/2007 10:24:06 PM |
|
Powershell to set display property settings?
I would like to set cleartype method to smooth edges of screen fonts in
display properties->appearance->effects.
Anyone know how to do that?
Thanks!...
|
1 |
5/16/2007 6:51:03 PM |
|
Mailbox Rights
Is there a way to read the "mailbox rights" of all users in my Active
Directory using vbscript or another tool?
Thanks!!!
Felipe
...
|
2 |
5/16/2007 6:09:36 PM |
|
Create 1000 sample Accounts
Ok, i ran this script that i got from the script repository and it worked.
Only thinkg i need to know how to do now is either figure what the password
is for all these accounts or find a way to change all 1000 of these accounts
passwords without manually doing it. The script i used is below
Set objRootDSE = GetObject("LDAP://rootDSE")
Set objContainer = GetObject("LDAP://cn=Users," & _...
|
5 |
5/16/2007 5:50:08 PM |
|
Execute a batch job remotely
I know how to execute a vbs script on a remote server. However, I have
a few batch scripts (written in the traditional batch command) that I
want to execute remotely. Is it possible?
Thanks for any hints.
Anthony
...
|
7 |
5/16/2007 4:46:58 PM |
|
Windows Server 2003 and Exchange 2003
I work in a school and every year we have to create hundreds of user accounts
and email accounts, similarly at the end of the year we have to delete
hundreds of leavers.
Is there any script out there that could do these tasks for us?
I've seen scripts to make user accounts but that's only half the story, what
about the email accounts as well?
Am I the only one who can't find a solut...
|
2 |
5/16/2007 1:55:43 PM |
|
msrdp in vbs
is it possible to use the windows remote desktop connection in a vb script?
if so can anyone help me with that..
i found that i can be embeded in awebpage
http://msdn2.microsoft.com/en-us/library/aa380809.aspx
likewise in a vbscript?...
|
8 |
5/16/2007 11:39:00 AM |
|
send a keystroke in rdp
when i use a rdp file to connect it prompts for an "ok" dialog box
after clicking on that it prmopts for UID and pass to authenticate?
how do i give the ok click in the script itself or in rdp file itself
...
|
4 |
5/16/2007 11:25:02 AM |
|
word to excel
i have some input in a word document and i want to export it into a excel
document thru script, can some help me with this?...
|
1 |
5/16/2007 11:10:00 AM |
|
check the file permissions in the advanced serttings
i want to the file permissions of a folder/file in the advanced and normal
settings and list all that are given for that particular file or folder?...
|
1 |
5/16/2007 11:08:00 AM |
|
.run method in logon script
Hi,
I am trying to use the following script as a per computer logon script:
---
set wshShell = CreateObject("Wscript.shell")
On Error resume next
key = "HKLM\SOFTWARE\UPDATE\INSTALLED"
test = wshshell.regread(key)
If err <> 0 Then
wshShell.run WindowsUpdateAgent30-x86.exe /wuforce /quiet
wshShell.run WindowsXP-KB927891-v3-x86-DEU.exe /quiet /norestart",0,TRUE)
...
|
3 |
5/16/2007 7:29:43 AM |
|
Looping through all users in Active Directory + seting data in a f
I want to create a script that would loop through all users in Active
Directory and puts a number in the "Office" field.
Psudocode:
Loop while Object is a user
Put number in Office Field
Repeat with next user...
|
3 |
5/16/2007 4:38:01 AM |
|
How do I copy an icon to multiple client machines?
I'd like to script a way to copy an icon to multiple client machines. I'm
very new to this scripting thing, and I've come to a dead end. Any help
would be greatly appreciated.
...
|
4 |
5/16/2007 12:27:10 AM |
|
View free space harddisk on remote PC
Hi all,
On every week we must provide free space hardisk information. Ihave tried to
run this script :
------------
Option Explicit
Const HARD_DISK = 3
Dim arrArgs, strComputer, objWMIService, colDisks, objDisk, lngFreeSpace
Set arrArgs = WScript.Arguments
If arrArgs.Count = 1 Then
strComputer = arrArgs(0)
Else
strComputer = InputBox("Enter the Computer Name to check Fre...
|
7 |
5/15/2007 9:56:09 PM |
|
×Ô¶¯²éÕÒÎļþ²¢É¾³ýµÄ½Å±¾Ôõôд£¿
ÎÒÏëÔÚÓû§µÇ¼¼ÆËã»úʱͨ¹ý½Å±¾×Ô¶¯²éÕÒ ¡°QQ.exe¡±È»ºó°ÑËüɾ³ý£¬ÕâÑùµÄ½Å±¾Ôõ
ôд£¿Çë°ïæ
--
My Blog:http://mvisual.vicp.net
QQ:140869
Msn:pupil9621#hotmail.com
...
|
1 |
5/15/2007 8:32:49 AM |
|
URL Shortcut Icon Change
I'm currently looking to deploy an URL shortcut to users desktops, but I want
to use a custom icon. How can I do that? Any help would be appreciated.
Below is what I have currently to deploy shortcut using default IE shortcut
icon. Thanks.
set WshShell = WScript.CreateObject("WScript.Shell")
strDesktop = WshShell.SpecialFolders("Desktop")
set oShellLink = WshShell.CreateShortcut(...
|
4 |
5/15/2007 2:29:30 AM |