Hello,
I am trying to create a package for SAP which also copies the Landscape.XML file into the profiles of all users on that PC. I tried using the Get-UserProfiles function, but it always runs into the same error:
““Get-UserProfiles” is not recognized as the name of a cmdlet”
Here is the code i want to run:
$ProfilePaths = Get-UserProfiles | Select-Object -ExpandProperty ‘ProfilePath’
ForEach($Profile in $ProfilePaths){
Copy-File -Path “$Files*” -Destination “$Profile\AppData\Roaming\SAP\Common” -recurse
}