Closed kentLee170 closed 4 years ago
Try:
-remoteMachines $Account.remoteMachines
Hi pspete, thanks for the update, it work with -remoteMachines $Account.remoteMachines btw can we have -remoteMachines on Set-PASAccount, or how i bulky change -remoteMachines value on exiting accounts via Set-PASAccount
Set-PASAccount -AccountID $someID -op replace -path "/remoteMachinesAccess/remotemachines" -value "Some;Machines;Here"
thanks pspete
no problem @kentLee170
Describe the issue Hi Team, i need create new more than 1000 accounts that with different remote Machines list. Can you assist me on the command Add-PASAccount as i Not able add remote Machines list while creating account with Add-PASAccount.
below are my accounts.csv file UserName,Password,Address,LogonDomain,RemoteMachines,SafeName,PlatformID Pntb_pam_adea1,NoUpdateNeeded,T.com,T,server01;server02,PAM-Win-ADEA,PAMWindowDomain Pntb_pam_adea2,NoUpdateNeeded,T.com,T,server01;server02;DC01,PAM-Win-ADEA,PAMWindowDomain
To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen.
Screenshots & Console Output If applicable, add screenshots to help explain your problem.
Console Output Code Block: $Accounts = Import-Csv -Path .\Accounts.csv
New-PASSession -Credential $creds -BaseURI https://server02.t.com
foreach($Account in $Accounts){
}