The blog of Serkan İyigün
2018-12-17T11:23:21+00:00
http://example.com
Serkan İyigün
serkan@fikirdijital.com
Sharepoint Library üzerine PowerShell ile Dosya Yükleme
2015-01-01T00:00:00+00:00
http://example.com/blog/sharepoint/2015/01/01/sharepoint-library-dosya-yukleme
<p><code class="highlighter-rouge">[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
if((Get-PSSnapin | Where {$_.Name -eq "Microsoft.SharePoint.PowerShell"}) -eq $null) {
Add-PSSnapin Microsoft.SharePoint.PowerShell;
}</code></p>
<p><code class="highlighter-rouge">#Site Collection where you want to upload files
$siteCollUrl = "http://site"</code></p>
<p><code class="highlighter-rouge">#Document Library where you want to upload files</code></p>
<p><code class="highlighter-rouge">$libraryName = "Library"</code></p>
<p><code class="highlighter-rouge">#Physical/Network location of files
$reportFilesLocation = "C:\location of files"</code></p>
<p><code class="highlighter-rouge">$spSourceWeb = Get-SPWeb $siteCollUrl;
$spSourceList = $spSourceWeb.Lists[$libraryName];</code></p>
<p><code class="highlighter-rouge">if($spSourceList -eq $null)
{
Write-Host "The Library $libraryName could not be found."
return;
}</code></p>
<p><code class="highlighter-rouge">$files = ([System.IO.DirectoryInfo] (Get-Item $reportFilesLocation)).GetFiles()
foreach($file in $files)</code>
<code class="highlighter-rouge">{
#Open file</code></p>
<div class="highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$fileStream = ([System.IO.FileInfo] (Get-Item $file.FullName)).OpenRead()
#Add file
$folder = $spSourceWeb.getfolder($libraryName)`
Write-Host "Copying file $file to $libraryName..."
$spFile = $folder.Files.Add($folder.Url + "/" + $file.Name, [System.IO.Stream]$fileStream, $true)`
#Close file stream
$fileStream.Close();
} `$spSourceWeb.dispose(); Write-Host "Files have been uploaded to $libraryName."`
</code></pre></div></div>
Sharepoint 2013 Farklı Kullanıcı ile Oturum Aç (Sign in Different User) Menüsü
2015-01-01T00:00:00+00:00
http://example.com/blog/sharepoint/2015/01/01/sharepoint-farkli-kullanici-ile-oturum-ac
<blockquote>
<p>Dosyanın Yolu:</p>
</blockquote>
<p><code class="highlighter-rouge">C:\Program Files\Common Files\microsoft shared\Web ServerExtensions\15\TEMPLATE\CONTROLTEMPLATES\welcome.ascx</code></p>
<blockquote>
<p>Bu Dosyanın içerisine alan ekliyoruz:</p>
</blockquote>
<p><code class="highlighter-rouge"><SharePoint:MenuItemTemplate runat="server" ID="ID_LoginAsDifferentUser"
Text="<%$Resources:wss,personalactions_loginasdifferentuser%>"
Description="<%$Resources:wss,personalactions_loginasdifferentuserdescription%>"
MenuGroupId="100"
Sequence="100"
UseShortId="true"
/></code></p>
<p><em>Kayıt edip kapatıyoruz. Bu kadar..</em></p>
Sharepoint Disable Loopbackcheck disable with Powershell
2014-12-03T00:00:00+00:00
http://example.com/blog/sharepoint/2014/12/03/sharepoint-disable-loopback
<p>İlk Sharepoint kurulumunuzdan sonra giriş yaptığınız da sürekli olarak sizden kullanıcı kimlik bilgileri isteniyorsa Loopback check kapatmak zorundasınız. En temiz ve kısa yol Powershell.P</p>
<p>######PowerShell Üzerinden Gerçekleştirmek için</p>
<hr />
<p><code class="highlighter-rouge">New-ItemProperty HKLM:\System\CurrentControlSet\Control\Lsa -Name "DisableLoopbackCheck" -value "1" -PropertyType dword</code></p>
<hr />
<p>Sunucuyu tekrar başlatmak gereklidir..</p>
Deneme Yazısı
2014-04-11T00:00:00+00:00
http://example.com/blog/2014/04/11/deneme-yazisi
<p>Tattooed roof party <em>vinyl</em> freegan single-origin coffee wayfarers tousled, umami yr
meggings hella selvage. Butcher bespoke seitan, cornhole umami gentrify put a bird
on it occupy trust fund. Umami whatever kitsch, locavore fingerstache Tumblr pork belly
<a href="#">keffiyeh</a>. Chia Echo Park Pitchfork, Blue Bottle <a href="#">hashtag</a> stumptown skateboard selvage
mixtape. Echo Park retro butcher banjo cardigan, seitan flannel Brooklyn paleo fixie
Truffaut. Forage mustache Thundercats next level disrupt. Bicycle rights forage tattooed
chia, <strong>wayfarers</strong> swag raw denim hashtag biodiesel occupy gastropub!</p>
<hr />
<h1 id="its-all-in-the-game">It’s all in the game.</h1>
<h2 id="you-come-at-the-king-you-best-not-miss">You come at the king, you best not miss.</h2>
<h3 id="be-subtle-with-it-man-you-know-what-subtle-means">Be subtle with it, man. You know what subtle means?</h3>
<p>VHS post-ironic cred <strong>bespoke</strong> banjo. Yr wayfarers literally gentrify, flexitarian fap
dreamcatcher plaid cornhole Intelligentsia paleo. Beard try-hard direct trade, shabby chic
Helvetica <code class="highlighter-rouge">look ma, I can code</code>. Lo-fi American Apparel tattooed <a href="#">Vice</a> tofu, yr vinyl.
Williamsburg butcher hella mumblecore fixie mlkshk, cliche wolf keytar mixtape kitsch banh mi
salvia. High Life Odd Future <em>chambray</em> kale chips hoodie, cray pop-up. Helvetica narwhal
iPhone try-hard jean shorts.</p>
<blockquote>
<p>This is a quote from someone famous about productivity</p>
</blockquote>
<p>Syntax highlighting with Solarized theme.</p>
<figure class="highlight"><pre><code class="language-ruby" data-lang="ruby"><span class="k">class</span> <span class="nc">User</span> <span class="o"><</span> <span class="no">ActiveRecord</span><span class="o">::</span><span class="no">Base</span>
<span class="n">attr_accessible</span> <span class="ss">:email</span><span class="p">,</span> <span class="ss">:name</span>
<span class="o">...</span> <span class="n">tons</span> <span class="n">of</span> <span class="n">other</span> <span class="n">crap</span> <span class="o">...</span>
<span class="k">end</span></code></pre></figure>
Deneme Yazısı2
2014-03-12T00:00:00+00:00
http://example.com/blog/2014/03/12/deneme-yazisi
<p>Tattooed roof party <em>vinyl</em> freegan single-origin coffee wayfarers tousled, umami yr
meggings hella selvage. Butcher bespoke seitan, cornhole umami gentrify put a bird
on it occupy trust fund. Umami whatever kitsch, locavore fingerstache Tumblr pork belly
<a href="#">keffiyeh</a>. Chia Echo Park Pitchfork, Blue Bottle <a href="#">hashtag</a> stumptown skateboard selvage
mixtape. Echo Park retro butcher banjo cardigan, seitan flannel Brooklyn paleo fixie
Truffaut. Forage mustache Thundercats next level disrupt. Bicycle rights forage tattooed
chia, <strong>wayfarers</strong> swag raw denim hashtag biodiesel occupy gastropub!</p>
<hr />
<h1 id="its-all-in-the-game">It’s all in the game.</h1>
<h2 id="you-come-at-the-king-you-best-not-miss">You come at the king, you best not miss.</h2>
<h3 id="be-subtle-with-it-man-you-know-what-subtle-means">Be subtle with it, man. You know what subtle means?</h3>
<p>VHS post-ironic cred <strong>bespoke</strong> banjo. Yr wayfarers literally gentrify, flexitarian fap
dreamcatcher plaid cornhole Intelligentsia paleo. Beard try-hard direct trade, shabby chic
Helvetica <code class="highlighter-rouge">look ma, I can code</code>. Lo-fi American Apparel tattooed <a href="#">Vice</a> tofu, yr vinyl.
Williamsburg butcher hella mumblecore fixie mlkshk, cliche wolf keytar mixtape kitsch banh mi
salvia. High Life Odd Future <em>chambray</em> kale chips hoodie, cray pop-up. Helvetica narwhal
iPhone try-hard jean shorts.</p>
<blockquote>
<p>This is a quote from someone famous about productivity</p>
</blockquote>
<p>Syntax highlighting with Solarized theme.</p>
<figure class="highlight"><pre><code class="language-ruby" data-lang="ruby"><span class="k">class</span> <span class="nc">User</span> <span class="o"><</span> <span class="no">ActiveRecord</span><span class="o">::</span><span class="no">Base</span>
<span class="n">attr_accessible</span> <span class="ss">:email</span><span class="p">,</span> <span class="ss">:name</span>
<span class="o">...</span> <span class="n">tons</span> <span class="n">of</span> <span class="n">other</span> <span class="n">crap</span> <span class="o">...</span>
<span class="k">end</span></code></pre></figure>