![]() # file or spreadsheet, or a separate JSON / XML file. # more work you could acquire this information from Active Directory, a stored CSV This is the latest version of RDCMAN and the latest version of. # based on what PDQ Inventory Collection I care about at the moment, but with a little When I go to import -> sessions from rdg file I select my file and nothing happens. # For instance, I query the relevant workstations out of the PDQ Inventory database # In a real scenario, you can obtain this information from whatever source you desire # Mock a couple of computer objects using a hash $credentialHash = Read-Host "What is the password for $($env:username)?" -AsSecureString $credentialHash = Read-Host "What is the password for ExampleUser1?" -AsSecureString # Collect the SecureString password from the user: # Launch RDCMan.exe using our temporary RDG file # This is our RDG file for launching RDCMan, although it is not required that it be provided a. # Create a temporary file to hold the XML $fileElement.RemoveChild($groupTemplateElement) # Remove the Group template object, as it is just a blank stub at this point. RDCMan, a tool for managing and connecting to Remote Desktop sessions, receives support for Restricted Admin (/restrictedAdmin from mstsc) and Remote. # Add (via AppendChild method) a single Server object to a Group objectįunction Add-ServerToGroup($group, $serverName) # Create an RDG (XML formatted) file for RDCMan to import so that all workstations are in relevant groups. $ExampleGroup = Get-Group $fileElement 'ExampleUser1-group' 'exampleUser1' (Secure-Password $RDCMan ((New-Object PSCredential "user",$credentialHash).GetNetworkCredential().password)) ‘ExampleDomain’ $adminGroup = Get-Group $fileElement 'Admin-group' $env:USERNAME (Secure-Password $RDCMan ((New-Object PSCredential "user",$credentialHash).GetNetworkCredential().password)) $env:USERDOMAIN # Name your root element in the RDCMan connection window. # Root XML element that objects will append to ![]() # Be aware that you may need to update the path based on where you store the file ![]() # Store the XML template into a variable for more sensible parsing / operating ![]() $RDCMan = "E:\Remote Desktop Connection Manager\RDCMan.exe" # Store the location of the Remote Desktop Connection Manager file ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |