Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - Run Dcpromo remotely

Reply
 
Old 01-24-2008   #1 (permalink)
Santhosh


 
 

Run Dcpromo remotely

I am implementing Windows 2008 core server as a DC.

Scenario:

Currently I have two machines. One full version of Windows 2008 and One
Windows 2008 Server Core Edition. Both Machines are currently on a workgroup.

From full version of Windows 2008, I am trying to use powershell and
remotely run dcpromo command on Windows Server Core 2008.

It fails saying, if servers are in workgroup, you need trusted connection.

I am not able to create a trust between servers using PowerShell Scripts.

Can someone help me with the scripts and guide me how I can achive my goal?

Thanks

--
Santhosh Pallikara

My System SpecsSystem Spec
Old 01-24-2008   #2 (permalink)
Marco Shaw [MVP]


 
 

Re: Run Dcpromo remotely

Santhosh wrote:
Quote:

> I am implementing Windows 2008 core server as a DC.
>
> Scenario:
>
> Currently I have two machines. One full version of Windows 2008 and One
> Windows 2008 Server Core Edition. Both Machines are currently on a workgroup.
>
> From full version of Windows 2008, I am trying to use powershell and
> remotely run dcpromo command on Windows Server Core 2008.
>
> It fails saying, if servers are in workgroup, you need trusted connection.
>
> I am not able to create a trust between servers using PowerShell Scripts.
>
> Can someone help me with the scripts and guide me how I can achive my goal?
>
> Thanks
>
There are multiple ways to do this. One is using WinRM directly from
PowerShell.

PSH> winrs `-r:https://myserver.com `-u:Username `-p:Password dcpromo

You should also be able to use WMI, but unless you're using the v2 CTP
of PowerShell, you have to use the .NET Framework to set a certain
encryption level.

Mark Minasi provides a "cheatsheet" on using WinRM and the settings
required:
http://www.minasi.com/lhroadshow/lhmanage.pdf

Marco

--
Microsoft MVP - Windows PowerShell
http://www.microsoft.com/mvp

PowerGadgets MVP
http://www.powergadgets.com/mvp

Blog:
http://marcoshaw.blogspot.com
My System SpecsSystem Spec
Old 01-24-2008   #3 (permalink)
Brandon Shell [MVP]


 
 

Re: Run Dcpromo remotely

I am not sure there is anyway to do this.

AFAIK, DCPromo is done in two parts. The prep has to be done on a none core
machine, and then you run DCPromo with the answer file you created.

I am not sure how you would do this. Perhaps psexe would work, but I am not
sure it works against 2008.

"Marco Shaw [MVP]" <marco.shaw@_NO_SPAM_gmail.com> wrote in message
news:uTwC%23fvXIHA.3400@xxxxxx
Quote:

> Santhosh wrote:
Quote:

>> I am implementing Windows 2008 core server as a DC.
>>
>> Scenario:
>>
>> Currently I have two machines. One full version of Windows 2008 and One
>> Windows 2008 Server Core Edition. Both Machines are currently on a
>> workgroup.
>>
>> From full version of Windows 2008, I am trying to use powershell and
>> remotely run dcpromo command on Windows Server Core 2008.
>>
>> It fails saying, if servers are in workgroup, you need trusted
>> connection.
>>
>> I am not able to create a trust between servers using PowerShell Scripts.
>>
>> Can someone help me with the scripts and guide me how I can achive my
>> goal?
>>
>> Thanks
>>
>
> There are multiple ways to do this. One is using WinRM directly from
> PowerShell.
>
> PSH> winrs `-r:https://myserver.com `-u:Username `-p:Password dcpromo
>
> You should also be able to use WMI, but unless you're using the v2 CTP of
> PowerShell, you have to use the .NET Framework to set a certain encryption
> level.
>
> Mark Minasi provides a "cheatsheet" on using WinRM and the settings
> required:
> http://www.minasi.com/lhroadshow/lhmanage.pdf
>
> Marco
>
> --
> Microsoft MVP - Windows PowerShell
> http://www.microsoft.com/mvp
>
> PowerGadgets MVP
> http://www.powergadgets.com/mvp
>
> Blog:
> http://marcoshaw.blogspot.com
My System SpecsSystem Spec
Old 01-25-2008   #4 (permalink)
RichS


 
 

Re: Run Dcpromo remotely

You can create the answer file on the Server core machine. Not sure I would
want to run dcpromo remotely anyway.
--
Richard Siddaway
Please note that all scripts are supplied "as is" and with no warranty
Blog: http://richardsiddaway.spaces.live.com/
PowerShell User Group: http://www.get-psuguk.org.uk


"Brandon Shell [MVP]" wrote:
Quote:

> I am not sure there is anyway to do this.
>
> AFAIK, DCPromo is done in two parts. The prep has to be done on a none core
> machine, and then you run DCPromo with the answer file you created.
>
> I am not sure how you would do this. Perhaps psexe would work, but I am not
> sure it works against 2008.
>
> "Marco Shaw [MVP]" <marco.shaw@_NO_SPAM_gmail.com> wrote in message
> news:uTwC%23fvXIHA.3400@xxxxxx
Quote:

> > Santhosh wrote:
Quote:

> >> I am implementing Windows 2008 core server as a DC.
> >>
> >> Scenario:
> >>
> >> Currently I have two machines. One full version of Windows 2008 and One
> >> Windows 2008 Server Core Edition. Both Machines are currently on a
> >> workgroup.
> >>
> >> From full version of Windows 2008, I am trying to use powershell and
> >> remotely run dcpromo command on Windows Server Core 2008.
> >>
> >> It fails saying, if servers are in workgroup, you need trusted
> >> connection.
> >>
> >> I am not able to create a trust between servers using PowerShell Scripts.
> >>
> >> Can someone help me with the scripts and guide me how I can achive my
> >> goal?
> >>
> >> Thanks
> >>
> >
> > There are multiple ways to do this. One is using WinRM directly from
> > PowerShell.
> >
> > PSH> winrs `-r:https://myserver.com `-u:Username `-p:Password dcpromo
> >
> > You should also be able to use WMI, but unless you're using the v2 CTP of
> > PowerShell, you have to use the .NET Framework to set a certain encryption
> > level.
> >
> > Mark Minasi provides a "cheatsheet" on using WinRM and the settings
> > required:
> > http://www.minasi.com/lhroadshow/lhmanage.pdf
> >
> > Marco
> >
> > --
> > Microsoft MVP - Windows PowerShell
> > http://www.microsoft.com/mvp
> >
> > PowerGadgets MVP
> > http://www.powergadgets.com/mvp
> >
> > Blog:
> > http://marcoshaw.blogspot.com
>
My System SpecsSystem Spec
Old 01-25-2008   #5 (permalink)
Brandon Shell [MVP]


 
 

Re: Run Dcpromo remotely

Rich, other than using a text editor... how did you recreate the answer file
locally?

As per the Docs.

Known issues for installing a server role on a Server Core installation
• You cannot use the Active Directory Domain Controller Installation Wizard
(Dcpromo.exe) on a server running Server Core installation. You must use an
unattended file with Dcpromo.exe to install or remove the domain controller
role.

Alternately, you can run Dcpromo.exe on another computer running Windows
Server 2008 and use the wizard to save an unattended file that you can then
use on the server running Server Core installation.

BTW... I don't think it is wise to do this remotely even if you could.
"RichS" <RichS@xxxxxx> wrote in message
news:764A2AEE-70C1-41CE-BDB2-95C4C696BFC8@xxxxxx
Quote:

> You can create the answer file on the Server core machine. Not sure I
> would
> want to run dcpromo remotely anyway.
> --
> Richard Siddaway
> Please note that all scripts are supplied "as is" and with no warranty
> Blog: http://richardsiddaway.spaces.live.com/
> PowerShell User Group: http://www.get-psuguk.org.uk
>
>
> "Brandon Shell [MVP]" wrote:
>
Quote:

>> I am not sure there is anyway to do this.
>>
>> AFAIK, DCPromo is done in two parts. The prep has to be done on a none
>> core
>> machine, and then you run DCPromo with the answer file you created.
>>
>> I am not sure how you would do this. Perhaps psexe would work, but I am
>> not
>> sure it works against 2008.
>>
>> "Marco Shaw [MVP]" <marco.shaw@_NO_SPAM_gmail.com> wrote in message
>> news:uTwC%23fvXIHA.3400@xxxxxx
Quote:

>> > Santhosh wrote:
>> >> I am implementing Windows 2008 core server as a DC.
>> >>
>> >> Scenario:
>> >>
>> >> Currently I have two machines. One full version of Windows 2008 and
>> >> One
>> >> Windows 2008 Server Core Edition. Both Machines are currently on a
>> >> workgroup.
>> >>
>> >> From full version of Windows 2008, I am trying to use powershell and
>> >> remotely run dcpromo command on Windows Server Core 2008.
>> >>
>> >> It fails saying, if servers are in workgroup, you need trusted
>> >> connection.
>> >>
>> >> I am not able to create a trust between servers using PowerShell
>> >> Scripts.
>> >>
>> >> Can someone help me with the scripts and guide me how I can achive my
>> >> goal?
>> >>
>> >> Thanks
>> >>
>> >
>> > There are multiple ways to do this. One is using WinRM directly from
>> > PowerShell.
>> >
>> > PSH> winrs `-r:https://myserver.com `-u:Username `-p:Password dcpromo
>> >
>> > You should also be able to use WMI, but unless you're using the v2 CTP
>> > of
>> > PowerShell, you have to use the .NET Framework to set a certain
>> > encryption
>> > level.
>> >
>> > Mark Minasi provides a "cheatsheet" on using WinRM and the settings
>> > required:
>> > http://www.minasi.com/lhroadshow/lhmanage.pdf
>> >
>> > Marco
>> >
>> > --
>> > Microsoft MVP - Windows PowerShell
>> > http://www.microsoft.com/mvp
>> >
>> > PowerGadgets MVP
>> > http://www.powergadgets.com/mvp
>> >
>> > Blog:
>> > http://marcoshaw.blogspot.com
>>
My System SpecsSystem Spec
Old 01-25-2008   #6 (permalink)
RichS


 
 

Re: Run Dcpromo remotely

I'm afraid I have to confess to cheating ;-)

I usually use an answer file with dcpromo anyway so I just hacked one of
those. I actually promoted the Server Core machine to be my first DC in the
forest which is not an action I would recommend - it is harder work

Not sure I should say this on a PowerShell forum - but the GUI does have its
uses ;-)
--
Richard Siddaway
Please note that all scripts are supplied "as is" and with no warranty
Blog: http://richardsiddaway.spaces.live.com/
PowerShell User Group: http://www.get-psuguk.org.uk


"Brandon Shell [MVP]" wrote:
Quote:

> Rich, other than using a text editor... how did you recreate the answer file
> locally?
>
> As per the Docs.
>
> Known issues for installing a server role on a Server Core installation
> • You cannot use the Active Directory Domain Controller Installation Wizard
> (Dcpromo.exe) on a server running Server Core installation. You must use an
> unattended file with Dcpromo.exe to install or remove the domain controller
> role.
>
> Alternately, you can run Dcpromo.exe on another computer running Windows
> Server 2008 and use the wizard to save an unattended file that you can then
> use on the server running Server Core installation.
>
> BTW... I don't think it is wise to do this remotely even if you could.
> "RichS" <RichS@xxxxxx> wrote in message
> news:764A2AEE-70C1-41CE-BDB2-95C4C696BFC8@xxxxxx
Quote:

> > You can create the answer file on the Server core machine. Not sure I
> > would
> > want to run dcpromo remotely anyway.
> > --
> > Richard Siddaway
> > Please note that all scripts are supplied "as is" and with no warranty
> > Blog: http://richardsiddaway.spaces.live.com/
> > PowerShell User Group: http://www.get-psuguk.org.uk
> >
> >
> > "Brandon Shell [MVP]" wrote:
> >
Quote:

> >> I am not sure there is anyway to do this.
> >>
> >> AFAIK, DCPromo is done in two parts. The prep has to be done on a none
> >> core
> >> machine, and then you run DCPromo with the answer file you created.
> >>
> >> I am not sure how you would do this. Perhaps psexe would work, but I am
> >> not
> >> sure it works against 2008.
> >>
> >> "Marco Shaw [MVP]" <marco.shaw@_NO_SPAM_gmail.com> wrote in message
> >> news:uTwC%23fvXIHA.3400@xxxxxx
> >> > Santhosh wrote:
> >> >> I am implementing Windows 2008 core server as a DC.
> >> >>
> >> >> Scenario:
> >> >>
> >> >> Currently I have two machines. One full version of Windows 2008 and
> >> >> One
> >> >> Windows 2008 Server Core Edition. Both Machines are currently on a
> >> >> workgroup.
> >> >>
> >> >> From full version of Windows 2008, I am trying to use powershell and
> >> >> remotely run dcpromo command on Windows Server Core 2008.
> >> >>
> >> >> It fails saying, if servers are in workgroup, you need trusted
> >> >> connection.
> >> >>
> >> >> I am not able to create a trust between servers using PowerShell
> >> >> Scripts.
> >> >>
> >> >> Can someone help me with the scripts and guide me how I can achive my
> >> >> goal?
> >> >>
> >> >> Thanks
> >> >>
> >> >
> >> > There are multiple ways to do this. One is using WinRM directly from
> >> > PowerShell.
> >> >
> >> > PSH> winrs `-r:https://myserver.com `-u:Username `-p:Password dcpromo
> >> >
> >> > You should also be able to use WMI, but unless you're using the v2 CTP
> >> > of
> >> > PowerShell, you have to use the .NET Framework to set a certain
> >> > encryption
> >> > level.
> >> >
> >> > Mark Minasi provides a "cheatsheet" on using WinRM and the settings
> >> > required:
> >> > http://www.minasi.com/lhroadshow/lhmanage.pdf
> >> >
> >> > Marco
> >> >
> >> > --
> >> > Microsoft MVP - Windows PowerShell
> >> > http://www.microsoft.com/mvp
> >> >
> >> > PowerGadgets MVP
> >> > http://www.powergadgets.com/mvp
> >> >
> >> > Blog:
> >> > http://marcoshaw.blogspot.com
> >>
>
My System SpecsSystem Spec
Old 01-25-2008   #7 (permalink)
Santhosh


 
 

Re: Run Dcpromo remotely

Rich,

I have a question. Why do you say it is not recommended to make server core
as first DC in the forest?

Can't I run dcpromo on server core, promote it as the DC and then do other
activities from the dsa.msc of a Windows 2008 Server.

That way, my DC will be in Server Core and I can manage it from a 2008
Standard Server.


--
Santhosh Pallikara


"RichS" wrote:
Quote:

> I'm afraid I have to confess to cheating ;-)
>
> I usually use an answer file with dcpromo anyway so I just hacked one of
> those. I actually promoted the Server Core machine to be my first DC in the
> forest which is not an action I would recommend - it is harder work
>
> Not sure I should say this on a PowerShell forum - but the GUI does have its
> uses ;-)
> --
> Richard Siddaway
> Please note that all scripts are supplied "as is" and with no warranty
> Blog: http://richardsiddaway.spaces.live.com/
> PowerShell User Group: http://www.get-psuguk.org.uk
>
>
> "Brandon Shell [MVP]" wrote:
>
Quote:

> > Rich, other than using a text editor... how did you recreate the answer file
> > locally?
> >
> > As per the Docs.
> >
> > Known issues for installing a server role on a Server Core installation
> > • You cannot use the Active Directory Domain Controller Installation Wizard
> > (Dcpromo.exe) on a server running Server Core installation. You must use an
> > unattended file with Dcpromo.exe to install or remove the domain controller
> > role.
> >
> > Alternately, you can run Dcpromo.exe on another computer running Windows
> > Server 2008 and use the wizard to save an unattended file that you can then
> > use on the server running Server Core installation.
> >
> > BTW... I don't think it is wise to do this remotely even if you could.
> > "RichS" <RichS@xxxxxx> wrote in message
> > news:764A2AEE-70C1-41CE-BDB2-95C4C696BFC8@xxxxxx
Quote:

> > > You can create the answer file on the Server core machine. Not sure I
> > > would
> > > want to run dcpromo remotely anyway.
> > > --
> > > Richard Siddaway
> > > Please note that all scripts are supplied "as is" and with no warranty
> > > Blog: http://richardsiddaway.spaces.live.com/
> > > PowerShell User Group: http://www.get-psuguk.org.uk
> > >
> > >
> > > "Brandon Shell [MVP]" wrote:
> > >
> > >> I am not sure there is anyway to do this.
> > >>
> > >> AFAIK, DCPromo is done in two parts. The prep has to be done on a none
> > >> core
> > >> machine, and then you run DCPromo with the answer file you created.
> > >>
> > >> I am not sure how you would do this. Perhaps psexe would work, but I am
> > >> not
> > >> sure it works against 2008.
> > >>
> > >> "Marco Shaw [MVP]" <marco.shaw@_NO_SPAM_gmail.com> wrote in message
> > >> news:uTwC%23fvXIHA.3400@xxxxxx
> > >> > Santhosh wrote:
> > >> >> I am implementing Windows 2008 core server as a DC.
> > >> >>
> > >> >> Scenario:
> > >> >>
> > >> >> Currently I have two machines. One full version of Windows 2008 and
> > >> >> One
> > >> >> Windows 2008 Server Core Edition. Both Machines are currently on a
> > >> >> workgroup.
> > >> >>
> > >> >> From full version of Windows 2008, I am trying to use powershell and
> > >> >> remotely run dcpromo command on Windows Server Core 2008.
> > >> >>
> > >> >> It fails saying, if servers are in workgroup, you need trusted
> > >> >> connection.
> > >> >>
> > >> >> I am not able to create a trust between servers using PowerShell
> > >> >> Scripts.
> > >> >>
> > >> >> Can someone help me with the scripts and guide me how I can achive my
> > >> >> goal?
> > >> >>
> > >> >> Thanks
> > >> >>
> > >> >
> > >> > There are multiple ways to do this. One is using WinRM directly from
> > >> > PowerShell.
> > >> >
> > >> > PSH> winrs `-r:https://myserver.com `-u:Username `-p:Password dcpromo
> > >> >
> > >> > You should also be able to use WMI, but unless you're using the v2 CTP
> > >> > of
> > >> > PowerShell, you have to use the .NET Framework to set a certain
> > >> > encryption
> > >> > level.
> > >> >
> > >> > Mark Minasi provides a "cheatsheet" on using WinRM and the settings
> > >> > required:
> > >> > http://www.minasi.com/lhroadshow/lhmanage.pdf
> > >> >
> > >> > Marco
> > >> >
> > >> > --
> > >> > Microsoft MVP - Windows PowerShell
> > >> > http://www.microsoft.com/mvp
> > >> >
> > >> > PowerGadgets MVP
> > >> > http://www.powergadgets.com/mvp
> > >> >
> > >> > Blog:
> > >> > http://marcoshaw.blogspot.com
> > >>
> >
My System SpecsSystem Spec
Old 01-25-2008   #8 (permalink)
Brandon Shell [MVP]


 
 

Re: Run Dcpromo remotely

I think his point was it is more complicated to promo Server Core if it is
the first DC.

Although.. I think you can create the answer file on a remote machine even
if it is not a DC, so I think it would be fine. I would have to test it.

"Santhosh" <Santhosh@xxxxxx> wrote in message
news:117E9549-26F5-4171-9250-8A89727FE2A5@xxxxxx
Quote:

> Rich,
>
> I have a question. Why do you say it is not recommended to make server
> core
> as first DC in the forest?
>
> Can't I run dcpromo on server core, promote it as the DC and then do other
> activities from the dsa.msc of a Windows 2008 Server.
>
> That way, my DC will be in Server Core and I can manage it from a 2008
> Standard Server.
>
>
> --
> Santhosh Pallikara
>
>
> "RichS" wrote:
>
Quote:

>> I'm afraid I have to confess to cheating ;-)
>>
>> I usually use an answer file with dcpromo anyway so I just hacked one of
>> those. I actually promoted the Server Core machine to be my first DC in
>> the
>> forest which is not an action I would recommend - it is harder work
>>
>> Not sure I should say this on a PowerShell forum - but the GUI does have
>> its
>> uses ;-)
>> --
>> Richard Siddaway
>> Please note that all scripts are supplied "as is" and with no warranty
>> Blog: http://richardsiddaway.spaces.live.com/
>> PowerShell User Group: http://www.get-psuguk.org.uk
>>
>>
>> "Brandon Shell [MVP]" wrote:
>>
Quote:

>> > Rich, other than using a text editor... how did you recreate the answer
>> > file
>> > locally?
>> >
>> > As per the Docs.
>> >
>> > Known issues for installing a server role on a Server Core installation
>> > • You cannot use the Active Directory Domain Controller Installation
>> > Wizard
>> > (Dcpromo.exe) on a server running Server Core installation. You must
>> > use an
>> > unattended file with Dcpromo.exe to install or remove the domain
>> > controller
>> > role.
>> >
>> > Alternately, you can run Dcpromo.exe on another computer running
>> > Windows
>> > Server 2008 and use the wizard to save an unattended file that you can
>> > then
>> > use on the server running Server Core installation.
>> >
>> > BTW... I don't think it is wise to do this remotely even if you could.
>> > "RichS" <RichS@xxxxxx> wrote in message
>> > news:764A2AEE-70C1-41CE-BDB2-95C4C696BFC8@xxxxxx
>> > > You can create the answer file on the Server core machine. Not sure
>> > > I
>> > > would
>> > > want to run dcpromo remotely anyway.
>> > > --
>> > > Richard Siddaway
>> > > Please note that all scripts are supplied "as is" and with no
>> > > warranty
>> > > Blog: http://richardsiddaway.spaces.live.com/
>> > > PowerShell User Group: http://www.get-psuguk.org.uk
>> > >
>> > >
>> > > "Brandon Shell [MVP]" wrote:
>> > >
>> > >> I am not sure there is anyway to do this.
>> > >>
>> > >> AFAIK, DCPromo is done in two parts. The prep has to be done on a
>> > >> none
>> > >> core
>> > >> machine, and then you run DCPromo with the answer file you created.
>> > >>
>> > >> I am not sure how you would do this. Perhaps psexe would work, but I
>> > >> am
>> > >> not
>> > >> sure it works against 2008.
>> > >>
>> > >> "Marco Shaw [MVP]" <marco.shaw@_NO_SPAM_gmail.com> wrote in message
>> > >> news:uTwC%23fvXIHA.3400@xxxxxx
>> > >> > Santhosh wrote:
>> > >> >> I am implementing Windows 2008 core server as a DC.
>> > >> >>
>> > >> >> Scenario:
>> > >> >>
>> > >> >> Currently I have two machines. One full version of Windows 2008
>> > >> >> and
>> > >> >> One
>> > >> >> Windows 2008 Server Core Edition. Both Machines are currently on
>> > >> >> a
>> > >> >> workgroup.
>> > >> >>
>> > >> >> From full version of Windows 2008, I am trying to use powershell
>> > >> >> and
>> > >> >> remotely run dcpromo command on Windows Server Core 2008.
>> > >> >>
>> > >> >> It fails saying, if servers are in workgroup, you need trusted
>> > >> >> connection.
>> > >> >>
>> > >> >> I am not able to create a trust between servers using PowerShell
>> > >> >> Scripts.
>> > >> >>
>> > >> >> Can someone help me with the scripts and guide me how I can
>> > >> >> achive my
>> > >> >> goal?
>> > >> >>
>> > >> >> Thanks
>> > >> >>
>> > >> >
>> > >> > There are multiple ways to do this. One is using WinRM directly
>> > >> > from
>> > >> > PowerShell.
>> > >> >
>> > >> > PSH> winrs `-r:https://myserver.com `-u:Username `-p:Password
>> > >> > dcpromo
>> > >> >
>> > >> > You should also be able to use WMI, but unless you're using the v2
>> > >> > CTP
>> > >> > of
>> > >> > PowerShell, you have to use the .NET Framework to set a certain
>> > >> > encryption
>> > >> > level.
>> > >> >
>> > >> > Mark Minasi provides a "cheatsheet" on using WinRM and the
>> > >> > settings
>> > >> > required:
>> > >> > http://www.minasi.com/lhroadshow/lhmanage.pdf
>> > >> >
>> > >> > Marco
>> > >> >
>> > >> > --
>> > >> > Microsoft MVP - Windows PowerShell
>> > >> > http://www.microsoft.com/mvp
>> > >> >
>> > >> > PowerGadgets MVP
>> > >> > http://www.powergadgets.com/mvp
>> > >> >
>> > >> > Blog:
>> > >> > http://marcoshaw.blogspot.com
>> > >>
>> >
My System SpecsSystem Spec
Old 01-26-2008   #9 (permalink)
RichS


 
 

Re: Run Dcpromo remotely

Brandon's right I was meaning that its harder doing it that way. There is no
technical reason not to create the first DC on Server Core just that its
harder.
--
Richard Siddaway
Please note that all scripts are supplied "as is" and with no warranty
Blog: http://richardsiddaway.spaces.live.com/
PowerShell User Group: http://www.get-psuguk.org.uk


"Brandon Shell [MVP]" wrote:
Quote:

> I think his point was it is more complicated to promo Server Core if it is
> the first DC.
>
> Although.. I think you can create the answer file on a remote machine even
> if it is not a DC, so I think it would be fine. I would have to test it.
>
> "Santhosh" <Santhosh@xxxxxx> wrote in message
> news:117E9549-26F5-4171-9250-8A89727FE2A5@xxxxxx
Quote:

> > Rich,
> >
> > I have a question. Why do you say it is not recommended to make server
> > core
> > as first DC in the forest?
> >
> > Can't I run dcpromo on server core, promote it as the DC and then do other
> > activities from the dsa.msc of a Windows 2008 Server.
> >
> > That way, my DC will be in Server Core and I can manage it from a 2008
> > Standard Server.
> >
> >
> > --
> > Santhosh Pallikara
> >
> >
> > "RichS" wrote:
> >
Quote:

> >> I'm afraid I have to confess to cheating ;-)
> >>
> >> I usually use an answer file with dcpromo anyway so I just hacked one of
> >> those. I actually promoted the Server Core machine to be my first DC in
> >> the
> >> forest which is not an action I would recommend - it is harder work
> >>
> >> Not sure I should say this on a PowerShell forum - but the GUI does have
> >> its
> >> uses ;-)
> >> --
> >> Richard Siddaway
> >> Please note that all scripts are supplied "as is" and with no warranty
> >> Blog: http://richardsiddaway.spaces.live.com/
> >> PowerShell User Group: http://www.get-psuguk.org.uk
> >>
> >>
> >> "Brandon Shell [MVP]" wrote:
> >>
> >> > Rich, other than using a text editor... how did you recreate the answer
> >> > file
> >> > locally?
> >> >
> >> > As per the Docs.
> >> >
> >> > Known issues for installing a server role on a Server Core installation
> >> > • You cannot use the Active Directory Domain Controller Installation
> >> > Wizard
> >> > (Dcpromo.exe) on a server running Server Core installation. You must
> >> > use an
> >> > unattended file with Dcpromo.exe to install or remove the domain
> >> > controller
> >> > role.
> >> >
> >> > Alternately, you can run Dcpromo.exe on another computer running
> >> > Windows
> >> > Server 2008 and use the wizard to save an unattended file that you can
> >> > then
> >> > use on the server running Server Core installation.
> >> >
> >> > BTW... I don't think it is wise to do this remotely even if you could.
> >> > "RichS" <RichS@xxxxxx> wrote in message
> >> > news:764A2AEE-70C1-41CE-BDB2-95C4C696BFC8@xxxxxx
> >> > > You can create the answer file on the Server core machine. Not sure
> >> > > I
> >> > > would
> >> > > want to run dcpromo remotely anyway.
> >> > > --
> >> > > Richard Siddaway
> >> > > Please note that all scripts are supplied "as is" and with no
> >> > > warranty
> >> > > Blog: http://richardsiddaway.spaces.live.com/
> >> > > PowerShell User Group: http://www.get-psuguk.org.uk
> >> > >
> >> > >
> >> > > "Brandon Shell [MVP]" wrote:
> >> > >
> >> > >> I am not sure there is anyway to do this.
> >> > >>
> >> > >> AFAIK, DCPromo is done in two parts. The prep has to be done on a
> >> > >> none
> >> > >> core
> >> > >> machine, and then you run DCPromo with the answer file you created.
> >> > >>
> >> > >> I am not sure how you would do this. Perhaps psexe would work, but I
> >> > >> am
> >> > >> not
> >> > >> sure it works against 2008.
> >> > >>
> >> > >> "Marco Shaw [MVP]" <marco.shaw@_NO_SPAM_gmail.com> wrote in message
> >> > >> news:uTwC%23fvXIHA.3400@xxxxxx
> >> > >> > Santhosh wrote:
> >> > >> >> I am implementing Windows 2008 core server as a DC.
> >> > >> >>
> >> > >> >> Scenario:
> >> > >> >>
> >> > >> >> Currently I have two machines. One full version of Windows 2008
> >> > >> >> and
> >> > >> >> One
> >> > >> >> Windows 2008 Server Core Edition. Both Machines are currently on
> >> > >> >> a
> >> > >> >> workgroup.
> >> > >> >>
> >> > >> >> From full version of Windows 2008, I am trying to use powershell
> >> > >> >> and
> >> > >> >> remotely run dcpromo command on Windows Server Core 2008.
> >> > >> >>
> >> > >> >> It fails saying, if servers are in workgroup, you need trusted
> >> > >> >> connection.
> >> > >> >>
> >> > >> >> I am not able to create a trust between servers using PowerShell
> >> > >> >> Scripts.
> >> > >> >>
> >> > >> >> Can someone help me with the scripts and guide me how I can
> >> > >> >> achive my
> >> > >> >> goal?
> >> > >> >>
> >> > >> >> Thanks
> >> > >> >>
> >> > >> >
> >> > >> > There are multiple ways to do this. One is using WinRM directly
> >> > >> > from
> >> > >> > PowerShell.
> >> > >> >
> >> > >> > PSH> winrs `-r:https://myserver.com `-u:Username `-p:Password
> >> > >> > dcpromo
> >> > >> >
> >> > >> > You should also be able to use WMI, but unless you're using the v2
> >> > >> > CTP
> >> > >> > of
> >> > >> > PowerShell, you have to use the .NET Framework to set a certain
> >> > >> > encryption
> >> > >> > level.
> >> > >> >
> >> > >> > Mark Minasi provides a "cheatsheet" on using WinRM and the
> >> > >> > settings
> >> > >> > required:
> >> > >> > http://www.minasi.com/lhroadshow/lhmanage.pdf
> >> > >> >
> >> > >> > Marco
> >> > >> >
> >> > >> > --
> >> > >> > Microsoft MVP - Windows PowerShell
> >> > >> > http://www.microsoft.com/mvp
> >> > >> >
> >> > >> > PowerGadgets MVP
> >> > >> > http://www.powergadgets.com/mvp
> >> > >> >
> >> > >> > Blog:
> >> > >> > http://marcoshaw.blogspot.com
> >> > >>
> >> >
>
>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Can't connect remotely Vista networking & sharing
PS WMI problem remotely PowerShell
Connecting to 2 Computers Remotely Vista networking & sharing
Printing Remotely Vista print fax & scan
connecting to a pc remotely... Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46