RDS GPO fixes
This commit is contained in:
parent
fce7f6792a
commit
ac46bfbff9
5 changed files with 60 additions and 65 deletions
|
@ -1135,6 +1135,8 @@ namespace WebsitePanel.Providers.RemoteDesktopServices
|
|||
{
|
||||
runspace = OpenRunspace();
|
||||
|
||||
CreatePolicy(runspace, organizationId, string.Format("{0}-administrators", collectionName), new DirectoryEntry(GetGroupPath(organizationId, collectionName, GetLocalAdminsGroupName(collectionName))), collectionName);
|
||||
CreatePolicy(runspace, organizationId, string.Format("{0}-users", collectionName), new DirectoryEntry(GetUsersGroupPath(organizationId, collectionName)), collectionName);
|
||||
CreateHelpDeskPolicy(runspace, new DirectoryEntry(GetHelpDeskGroupPath(RDSHelpDeskGroup)), organizationId, collectionName);
|
||||
RemoveRegistryValue(runspace, ScreenSaverGpoKey, administratorsGpo);
|
||||
RemoveRegistryValue(runspace, ScreenSaverGpoKey, usersGpo);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue