directory 'c:\\adminlog' do action :create inherits true end powershell_script "shareFolder" do guard_interpreter :powershell_script code 'new-smbshare adminshare c:\adminlog' not_if 'get-smbshare adminshare' end