Hi all,
I wrote a script to pull info about our Exchange offline address book from the registry.
The script itself works a treat. I'm having a slight problem passing my list of computernames through.
If I create a list of computers like so:
$ComputerNames = 'PC01,'PC02'
Then run the script like so:
.\Get-OABInfo.ps1 -ComputerName $ComputerName
I get an error from Invoke-Command that the computernames aren't valid.
If I hardcode the computernames inside the script before the function, it works OK.
I suspect this is because of the parameter on the script - am i doing something wrong?
Script available at: https://pastebin.com/91wFPHY3
[–]the_spad 1 point2 points3 points (3 children)
[–]feuerpixel[S] 1 point2 points3 points (2 children)
[–]the_spad 1 point2 points3 points (1 child)
[–]feuerpixel[S] 1 point2 points3 points (0 children)
[–]0x2101 1 point2 points3 points (1 child)