diff --git a/Dynamic Folder/Microsoft/Windows/CurrentAccount (Windows PowerShell).rdfe b/Dynamic Folder/Microsoft/Windows/CurrentAccount (Windows PowerShell).rdfe deleted file mode 100644 index 15ca85c..0000000 --- a/Dynamic Folder/Microsoft/Windows/CurrentAccount (Windows PowerShell).rdfe +++ /dev/null @@ -1 +0,0 @@ -{"Name":"Dynamic Folder Export","Objects":[{"Type":"DynamicFolder","Name":"Current Account","Description":"This returns dynamic objects reflecting data from the current user account.","Notes":"\r\n\r\n\t
\r\n\t\tVersion: 1.0
Requirements
Version: 1.0
+ +Requirements
+ ++ +
Local Administrator Password Solution (LAPS)
More information on LAPS can be found here:
https://www.microsoft.com/en-us/download/details.aspx?id=46899
Requirements:
The dynamic credential script executes the Get-AdmPwdPassword cmdlet of the AdmPwd.PS module:
https://www.powershellgallery.com/packages/AdmPwd.PS
Make sure the module is installed/available on your system!
Configuration:
The dynamic folder script creates a list of available machine from the Active Directory. Configure the SearchBase path in the Custom Properties.
\r\n\r\n","CustomProperties":[{"Name":"SearchBase","Type":"Text","Value":"OU=Server,OU=contoso,DC=com"}],"ScriptInterpreter":"powershell","DynamicCredentialScriptInterpreter":"powershell","DynamicCredentialScript":"$ErrorActionPreference = \"Stop\"\r\n\r\nImport-Module AdmPwd.PS\r\n\r\n$Pass = Get-AdmPwdPassword -Computername $Target.Name$\r\n\r\n$JSON = \"\"\r\n$JSON += \"{`n\"\r\n$JSON += \" `\"Username`\" : `\".\\\\Administrator`\",`n\"\r\n$JSON += \" `\"Password`\" : `\"$($Pass.Password)`\"`n\"\r\n$JSON += \"}`n\"\r\n\r\nWrite-Host $JSON\r\n\r\n\r\n","Script":"$ErrorActionPreference = \"Stop\"\r\n\r\n[string] $JSON = \"{ `\"Objects`\" : [ `n\"\r\n\r\n$JSON += \"{`n\"\r\n$JSON += \" `\"Type`\" : `\"DynamicCredential`\",`n\"\r\n$JSON += \" `\"Name`\" : `\"Administrator`\",`n\"\r\n$JSON += \" `\"ID`\" : `\"LAPS`\"`n\"\r\n$JSON += \"},`n\"\r\n\r\nforeach ($comp in (Get-ADComputer -SearchBase $CustomProperty.SearchBase$ -filter *))\r\n{\r\n $JSON += \"{`n\"\r\n $JSON += \" `\"Type`\" : `\"RemoteDesktopConnection`\",`n\"\r\n $JSON += \" `\"Name`\" : `\"$($comp.Name)`\",`n\"\r\n $JSON += \" `\"ComputerName`\" : `\"$($comp.DNSHostName)`\",`n\"\r\n\t$JSON += \" `\"Path`\" : `\"Connections`\",`n\"\r\n\t$JSON += \" `\"CredentialID`\" : `\"LAPS`\"`n\"\r\n $JSON += \"},`n\"\r\n}\r\n\r\n$JSON = $JSON.Substring(0, $JSON.Length - 2)\r\n$JSON += \"`n]`n}`n\"\r\n\r\nWrite-Host $JSON"}]} diff --git a/Dynamic Folder/Microsoft/Windows/LAPS (deprecated) (Windows PowerShell).rdfx b/Dynamic Folder/Microsoft/Windows/LAPS (deprecated) (Windows PowerShell).rdfx new file mode 100644 index 0000000..8d7e64e --- /dev/null +++ b/Dynamic Folder/Microsoft/Windows/LAPS (deprecated) (Windows PowerShell).rdfx @@ -0,0 +1,94 @@ +Local Administrator Password Solution (LAPS)
+ ++ +
More information on LAPS can be found here:
+https://www.microsoft.com/en-us/download/details.aspx?id=46899
+ +
Requirements:
+ +The dynamic credential script executes the Get-AdmPwdPassword cmdlet of the AdmPwd.PS module:
+https://www.powershellgallery.com/packages/AdmPwd.PS
Make sure the module is installed/available on your system!
+ ++ +
Configuration:
+ +The dynamic folder script creates a list of available machine from the Active Directory. Configure the SearchBase path in the Custom Properties.
+]]>