
IF.%%2.==.Error.SETCTLERROR=TRUE
)
IF.%CTLERROR%.==.TRUE.gotoERROR_CTL
gotoDELEND
:ERROR_IMP
gotoEND
:ERRPR_CTL
gotoEND
:DELEND
DEL/F%ResultFile%
:END
ENDLOCAL
Samplepowerplandeployment
Thissectionprovidesinstructionsonhowtodeploythepowerplanstepbystep.
Todeploythepowerplanstepbystep,dothefollowing:
1.OntheITadministratorcomputer,dothefollowing:
a.ExportthepowerplanandsaveitasthePPD_PLAN.inifile.See“Exportingthepowerplan”
onpage51.
b.CreatethelogonscriptandsaveitasthePowerPlanDeployment.batfile.See“Samplescript”
onpage54.
2.Ontheserver,dothefollowing:
a.SetuptheActiveDirectorydomainontheWindowsserver.
b.Createafolderontheserverandsetthefoldertobeshared.
c.MovethePPD_PLAN.inifilethatyoucreatedontheITadministratorcomputertothesharedfolder
ontheserver.
d.ClickStart➙AdministrativeTools➙ActiveDirectoryUsersandComputers.TheActive
DirectoryUsersandComputerswindowopens.
e.Createauserwiththename“Pwr01”andagroupwiththename“PwrGroup” .Then,addthePwr01
usertothePwrGroupgroup.
f.ClickStart➙AdministrativeTools➙ServerManager.TheServerManagerwindowopens.
g.UnderFeatures,clickGroupPolicyManagement➙Forest:YOURDOMAIN➙Domains.Then,
right-clickthesubitemYOURDOMAINandselectCreateaGPOinthisdomain,andLinkithere.
TheNewGPOwindowopens.
h.Type"PwrGPO"intheNamefieldandclickOK.AnewitemPwrGpoiscreatedunder
YOURDOMAIN.
i.ClickPwrGPO.Amessageboxisdisplayed,promptingyouthatyouhaveselectedalinktoaGroup
PolicyObject(GPO).ClickOKandthePwrGPOwindowopens.
j.OntheScopetab,clickAddintheSecurityFilteringarea.
k.Type"PwrGroup"intheEntertheobjectnametoselectfieldandclickOK.AnewitemPwrGroup
iscreatedintheSecurityFilteringarea.
l.SelectAuthenticatedUsersintheSecurityFilteringareaandclickRemove.Amessageboxis
displayed,promptingyouthatwhetheryouwanttoremovetheitem.ClickOK.TheAuthenticated
Usersitemisremoved.
Chapter4.Deployingthepowerplanwiththepowerplandeploymentfunction55
Kommentare zu diesen Handbüchern