Networking Forums

Networking Forums > Computer Networking > Windows Networking > GPO for Remote Desktop

Reply
Thread Tools Display Modes

GPO for Remote Desktop

 
 
MartinHTN
Guest
Posts: n/a

 
      08-03-2004, 07:37 PM
Hello:

I've been trying to find the GPO setting (if there is one) that would enable
Remote Desktop and allow users to connect remotely to the computers. Does
anyone know if this is settable via GPO? Thank you.

--
Sincerely,
Martin


 
Reply With Quote
 
 
 
 
Miha Pihler
Guest
Posts: n/a

 
      08-03-2004, 07:44 PM
Hi Martin,

I don't know about GPO (I don't think there is one yet for RDP), but you can
use this script to turn on RDP remotely or via startup scrip.

*********************************
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colTSSettings =
objWMIService.InstancesOf("Win32_TerminalServiceSe tting")
For Each colTS in colTSSettings
colTS.SetAllowTSConnections(1)
Next
*********************************

replace this "." (strComputer = ".") with name of remote computer (e.g.
strComputer = "Mike").

strComputer = "." means "this computer"

I hope this helps,

Mike

"MartinHTN" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello:
>
> I've been trying to find the GPO setting (if there is one) that would

enable
> Remote Desktop and allow users to connect remotely to the computers. Does
> anyone know if this is settable via GPO? Thank you.
>
> --
> Sincerely,
> Martin
>
>



 
Reply With Quote
 
MartinHTN
Guest
Posts: n/a

 
      08-05-2004, 11:37 AM
Miha:

I think I found the setting. It's at \Computer Configuration\Windows
Components\Terminal Services\Allow users to connect remotely using Terminal
Services.

Regards,
Martin

"Miha Pihler" <mihap-(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Hi Martin,
>
> I don't know about GPO (I don't think there is one yet for RDP), but you

can
> use this script to turn on RDP remotely or via startup scrip.
>
> *********************************
> strComputer = "."
> Set objWMIService = GetObject("winmgmts:" _
> & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
> Set colTSSettings =
> objWMIService.InstancesOf("Win32_TerminalServiceSe tting")
> For Each colTS in colTSSettings
> colTS.SetAllowTSConnections(1)
> Next
> *********************************
>
> replace this "." (strComputer = ".") with name of remote computer (e.g.
> strComputer = "Mike").
>
> strComputer = "." means "this computer"
>
> I hope this helps,
>
> Mike
>
> "MartinHTN" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Hello:
> >
> > I've been trying to find the GPO setting (if there is one) that would

> enable
> > Remote Desktop and allow users to connect remotely to the computers.

Does
> > anyone know if this is settable via GPO? Thank you.
> >
> > --
> > Sincerely,
> > Martin
> >
> >

>
>



 
Reply With Quote
 
MartinHTN
Guest
Posts: n/a

 
      08-05-2004, 11:41 AM
CORRECTION: It's \Computer Configuration\Administrative Templates\Windows
Components\Terminal Services\Allow users to connect remotely using Terminal
Services
"MartinHTN" <(E-Mail Removed)> wrote in message
news:%23B$(E-Mail Removed)...
> Miha:
>
> I think I found the setting. It's at \Computer Configuration\Windows
> Components\Terminal Services\Allow users to connect remotely using

Terminal
> Services.
>
> Regards,
> Martin
>
> "Miha Pihler" <mihap-(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
> > Hi Martin,
> >
> > I don't know about GPO (I don't think there is one yet for RDP), but you

> can
> > use this script to turn on RDP remotely or via startup scrip.
> >
> > *********************************
> > strComputer = "."
> > Set objWMIService = GetObject("winmgmts:" _
> > & "{impersonationLevel=impersonate}!\\" & strComputer &

"\root\cimv2")
> > Set colTSSettings =
> > objWMIService.InstancesOf("Win32_TerminalServiceSe tting")
> > For Each colTS in colTSSettings
> > colTS.SetAllowTSConnections(1)
> > Next
> > *********************************
> >
> > replace this "." (strComputer = ".") with name of remote computer (e.g.
> > strComputer = "Mike").
> >
> > strComputer = "." means "this computer"
> >
> > I hope this helps,
> >
> > Mike
> >
> > "MartinHTN" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > Hello:
> > >
> > > I've been trying to find the GPO setting (if there is one) that would

> > enable
> > > Remote Desktop and allow users to connect remotely to the computers.

> Does
> > > anyone know if this is settable via GPO? Thank you.
> > >
> > > --
> > > Sincerely,
> > > Martin
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Miha Pihler
Guest
Posts: n/a

 
      08-05-2004, 01:56 PM
Thanks for posting back the solution.

Mike

"MartinHTN" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> CORRECTION: It's \Computer Configuration\Administrative Templates\Windows
> Components\Terminal Services\Allow users to connect remotely using

Terminal
> Services
> "MartinHTN" <(E-Mail Removed)> wrote in message
> news:%23B$(E-Mail Removed)...
> > Miha:
> >
> > I think I found the setting. It's at \Computer Configuration\Windows
> > Components\Terminal Services\Allow users to connect remotely using

> Terminal
> > Services.
> >
> > Regards,
> > Martin
> >
> > "Miha Pihler" <mihap-(E-Mail Removed)> wrote in message
> > news:%(E-Mail Removed)...
> > > Hi Martin,
> > >
> > > I don't know about GPO (I don't think there is one yet for RDP), but

you
> > can
> > > use this script to turn on RDP remotely or via startup scrip.
> > >
> > > *********************************
> > > strComputer = "."
> > > Set objWMIService = GetObject("winmgmts:" _
> > > & "{impersonationLevel=impersonate}!\\" & strComputer &

> "\root\cimv2")
> > > Set colTSSettings =
> > > objWMIService.InstancesOf("Win32_TerminalServiceSe tting")
> > > For Each colTS in colTSSettings
> > > colTS.SetAllowTSConnections(1)
> > > Next
> > > *********************************
> > >
> > > replace this "." (strComputer = ".") with name of remote computer

(e.g.
> > > strComputer = "Mike").
> > >
> > > strComputer = "." means "this computer"
> > >
> > > I hope this helps,
> > >
> > > Mike
> > >
> > > "MartinHTN" <(E-Mail Removed)> wrote in message
> > > news:(E-Mail Removed)...
> > > > Hello:
> > > >
> > > > I've been trying to find the GPO setting (if there is one) that

would
> > > enable
> > > > Remote Desktop and allow users to connect remotely to the computers.

> > Does
> > > > anyone know if this is settable via GPO? Thank you.
> > > >
> > > > --
> > > > Sincerely,
> > > > Martin
> > > >
> > > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Ace Fekay [MVP]
Guest
Posts: n/a

 
      08-06-2004, 05:06 AM
In news:%(E-Mail Removed),
Miha Pihler <mihap-(E-Mail Removed)> made a post then I commented below
> Hi Martin,
>
> I don't know about GPO (I don't think there is one yet for RDP), but
> you can use this script to turn on RDP remotely or via startup scrip.
>
> *********************************
> strComputer = "."
> Set objWMIService = GetObject("winmgmts:" _
> & "{impersonationLevel=impersonate}!\\" & strComputer &
> "\root\cimv2") Set colTSSettings =
> objWMIService.InstancesOf("Win32_TerminalServiceSe tting")
> For Each colTS in colTSSettings
> colTS.SetAllowTSConnections(1)
> Next
> *********************************
>
> replace this "." (strComputer = ".") with name of remote computer
> (e.g. strComputer = "Mike").
>
> strComputer = "." means "this computer"
>
> I hope this helps,
>
> Mike
>


Nice script Mike. Thanks for posting that!
:-)


--
Regards,
Ace

Please direct all replies ONLY to the Microsoft public newsgroups
so all can benefit.

This posting is provided "AS-IS" with no warranties or guarantees
and confers no rights.

Ace Fekay, MCSE 2003 & 2000, MCSA 2003 & 2000, MCSE+I, MCT, MVP
Microsoft Windows MVP - Windows Server - Directory Services

Security Is Like An Onion, It Has Layers
HAM AND EGGS: A day's work for a chicken;
A lifetime commitment for a pig.
--
=================================


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Remote Desktop: The client could not connect to the remote compute crazyglue Windows Networking 6 02-24-2009 08:26 AM
routing and remote access & remote desktop connection SJMP Windows Networking 1 10-22-2008 01:55 PM
Remote desktop, allow remote connections for some but deny remote for others steve Windows Networking 4 06-19-2007 01:35 PM
OT: How to reboot remote PC via VPN/Remote Desktop? (PeteCresswell) Wireless Networks 5 07-04-2006 05:05 PM
remote desktop with routing and remote access Marcus \(Cascom\) Windows Networking 3 01-17-2004 05:15 PM



1 2 3 4 5 6 7 8 9 10 11