Cant figure out how to update to latest snapshot in windows Powershell

Tried everyting but ends up in errors

PS C:\openhab-2> Update-openHAB -OHDirectory C:\Openhab-2 -OHVersion 2.3.0 -Snapshot $true
Checking the specified openHAB directory...
Checking whether a service exists...
Checking whether openHAB is running...

Backup script starting...
Making a backup in 'C:\Openhab-2\backups' ...
. : The term 'C:\openhab-2\runtime\bin\backup.ps1' is not recognized as the name of a cmdlet, function, script file, or
 operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try a
gain.
At C:\openhab-2\update.ps1:150 char:15
+             . $BackupScript
+               ~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\openhab-2\runtime\bin\backup.ps1:String) [], CommandNotFoundExceptio
   n
    + FullyQualifiedErrorId : CommandNotFoundException

Backup-openHAB : The term 'Backup-openHAB' is not recognized as the name of a cmdlet, function, script file, or operabl
e program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\openhab-2\update.ps1:151 char:13
+             Backup-openHAB -OHDirectory (pwd)
+             ~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Backup-openHAB:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Backup script finished.

Downloading the openHAB 2.3.0-SNAPSHOT distribution...
Downloaded 67410K of 67410K
Finished Download
===================================
New Update.ps1 found. Using that...
===================================
Checking the specified openHAB directory...
Checking whether a service exists...
Checking whether openHAB is running...
Downloading the openHAB 2.3.0-SNAPSHOT-SNAPSHOT distribution...
Exception calling "GetResponse" with "0" argument(s): "Den eksterne serveren returnerte feilen (404) Finner ikke filen.
"
At C:\WINDOWS\TEMP\openhab\update.ps1:15 char:5
+     $response = $request.GetResponse()
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : WebException

Exception calling "Read" with "3" argument(s): "Forespørselen ble avbrutt: Tilkoblingen ble lukket uten forvarsel."
At C:\WINDOWS\TEMP\openhab\update.ps1:20 char:5
+     $count = $responseStream.Read($buffer,0,$buffer.length)
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : WebException


Finished Download
Extracting the archive to C:\WINDOWS\TEMP\openhab\openhab-2.3.0-SNAPSHOT-SNAPSHOT...
Exception calling "ExtractToDirectory" with "2" argument(s): "Den sentrale mappen er ødelagt."
At C:\WINDOWS\TEMP\openhab\update.ps1:190 char:9
+         [System.IO.Compression.ZipFile]::ExtractToDirectory("$TempDir ...
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : InvalidDataException

Deleting current files in userdata that should not persist...
Deleting current runtime...
Copying new runtime...
Copy-Item : Cannot find path 'C:\WINDOWS\TEMP\openhab\openhab-2.3.0-SNAPSHOT-SNAPSHOT\runtime' because it does not exis
t.
At C:\WINDOWS\TEMP\openhab\update.ps1:220 char:9
+         Copy-Item $TempDir\openhab-$OHVersion\runtime -Destination $O ...
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\WINDOWS\TEMP...NAPSHOT\runtime:String) [Copy-Item], ItemNotFoundExce
   ption
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.CopyItemCommand

Copying userdata files to new install without overwriting existing ones...
Get-Item : Cannot find path 'C:\WINDOWS\TEMP\openhab\openhab-2.3.0-SNAPSHOT-SNAPSHOT\userdata' because it does not exis
t.
At C:\WINDOWS\TEMP\openhab\update.ps1:223 char:24
+         $newuserdata = Get-Item $TempDir\openhab-$OHVersion\userdata
+                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\WINDOWS\TEMP...APSHOT\userdata:String) [Get-Item], ItemNotFoundExcep
   tion
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemCommand

Copy-Item : Støtter ikke formatet i angitt bane.
At C:\WINDOWS\TEMP\openhab\update.ps1:224 char:53
+ ...  Get-ChildItem -Path $newuserdata -Recurse | Copy-Item -Destination {
+                                                  ~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Copy-Item], NotSupportedException
    + FullyQualifiedErrorId : System.NotSupportedException,Microsoft.PowerShell.Commands.CopyItemCommand

Removing the extracted files...
openHAB updated to version 2.3.0-SNAPSHOT-SNAPSHOT!
Run start.bat to launch it.
Check http://docs.openhab.org/installation/windows.html
for instructions on re-installing the Windows Service if desired
PS C:\openhab-2>`Preformatted text`

Can anyone see what i am doing wrong?

It’s pretty difficult to debug, can you edit your post so that the contents of the powershell session are enlosed in ``` ? e.g.

```
cd C:\openhab
Update-openHAB -OHDirectory C:\Openhab-2 -OHVersion 2.3.0 -Snapshot $true

[...]
```

Hi, im not exactly shure what you mean but corrected it to display correctly

I also have a problem updating. I want to get the latest compiled snapshot, and I get the error that I am already on the snapshot version. That is correct, but I want to get a newer snapshot…

Update-openHAB -OHDirectory C:\Openhab2 -OHVersion 2.3.0 -Snapshot $true
Downloading the openHAB 2.3.0-SNAPSHOT distribution...
Downloaded 67427K of 67427K
Finished Download
===================================
New Update.ps1 found. Using that...
===================================
Checking the specified openHAB directory...
You are already on openHAB 2.3.0-SNAPSHOT
At C:\Windows\TEMP\openhab\update.ps1:117 char:17
+                 throw "You are already on openHAB $OHVersion"
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (You are already... 2.3.0-SNAPSHOT:String) [], RuntimeException
    + FullyQualifiedErrorId : You are already on openHAB 2.3.0-SNAPSHOT

I am also having issues trying to upgrade from stable 2.2.0 to the latest snapshot…

I run into the same problem at my update to OH2.2 I think there is a problem with downloading of binding .jar file. I downloaded this maually and put it into the OH/addon directory. All was fine then.

That looks like a bug, would you be abpe to report it in https://github.com/openhab/openhab-distro?