Search found 7 matches
Search found 7 matches • Page 1 of 1
Hi, i need to run the script below:'On Error Resume NextstrComputer = "."Wscript.Echo "PC "&strComputer Set objWMIService = GetObject("winmgmts:" & strComputer & "rootcimv2")Set colItems = objWMIService.ExecQuery("Select * from Win32_ComputerSystem",,48)For Each objItem in colItems Wscript.Echo "Use...
- Tue Feb 21, 2012 9:47 pm
- Forum: VBScript
- Topic: Open txt file with administrator privilege
- Replies: 0
- Views: 3819
Hi, i have a vbs script that need to open a file txt and write a text. is it possible open this file with administrator privilege also the file it is running as user belongs to User group ?Actually i use objFSO.OpenTextFile to open file.Thanks
Sorry, maybe my description was not very clear..I need to run a vbs script as administrator but this file register the logon information on a TXT file(logon.txt): the user that is logged on pC, the computer NAME and the date. If i run this script as administrator with task scheduler on the logon.txt...
Hi, i need to run a vbs script at logon with scheduled task and the task run as administrator user . These script run at logon of any users and write to a file USERNAME, PCNAME and DATE. The problem is that using task scheduer the record in the file is always with USERNAME parameter as Administrator...