![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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 > 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 Specs![]() |
| | #3 (permalink) |
| | 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 Specs![]() |
| | #4 (permalink) |
| | 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 Specs![]() |
| | #5 (permalink) |
| | 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 Specs![]() |
| | #6 (permalink) |
| | 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 Specs![]() |
| | #7 (permalink) |
| | 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 Specs![]() |
| | #8 (permalink) |
| | 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 Specs![]() |
| | #9 (permalink) |
| | 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 Specs![]() |
![]() |
| 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 | |||