This message was deleted.
# _general
s
This message was deleted.
k
@Nick Panaccio aren't you running Windows Defender in your VDI setup?
n
Yep - never onboard your master image.
👍 2
And if you have, you have to reverse it and manually remove some keys. Hold on, I've got a link with more details on that.
Look for the bit about the offboarding script. You basically run that.
r
I have a word doc with details as well that may help. I started going down this path and got about 80% way done. Then they switched gears. But @Nick Panaccio did it all.
n
But generally speaking, we don't onboard our master images at all. We run the onboarding scripts via GPO (startup script), which are only applied to the VDAs.
💯 1
w
so i got the offboarding script
which uses psexec to delete some files
but I can't even stop the 'sense' service
which is where I'm getting stuck
I guess if I take your approach nick, using GPO to run the startup script, I will not have the issue
n
I don't know if the Sense service matters if you're offboarding, honestly. All I've read is that you mainly need to be worried about the GUIDs in the registry and some files, and if you remove those in your master, you should be fine.
w
Yeah I can't remove the files or the GUIDs once that service is running
I'll give it another bash using GPO to run the startup script, thank you everyone
n
The startup script works, but you definitely need to remove that info from your master image first.
w
yes I'm just running the startup script by placing it into c windows system32 group policy startup instead of to running it via gpo
n
Have you tried running psexec as SYSTEM to run the offboarding script?
w
yup
n
Unless I'm misreading the offboarding script, it doesn't look like it's actually trying to stop the sense service, just checks to see if it was stopped.
w
yup exactly that, so I tried various ways to stop the service including using pexec but no dice
b
Safe Mode?
w
Yeah that was my next step, but I was also concerned about operational changes we would need to implement for updating our images (we got 8 images which require manual update at the mo) - asking the engineers to boot into safe mode to offboard, then back into normal mode to do their bits seems a bit much
j
Was just about to go down this road. This is VERY helpful - thank you William and Nick.