adamedx / winbox

Chef recipe for developer workstation for Windows
39 stars 18 forks source link

Windows 10: Cannot convert System.Object to System.String #7

Closed chefsalim closed 8 years ago

chefsalim commented 8 years ago

Steps:

  1. Clean Windows 10 setup
  2. Run IE at least once
  3. Set execution policy to bypass
  4. Run the PSH script for setup

Result: PS C:\Windows\system32> . { iwr https://raw.githubusercontent.com/adamedx/winbox/0.1.78/files/default/install.ps1 } | ie x;install-workstation Configuring Windows tools for Chef Development... Configuring ChefDK and other tools... Cloning https://github.com/chef/pantry-chef-repo to C:\Users\salim\Documents\pantry-chef-repo ... Running chef-client with the pantry default recipe. [2015-08-20T10:18:34-07:00] WARN: No config file found or specified on command line, using command line options. [2015-08-20T10:18:34-07:00] WARN: No cookbooks directory found at or above current directory. Assuming C:/Windows/system32. Starting Chef Client, version 12.4.1 resolving cookbooks for run list: [] Synchronizing Cookbooks: Compiling Cookbooks... [2015-08-20T10:18:51-07:00] WARN: Node DESKTOP-1GGBVC8 has an empty run list. Converging 0 resources

Running handlers: Running handlers complete Chef Client finished, 0/0 resources updated in 16.655154 seconds In the future, you can modify the Policyfile.rb, then run chef update and chef export zero-repo, then rerun chef client with chef-client -z from this directory. Configuring editor, terminal, PowerShell, etc.... Cloning https://github.com/adamedx/winbox to C:\Users\salim\Documents\winbox ... Set-Location : Cannot convert 'System.Object[]' to the type 'System.String' required by parameter 'Path'. Specified method is not supported. At line:68 char:8

Expected: No error

chefsalim commented 8 years ago

Fixed