‎02-07-2020 10:31 PM
powershell.exe -executionpolicy bypass -file "\\SERVERNAME\packages\getContacts.ps1"
‎02-11-2020 02:24 AM
‎02-11-2020 05:22 PM
CyberCitizen wrote:
I do recall there is an issue if your deploying to yourself and the lansweeper server is on the same computer
‎02-11-2020 02:03 AM
‎02-11-2020 01:47 AM
‎02-11-2020 01:56 AM
Donovan wrote:
The script really isn't the main issue for me. I am more interested in the credentials the deployment is using. I have chosen to run the script as the logged in user but the log shows it uses a different set of credentials ie "Service account - NT AUTHORITY\SYSTEM"
Do you have any insight to the question about credentials. Thanks.
‎02-11-2020 01:42 AM
‎02-10-2020 12:52 AM
‎02-10-2020 05:12 PM
CyberCitizen wrote:
Can you post the script so it can be used for testing?
$userContacts = "\\SERVERNAME\packages\" + $env:USERNAME + "_contacts.csv"
$userContacts
$Outlook=NEW-OBJECT –comobject Outlook.Application
$Contacts=$Outlook.session.GetDefaultFolder(10).items
$Contacts | Select-Object -Property FullName,MobileTelephoneNumber,Email1Address | Export-Csv -Path $userContacts -Force -NoTypeInformation
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now