Get answers from your peers along with millions of IT pros who visit Spiceworks.
Join Now

Hello,

   I recently removed a group policy on one of our test machines that initially pushed a powershell script to it. But now the issue is that the test machine seems like it is trying to still run the powershell script and when I log into it I receive a Windows Host Script error which says file \\domainname\NETLOGON\xfile.vbs can not be found. Anyone familiar as to why this is occurring? I would appreciate any info. 


Learn windows general
With tons of resources, progress tracking, and achievement badges you're bound to improve your IT skills.
TEST YOUR SMARTS
Which of the following retains the information it's storing when the system power is turned off?
  • GPU
  • RAM
  • CPU
  • ROM
88% of IT pros got this right.

4 Replies

· · ·
devineg
Anaheim
OP
devineg

It possibly hasn't removed the GPO. Try running gpresult /h gpresult.html and examine the gpresult.html file to see if a GPO is still trying to call it.

0
· · ·
tulioarends
Tabasco
OP
tulioarends

Did that GPO create a scheduled task? It might have Tattooed.

0
· · ·
williamacevedo
Pimiento
OP
williamacevedo

Hey @devineg, I went ahead and ran the GPresult and the GPO was not on the list. I am not sure why the script is trying to run when the file no longer exists. I went into appdata and located the Group Policy that was on the local machine and deleted the scripts that were still listing there but that didn't do much either. Not sure what is going on. Thanks for helping me run that report. 

0
· · ·
williamacevedo
Pimiento
OP
williamacevedo

It did have a scheduled task. How would I go about removing that? I figured it would not longer run the task upon removing the GPO. 

0
Oops, something's wrong below.