troubleshooting Question

Reading fdeploy.ini from GPO with VBS

Avatar of itnifl
itniflFlag for Norway asked on
VB ScriptWindows Server 2008Windows Server 2003
1 Comment1 Solution842 ViewsLast Modified:
I am only displaying the relevant part of the code, the part that reads the file.

I am trying to read \\domaincontroller\sysvol\domain.suffix.com\Policies\{0A6D9D8D-606C-4AFB-80B0-7B8A2B441825}\User\Documents & Settings\fdeploy.ini to get the GPO redirected start menu path. I am trying this in VBS.

Seems like that I am getting only blank lines, even though my user account has full access.

What am I doing wrong?
Set oSettingsFile = oFSO.OpenTextFile(strFilePath,ForReading)
			Wscript.Echo "Opening file: " & strFilePath
			Do Until oSettingsFile.AtEndOfStream  
				strLine = oSettingsFile.ReadLine 
				Wscript.Echo strLine
				If sendNextLine = True Then
					pathsfound = pathsfound & strline & " | "
					wscript.echo "What we have f ound thus far is: " & pathsfound
					sendNextline = False 
				End If
				If InStr(Trim(strLine),"[Start Menu]") Then
					sendNextLine = True
				End If
			Loop

Open in new window

ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros