<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Nextcloud Archives - GA IT Support</title>
	<atom:link href="https://www.gasupport.net/category/nextcloud/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.gasupport.net/category/nextcloud/</link>
	<description>Helpdesk, Remote Support, Computer Repair - Austria, UK and Romania</description>
	<lastBuildDate>Wed, 11 Feb 2026 12:26:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://www.gasupport.net/wp-content/uploads/2020/05/cropped-favicon-32x32.png</url>
	<title>Nextcloud Archives - GA IT Support</title>
	<link>https://www.gasupport.net/category/nextcloud/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">219070500</site>	<item>
		<title>How to upload files to Nextcloud with PowerShell</title>
		<link>https://www.gasupport.net/nextcloud/how-to-upload-files-to-nextcloud-with-powershell/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-upload-files-to-nextcloud-with-powershell</link>
		
		<dc:creator><![CDATA[Adrian]]></dc:creator>
		<pubDate>Tue, 22 Mar 2022 12:29:29 +0000</pubDate>
				<category><![CDATA[Nextcloud]]></category>
		<guid isPermaLink="false">https://www.gasupport.net/?p=2930</guid>

					<description><![CDATA[<p>After a few hours of Google search, I could find only one article (here) about this topic and that one was not working anymore. I grabbed that script and I modified it, fixed it and made it better. First, you have to create/share the folder in the Nextcloud. Share it with a link. Setup a [&#8230;]</p>
<p>The post <a href="https://www.gasupport.net/nextcloud/how-to-upload-files-to-nextcloud-with-powershell/">How to upload files to Nextcloud with PowerShell</a> appeared first on <a href="https://www.gasupport.net">GA IT Support</a>.</p>
]]></description>
										<content:encoded><![CDATA[		<div data-elementor-type="wp-post" data-elementor-id="2930" class="elementor elementor-2930" data-elementor-post-type="post">
						<section class="elementor-section elementor-top-section elementor-element elementor-element-1d411096 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="1d411096" data-element_type="section" data-e-type="section">
							<div class="elementor-background-overlay"></div>
							<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5a23b974" data-id="5a23b974" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-78e2a9ae elementor-widget elementor-widget-image" data-id="78e2a9ae" data-element_type="widget" data-e-type="widget" data-widget_type="image.default">
				<div class="elementor-widget-container">
															<img decoding="async" src="https://www.gasupport.net/wp-content/uploads/2022/03/Nextcloud_Logo.svg_.png" title="" alt="Nextcloud Logo" loading="lazy" />															</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-4cfd8947 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="4cfd8947" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-7e852fda" data-id="7e852fda" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-24270c6 elementor-widget elementor-widget-text-editor" data-id="24270c6" data-element_type="widget" data-e-type="widget" data-widget_type="text-editor.default">
				<div class="elementor-widget-container">
									<h6>After a few hours of Google search, I could find only one article <a href="https://www.croix.at/blog/easy-nextcloud-file-drop-upload-using-powershell/" target="_blank" rel="noopener">(here)</a> about this topic and that one was not working anymore. I grabbed that script and I modified it, fixed it and made it better.</h6><h6>First, you have to create/share the folder in the Nextcloud. Share it with a link.</h6><h6>Setup a share password (mandatory in the newer versions)</h6><h6>I recommend to encode passwords and not to keep them as plain text: https://www.base64encode.org/</h6><h6>Once you shared it, copy the link and paste it in a notepad. Grab the token number that is at the end of the link.</h6><h6>e.g https://cloud.contorso.com/s/<strong>6o4kp4n9fS6QAN8</strong></h6><h6>That is the token you will be using in the script below.</h6><h6>Save the below script with <strong>.ps1</strong> extension and enjoy.</h6>								</div>
				</div>
				<div class="elementor-element elementor-element-c29509c elementor-widget elementor-widget-mdp-coder-elementor" data-id="c29509c" data-element_type="widget" data-e-type="widget" data-widget_type="mdp-coder-elementor.default">
				<div class="elementor-widget-container">
					        <!-- Start Coder for Elementor WordPress Plugin -->
        <div
            id="mdp-coder-c29509c"
            class="mdp-coder-elementor-box"
            data-theme="mdp-theme-nord"
            data-dark-theme="mdp-theme-nord"
        >
            
                <pre class="language-powershell line-numbers copy-to-clipboard"data-previewers=""><code># Enable TLS 1.2
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

# Define your Nextcloud address
$NextcloudUrl = &quot;https://cloud.contorso.com/&quot;

# Define the shared token and password you got from the shared link. Please replace $token and $pwd values
$token = &quot;Q2hhbmdlTWU=&quot;		# the value is &quot;ChangeMe&quot; encoded
$sharetoken = [Text.Encoding]::ASCII.GetString([Convert]::FromBase64String($token))
$pwd = &quot;Q2hhbmdlTWU=&quot;		# the value is &quot;ChangeMe&quot; encoded
$sharepassword = [Text.Encoding]::ASCII.GetString([Convert]::FromBase64String($pwd))
$authString = &quot;$($sharetoken):$($sharepassword)&quot;
$authEncoded = [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes($authString))

# Define folder path where are the files you would like to upload. It can upload only files not folders.
# It doens&#039;t know about override, will create a duplicate in case you run it twice and the same file name is there.
$filepath = &quot;C:\Users\Username\Desktop\Folder&quot;

# Getting all the files in the specified folder
$Item = Get-ChildItem -Recurse $filepath | Sort-Object fullname | Select FullName

# Will process each file individually and upload them to the cloud.
$Item | ForEach-Object {

    $file = $_.FullName

$Item = Get-Item $file

$Headers = @{
    &quot;Authorization&quot; = &quot;Basic $authEncoded&quot;;
    &quot;X-Requested-With&quot;=&quot;XMLHttpRequest&quot;;
}
$webdav = &quot;$($NextcloudUrl)/public.php/webdav/$($Item.Name)&quot;
Invoke-RestMethod -Uri $webdav -InFile $Item.Fullname -Headers $Headers -Method Put
}
</code></pre>
                    </div>
                <script>
            "use strict";

            /** Handler when the DOM is fully loaded. */
            let callback_c29509c = function() {

                /** Set theme for coder widget. */
                function setTheme() {

                    /** Foreach Code Widget. */
                    let coderBoxes = document.querySelectorAll( '.mdp-coder-elementor-box' );

                    for ( let coderBox of coderBoxes ) {

                        let lightTheme = coderBox.dataset.theme;
                        let darkTheme = coderBox.dataset.darkTheme;

                        coderBox.className = '';
                        if ( window.matchMedia && window.matchMedia( '(prefers-color-scheme: dark)' ).matches ) {

                            coderBox.className = 'mdp-coder-elementor-box ' + darkTheme;

                        } else {

                            coderBox.className = 'mdp-coder-elementor-box ' + lightTheme;

                        }

                    }

                }
                setTheme();


                /** Watch for changes color-scheme. */
                window.matchMedia("(prefers-color-scheme: dark)").addListener( function() {
                    setTheme();
                } );

                
                if ( typeof Prism !== 'undefined' ) {

                    Prism.plugins.autoloader.languages_path = 'https://www.gasupport.net/wp-content/plugins/coder-elementor/js/prism/components/';
                    Prism.highlightAll();
                    Prism.fileHighlight();

                }

                
            };

            if (
                document.readyState === "complete" ||
                ( document.readyState !== "loading" && !document.documentElement.doScroll )
            ) {
                callback_c29509c();
            } else {
                document.addEventListener( "DOMContentLoaded", callback_c29509c );
            }

        </script>
                <!-- End Coder for Elementor WordPress Plugin -->

        				</div>
				</div>
				<div class="elementor-element elementor-element-3eac8449 elementor-align-center elementor-widget elementor-widget-breadcrumbs" data-id="3eac8449" data-element_type="widget" data-e-type="widget" data-widget_type="breadcrumbs.default">
				<div class="elementor-widget-container">
					<p id="breadcrumbs"><span><span><a href="https://www.gasupport.net/">GA IT Support</a></span> » <span class="breadcrumb_last" aria-current="page">Nextcloud</span></span></p>				</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-7fc430cb animated-slow elementor-section-boxed elementor-section-height-default elementor-section-height-default elementor-invisible" data-id="7fc430cb" data-element_type="section" data-e-type="section" data-settings="{&quot;animation&quot;:&quot;fadeIn&quot;}">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-56c00706" data-id="56c00706" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-f8b9bd3 animated-slow elementor-invisible elementor-widget elementor-widget-post-navigation" data-id="f8b9bd3" data-element_type="widget" data-e-type="widget" data-settings="{&quot;_animation&quot;:&quot;fadeIn&quot;,&quot;_animation_delay&quot;:1000}" data-widget_type="post-navigation.default">
				<div class="elementor-widget-container">
							<div class="elementor-post-navigation" role="navigation" aria-label="Post Navigation">
			<div class="elementor-post-navigation__prev elementor-post-navigation__link">
				<a href="https://www.gasupport.net/o365/remove-microsoft-teams-groups-from-global-address-list/" rel="prev"><span class="post-navigation__arrow-wrapper post-navigation__arrow-prev"><i aria-hidden="true" class="fas fa-chevron-left"></i><span class="elementor-screen-only">Prev</span></span><span class="elementor-post-navigation__link__prev"><span class="post-navigation__prev--label">Previous</span><span class="post-navigation__prev--title">Remove Microsoft Teams Groups from Global Address List (GAL)</span></span></a>			</div>
						<div class="elementor-post-navigation__next elementor-post-navigation__link">
				<a href="https://www.gasupport.net/windows/windows-desktop-folder-showing-as-a-normal-folder-a-hidden-cause-and-fix/" rel="next"><span class="elementor-post-navigation__link__next"><span class="post-navigation__next--label">Next</span><span class="post-navigation__next--title">Windows Desktop Folder Showing as a Normal Folder: A Hidden Cause and Fix</span></span><span class="post-navigation__arrow-wrapper post-navigation__arrow-next"><i aria-hidden="true" class="fas fa-chevron-right"></i><span class="elementor-screen-only">Next</span></span></a>			</div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-31efceec elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="31efceec" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1fde51b8" data-id="1fde51b8" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-39e299f4 elementor-author-box--layout-image-left elementor-author-box--align-left elementor-author-box--avatar-yes elementor-author-box--name-yes elementor-author-box--biography-yes elementor-widget elementor-widget-author-box" data-id="39e299f4" data-element_type="widget" data-e-type="widget" data-widget_type="author-box.default">
				<div class="elementor-widget-container">
							<div class="elementor-author-box">
							<div  class="elementor-author-box__avatar">
					<img decoding="async" src="https://secure.gravatar.com/avatar/dfb3bc4b97fa5094c5f265a574c76b6a29118170fd11575a86e6a9dbde4162f3?s=300&#038;d=mm&#038;r=g" alt="Picture of Adrian" loading="lazy">
				</div>
			
			<div class="elementor-author-box__text">
									<div >
						<h4 class="elementor-author-box__name">
							Adrian						</h4>
					</div>
				
									<div class="elementor-author-box__bio">
						Senior Engineer at Computer Assistance Oxford					</div>
				
							</div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				<section class="elementor-section elementor-top-section elementor-element elementor-element-380ed123 elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="380ed123" data-element_type="section" data-e-type="section">
						<div class="elementor-container elementor-column-gap-default">
					<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-29a899e5" data-id="29a899e5" data-element_type="column" data-e-type="column">
			<div class="elementor-widget-wrap elementor-element-populated">
						<div class="elementor-element elementor-element-2f7e110b elementor-widget elementor-widget-spacer" data-id="2f7e110b" data-element_type="widget" data-e-type="widget" data-widget_type="spacer.default">
				<div class="elementor-widget-container">
							<div class="elementor-spacer">
			<div class="elementor-spacer-inner"></div>
		</div>
						</div>
				</div>
					</div>
		</div>
					</div>
		</section>
				</div>
		<p>The post <a href="https://www.gasupport.net/nextcloud/how-to-upload-files-to-nextcloud-with-powershell/">How to upload files to Nextcloud with PowerShell</a> appeared first on <a href="https://www.gasupport.net">GA IT Support</a>.</p>
]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">2930</post-id>	</item>
	</channel>
</rss>
