Okay.
So let's take a spin around Scripps policy and see how we can get started with this.
So I'm going to go ahead and added a GPO I created called Scripts Policy.
And I'm going to go in under computer configuration policies.
Windows, settings, scripts.
And then double click the start up scripts area and you'll see that I have a few options here.
If I show files.
What this does is it actually brings up the default location where you can store scripts and you'll
notice that it's in a sensible path.
Remember, the sizzle is the folder that's replicated in all domain controllers.
It's where most of the policy areas store their settings for group policy.
And you'll see here, this is the grid of the GPO and the fact that it's in the machine folder indicates
it's a computer script and under startup.
So I can actually create or drop a folder in here as I'm referencing it right now because I'm referencing
it according to the Domain DFC share and it's going to give me a read only error.
But it's showing me the option I have to see or select or at least view what scripts are currently available
in this folder.
Now when I go in undergrad, this is where I add a reference to the script that I want to run.
And if I go ahead and browse, you'll notice it takes me to that same location again.
And from here I can actually go right click text document and I can create a script in here.
I can call it log on bat and I can actually edit it.
And I can say put in a net use Z backslash backslash pointing to our to test titled backslash user backslash
public and go ahead and save that.
And selected by clicking open.
And I've now got the script here that I selected.
So the other option you'll notice here is support for script parameters.
If you had a script that took command line parameters, you could provide them in this block here.
And it would get passed to the script as it executed.
It could be an executable that takes command line parameters.
And the same holds true here.
So if I were to click okay here then this log on dot bat reference is added to this GPIO and it will
run at the next boot cycle.
So I'm just going to go ahead and cancel out of this.
First, I want to just show you quickly the PowerShell section.
This was added, as I mentioned, in Windows seven and Server 2008 R2, and it allows you to have PowerShell
scripts just as you can have regular other kinds of scripts or executables.
And you can through this dialogue, you can actually control whether PowerShell scripts run first in
the GPO versus the regular scripts that are from this tab right here.
So you can control that order if you need to.
So that's just kind of a quick introduction to how Scripps works, and I'm going to dive in and give
you a little bit of a scenario here in a bit.
But I wanted to kind of introduce the UI and sort of how to navigate it.