Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Change remote configuration using powershelll for multiple servers

$
0
0

Hi,

Can anyone help me with changing the "Disconnected session from 10mins to 6hours" in remote session host configuration under Remote Desktop Services using powerhsell.

I used this command to install the Remote desktop Services

import-module servermanager -verbose
get-windowsfeature -name *RDS*
Add-WindowsFeature –Name RDS-RD-Server –IncludeAllSubFeature -WhatIf -Restart
import-module remotedesktopservices -verbose
Get-Command –Module RemoteDesktopServices
Get-PSProvider

I can see remotedesktopservices in PSPROVIDER but when i go to RDS drive :-\

PS C:\Users\Administrator> cd RDS:

PS RDS:\ get-childitem

Name                           Type      CurrentValue         GP   PermissibleValues PermissibleOperations
----                           ----      ------------         --   ----------------- ---------------------
LicenseServer                  Container                      -                      Get-Item, Get-ChildItem

If i go to PS RDS:\> cd ./RDSCongiuration . This error i get
Set-Location : Cannot find path 'RDS:\RDSCongiuration' because it does not exist.
At line:1 char:3
+ cd <<<<  ./RDSCongiuration
    + CategoryInfo          : ObjectNotFound: (RDS:\RDSCongiuration:String) [Set-Location], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetLocationCommand

I dont see RDSConfiguration because of which i am just not able to go to this location which is RDS:\RDSConfiguration\Connections\RDP-Tcp\Sessions to change the end disconnected session to 6hours. Please help




Viewing all articles
Browse latest Browse all 21975

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>