![]() | Register | FAQ | Members | Social Groups | User Map | Calendar | Search | Today's Posts | Mark Forums Read |
Windows Vista
Windows Vista forum sponsored by |
| ||
| | | LinkBack | Thread Tools | Search Thread |
| Sponsored Links |
| | #1 |
![]() Join Date: Apr 2006 Location: West Midlands
Posts: 272
Thanks: 14
Thanked 12 Times in 11 Posts
Rep Power: 9 ![]() | I have full admin and domain rights and this only occurs on Vista - on XP it's not a problem. I use Roaming Profiles and deleting it and starting fresh seems to solve the problem a bit and then it reoccurs after a while. The error occurs on the second from last line. Code: 'CONSTRUCTORS
'----------------------------------------------
Option Explicit
Dim objNetwork, objSysInfo, strUserDN
Dim objGroupList, objUser, objFSO
Dim strComputerDN, objComputer
Dim WshNetwork
Dim UserName
Dim ComputerName
set Wshnetwork = CreateObject("WScript.Network")
Set objNetwork = CreateObject("Wscript.Network")
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objSysInfo = CreateObject("ADSystemInfo")
strUserDN = objSysInfo.userName
'ERROR HERE LINE 44 BELOW!!>>>>>>>>>>>>>>>>>>
strComputerDN = objSysInfo.computerName
Set WshNetwork = WScript.CreateObject("WScript.Network")
Any help greatly appreciated! Thanks |
| |
| | #2 |
![]() Join Date: Jun 2005 Location: Lancaster, Lancashire, UK.
Posts: 223
Thanks: 13
Thanked 20 Times in 16 Posts
Rep Power: 12 ![]() ![]() | What about: Set WshNetwork = WScript.CreateObject("WScript.Network") strComputer = WshNetwork.ComputerName strUser = WshNetwork.UserName |
| |
| | #3 |
![]() Join Date: Apr 2006 Location: West Midlands
Posts: 272
Thanks: 14
Thanked 12 Times in 11 Posts
Rep Power: 9 ![]() | |
| |
| | #4 |
![]() Join Date: Jun 2005 Location: Lancaster, Lancashire, UK.
Posts: 223
Thanks: 13
Thanked 20 Times in 16 Posts
Rep Power: 12 ![]() ![]() | |
| |
| | #5 |
![]() Join Date: Jul 2005 Location: Wandsworth
Posts: 1,429
Thanks: 9
Thanked 16 Times in 11 Posts
Rep Power: 12 ![]() | |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Photostory Access denied error. | ICT_GUY | Windows | 18 | 05-05-2009 10:46 AM |
| vbs overflow error | strawberry | Scripts | 5 | 04-09-2008 10:31 AM |
| Sub within a sub - VBS Script | FN-GM | Scripts | 5 | 18-05-2008 06:30 PM |
| VBS Script to copy a folder | FN-GM | Scripts | 2 | 23-02-2008 01:08 PM |
| Trace a VBS Script | chalkwellstu | Scripts | 3 | 25-01-2008 11:34 AM |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search Thread |
| |







