Hi Guys
Finally I have figured it out so, pls don't bother.
Thanks
User Profile
Collapse
-
Alternate Credentail
Hi
Is anyone here who can help me to get this scripts running under alternate credentials.... .............
Code:''''''''''''''''''''''''''' ''''''''''''''''''''''''''' ' Monitor EDID Information' strComputer = Trim(inputbox("Enter name or IP address of local or remote computer")) Dim oDisplaySubKeys : Set oDisplaySubKeys = CreateObject("Scripting.Dictionary")
-
Hi Sashi,
Here is the 2nd half
Code:Function GetSerialFromEDID(strEDID) 'a serial number descriptor will start with &H00 00 00 ff strTag=chr(&H00) & chr(&H00) & chr(&H00) & chr(&Hff) GetSerialFromEDID=GetDescriptorBlockFromEDID(strEDID,strTag) End Function Function GetModelFromEDID(strEDID) strTag=chr(&H00) & chr(&H00) &
Leave a comment:
-
Hi Sashi,
Well, I have a scripts that collect the remote computer monitor information remotely but it only works now if you log on to a machine with administrator and if the remote machine and local machine has same administrator password. The script is too long, thats why i could not paste it here. But I will now in two separate post. pls have a look.
First Half
Code:Const DISPLAY_REGKEY="HKLM\SYSTEM\CurrentControlSet\Enum\DISPLAY\"
Leave a comment:
-
vb script with alternate credential
Can anyone help me with this this to run under alternate credentials. What would be proper syntax for that. pls explain and show me how if you can.
Code:Set GetWMIRegProvider=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & StrLine & "\root\default:StdRegProv")
-
Hi Guys,
I hope you can help me little more. I have a script that run and collect remote computer monitor information but only if I am logged on the local machine as administrator and if the admin password of the remote and local machine is same. I have work around with this and got stuck at the point where I need to authenticate with the remote machine for the following entry
Code:Set oRegistry = GetObject("winmgmts:{impersonationLevel=impersonate}!\\"
Leave a comment:
-
Hi willakawill
Thank you very much. You guys are ausome. I will check it over the weekend as I will be very busy Friday. I will let u know if there is any problem. But it looks to me would work perfectly.
Again thanks a lot.
I must say this is a wonderful forum.
Keep it up guys!Leave a comment:
-
Hi Willakawill,
It just came in my mind, how do you implement an input box so that you can input the start and end row number when you double click the scripts which will replace the 10 and 20 in the follwoing code;
thanks...Leave a comment:
-
Thanks willakawill,
Thank you very much, I knew it could be very simple things but you know as I am a novice in this and learning everyday, it has save me a lot of hassle. I was not comfortable until find this. I tried and it works fine. Again, thank you killer42 and willakawill for responding my postings.Leave a comment:
-
Thanks for your reply. what I understand from your comment is it is retrivening 10th to 20th record from the querry but I want it should read the 10th to 20th row from the table and retrieve all that from the wmi what I have mentioned to get. So I am looking to modify something in my scripts at
[quote]
objRecordset.Op en "SELECT * FROM tbl_inventory" , objConnection, _
adOpenStatic, adLockOptimisti c
[/qoute]...Leave a comment:
-
Hi Killer42
Thanks for your reply. But I am not quite sure exactly where you want to put your
in my script to get the result I want. My table first colum is sequential number like 1 and so on. 2nd colum is the ip address. So I want the script read the table from say for row 10 to row 20 and ping the ip address of the corresponding row and do the things it supposed to do. Pls see my scripts in my earlier post and let me know exactly...Leave a comment:
-
Thanks killer42. What I want is to say for run from row 10 through row 20 and in times it may change from row something to row something. I hope that clears and pls show me exactly how the code would be. My table first colum is sequential number 1..2..3..4.. then the 2nd row is computer ip. So the code should be read the row 10 ping the compuer ip then do what it supposed to do and move to next row and so on until row 20.
Thanks a...Leave a comment:
-
This is a access 2002 table. what i am trying to do is-- I have a table with ip number. I run my scripts which read that table line by line and populate info from WMI into the table. What I am lookin is to read certain record eg: from 10-20.
here is the scripts.......Leave a comment:
-
VB script help needed
Hi everyone,
I am a novice in vb scripting and trying to get something from it. I have a scripts that read an existing table, take the argument from 2nd column ( Firs colum is sequential number) and then populate the other colulm with info. Now my question: what would be the code to ask the scripts to read the table read the certain row number for example from row 10-20.
Could someone pls help me?
Thanks in advance
No activity results to display
Show More
Leave a comment: