|
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 |
18.05.2007 12:14:00 |
|
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 |
18.05.2007 07:31:26 |
|
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 |
17.05.2007 20:39:55 |
|
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 |
17.05.2007 15:59:54 |
|
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 |
17.05.2007 12:40:29 |
|
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 |
17.05.2007 09:58:01 |
|
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 |
16.05.2007 22:24:06 |
|
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 |
16.05.2007 18:51:03 |
|
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 |
16.05.2007 18:09:36 |
|
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 |
16.05.2007 17:50:08 |
|
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 |
16.05.2007 16:46:58 |
|
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 |
16.05.2007 13:55:43 |
|
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 |
16.05.2007 11:39:00 |
|
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 |
16.05.2007 11:25:02 |
|
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 |
16.05.2007 11:10:00 |
|
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 |
16.05.2007 11:08:00 |
|
.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 |
16.05.2007 07:29:43 |
|
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 |
16.05.2007 04:38:01 |
|
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 |
16.05.2007 00:27:10 |
|
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 |
15.05.2007 21:56:09 |
|
×Ô¶¯²éÕÒÎļþ²¢É¾³ýµÄ½Å±¾Ôõôд£¿
ÎÒÏëÔÚÓû§µÇ¼¼ÆËã»úʱͨ¹ý½Å±¾×Ô¶¯²éÕÒ ¡°QQ.exe¡±È»ºó°ÑËüɾ³ý£¬ÕâÑùµÄ½Å±¾Ôõ
ôд£¿Çë°ïæ
--
My Blog:http://mvisual.vicp.net
QQ:140869
Msn:pupil9621#hotmail.com
...
|
1 |
15.05.2007 08:32:49 |
|
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 |
15.05.2007 02:29:30 |
|
A script to Log a machine off
I did a bit of searching and couldn't find anything that I could
modify very easily as my scripting knowledge is quite limited in this
regard, I simply needed a VBScript that force quits everything and
boots the user off the computer.
The idea is that I am taking it and putting it into a Scheduled Task
that checks for Idle time and then boots the user after a given amount
of time, the scri...
|
2 |
15.05.2007 00:09:01 |
|
CScript/WScript broken?
When I run CScript.exe/WScript.exe on my Windows Server 2003 x64 SP2 machine
it returns nothing and doesn't want to run any scripts. I can give it
garbage input and it still just returns to the command line. There is
nothing in the event logs, nothing funky in process monitor. I have tried
re-registering VBScript.dll and JScript.dll with no resolve. On my two x64
SP1 machines it seem...
|
3 |
14.05.2007 20:42:01 |
|
Change Name Case.
email address changes have forced me to change First intial Last to first
initial last. (FTest@here.com to ftest@here.com) is there a way to do it
without having to edit each user?...
|
6 |
14.05.2007 14:13:02 |