Windows Server windows nano server(2016) GA \ RTM 10.0.14393.0

nebulaIT

New Member
hi,
---------------windows server 2016 & windows 10 Evaluation Editions--> downloaded from microsoft official web sites--------------------------------------
host --> windows 10 (Major Minor Build Revision
----- ----- ----- --------
10 0 18363 0)
(build 18362.19h_release.190318-1202)
-----------------------------------------------------------------
guest -->1} domain controller(windows server 2016) --> Major Minor Build Revision
----- ----- ----- --------
10 0 14393 0
(build 14393.rs1_release.180427-1804)
-------------------------------------------------
guest -->2} member server1 (windows server 2016)
---Same as Above
------------------------------------------------

guest -->3} member server2 (windows servrer 2016)
----Same As Above
--------------------------------------------------
guest -->4} nano server1 (windows server 2016) -->Major Minor Build Revision
----- ----- ----- --------
10 0 14393 0
Version Build Number
GA \ RTM 10.0.14393.0

===
Name Version DynamicOptions
---- ------- --------------
NanoServerPackage 1.0.1.0 ToVhd, FromVhd, DisplayCulture, Culture, ImagePath, Default
NuGet 2.8.5.205 Destination, ExcludeVersion, Scope, Headers, FilterOnTag, Contains, AllowPrereleaseVersions, ConfigFile, SkipValidate
PowerShellGet 1.0.0.1 PackageManagementProvider, Type, Scope, AllowClobber, SkipPublisherCheck, InstallUpdate, NoPathUpdate, Filter, Tag, Includes, DscResource, RoleCapability, Comm...
====

=====
Name Version Source ProviderName
---- ------- ------ ------------
Package_for_KB4132216 10.0.1.0 Local Machine NanoServerPackage
Microsoft-Windows-ServerDat... 10.0.14393.0 Local Machine NanoServerPackage
Package_for_KB4091664 10.0.5.0 Local Machine NanoServerPackage
Microsoft-Windows-Foundatio... 10.0.14393.0 Local Machine NanoServerPackage
Package_for_RollupFix 14393.2580.1.9 Local Machine NanoServerPackage
Microsoft-NanoServer-Guest-... 10.0.14393.0 Local Machine NanoServerPackage =====
======
Name InstallationPolicy SourceLocation
---- ------------------ --------------
PSGallery Untrusted https://www.powershellgallery.com/api/v2 ======


-------------------------------------------------
guest -->4} nano server2 (windows server 2016)
----same as above

------------------------
i know nanoserverpackage provider does not support PowerShell Direct so i tried using PowerShell Remoting & I was successfull in installing "NanoServerPackage" Provider.
i have already installed all updates. Firtst i had added nano server to domain but it failed with following PSCmdlts, same with non domain member.
i have searched extensively over internet for below errors but in vain.

----i tried this as well(as given in one of the forum) --
Save-HTTPItemUsingBitsTransfer
\\192.168.1.130\c$\Program Files\WindowsPowerShell\Modules\NanoServerPackage\1.0.1.0\NanoServerPackage.psm1
\\192.168.1.130\c$\Program Files\WindowsPowerShell\Modules\NanoServerPackage\1.0.1.0\savehttpitemusingbits.psm1

i disabled 3 lines in nanoserverpackage.psm1 on nano server and replaced it with a line of code as specified by the author--> not it is not giving error "Bits transfer...." but still not able to download a package
------------------
install-PackageProvide -Name NanoSeverPackage -verbose --> success

import-PackageProvider -Name NanoServerPackage --verbose --> success

find-NanoServerPackage--> Errors
WARNING: Cannot find path 'C:\Users\administrator\AppData\Local\NanoServerPackageProvider\searchNanoPackageIndex.txt' because it does not exist.
WARNING: Save-HTTPItem: Bits Transfer failed. Job State: BG_JOB_STATE_ERROR ExitCode = 0


install-Package -name Microsoft-NanoServer-Storage-Package --> errors

VERBOSE: Using the provider 'NuGet' for searching packages.
VERBOSE: Using the provider 'PowerShellGet' for searching packages.
VERBOSE: Searching repository 'https://www.nuget.org/api/v2/FindPackagesById()?id='Microsoft-NanoServer-Storage-Package'' for ''.
VERBOSE: Using the provider 'NanoServerPackage' for searching packages.
VERBOSE: The -Repository parameter was not specified. PowerShellGet will use all of the registered repositories.
VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.
nanoServerErrors.png

VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2' and PackageManagementProvider is 'NuGet'.
VERBOSE: Total package yield:'0' for the specified package 'Microsoft-NanoServer-Storage-Package'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Microsoft-NanoServer-Storage-Package'' for ''.
VERBOSE: Downloading https://nanoserverpackage.blob.core.windows.net/nanoserver-ga-2016/searchNanoServerIndex.txt to C:\Users\administrator\AppData\Local\NanoServerPackageProvider\searchNanoPackageIndex.tx
t
WARNING: Cannot find path 'C:\Users\administrator\AppData\Local\NanoServerPackageProvider\searchNanoPackageIndex.txt' because it does not exist.
WARNING: Save-HTTPItem: Bits Transfer failed. Job State: BG_JOB_STATE_ERROR ExitCode = 0
VERBOSE: Total package yield:'0' for the specified package 'Microsoft-NanoServer-Storage-Package'.
Install-Package : No match was found for the specified search criteria and package name 'Microsoft-NanoServer-Storage-Package'. Try Get-PackageSource to see all available registered package sources.
+ CategoryInfo : ObjectNotFound: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Exception
+ FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
same with -->

install-Package -name Microsoft-NanoServer-DCB-Package --> errors
install-Package -name Microsoft-NanoServer-IIS-Package --> errors

i have left no stone unturned but in vailn, i have almost exhausted all options,i am not yet given up.

Kindly reply ASAP if Possible, your reply will be highly appreciated, thank you so much in advance. thanks again Sir..
 

Neemobeer

Windows Forum Team
Staff member
I see a lot of information and no actual question, what is the problem and what are you trying to do?
 

nebulaIT

New Member
first of all let me thank you for your quick response. that is very nice of you.

i have installed Nano server(GA/RTM 10.0.14393.0, windows 2016 data center) on Windows 10(10.0.18363.0) Host hyper-v(i have downloaded Evaluation Version of w2k16 & w10 from microsoft official websit).
i have successfully installed NanoServerPackage Provider as well as imported it successfully.
i know nanoserverpackage provider does not support PowerShell Direct so i installed it using PowerShell Remoting & I was successfull in installing "NanoServerPackage" Provider. i have already installed all updates.

1}but if i execute following pscmdlet i.e. "Find-NanoServerPackage" i get following ERROR.
find-NanoServerPackage:
WARNING: Cannot find path 'C:\Users\administrator\AppData\Local\NanoServerPackageProvider\searchNanoPackageIndex.txt' because it does not exist.
WARNING: Save-HTTPItem: Bits Transfer failed. Job State: BG_JOB_STATE_E


2} if i try to install any NanoServerPackage e.g." install-Package -name Microsoft-NanoServer-Storage-Package" i get following ERROR, it does Not install NanoServerPackage.

install-Package -name Microsoft-NanoServer-Storage-Package
WARNING: Cannot find path 'C:\Users\administrator\AppData\Local\NanoServerPackageProvider\searchNanoPackageIndex.txt' because it does not exist.
WARNING: Save-HTTPItem: Bits Transfer failed. Job State: BG_JOB_STATE_ERROR ExitCode = 0
VERBOSE: Total package yield:'0' for the specified package 'Microsoft-NanoServer-Storage-Package'.
Install-Package : No match was found for the specified search criteria and package name 'Microsoft-NanoServer-Storage-Package'. Try Get-PackageSource to see all available registered package sources.
+ CategoryInfo : ObjectNotFound: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Exception
+ FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage


i tried to download other NanoServerPackages(e.g. below) but i get the same error. it is NOT Installing NanoServerPackages.
install-Package -name Microsoft-NanoServer-DCB-Package
install-Package -name Microsoft-NanoServer-IIS-Package


thank you so much again for your quick response. Kindly let me know if any other information is required in order to solve my problem.
thanks NeemoBeer.
 

nebulaIT

New Member
PS C:\Users\administrator\Documents> Install-Package -Name Microsoft-NanoServer-DCB-Package -Verbose
VERBOSE: Using the provider 'NuGet' for searching packages.
VERBOSE: Using the provider 'PowerShellGet' for searching packages.
VERBOSE: Searching repository 'https://www.nuget.org/api/v2/FindPackagesById()?id='Microsoft-NanoServer-DCB-Package'' for ''.
VERBOSE: Using the provider 'NanoServerPackage' for searching packages.
VERBOSE: The -Repository parameter was not specified. PowerShellGet will use all of the registered repositories.
VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.
VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2' and PackageManagementProvider is 'NuGet'.
VERBOSE: Total package yield:'0' for the specified package 'Microsoft-NanoServer-DCB-Package'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Microsoft-NanoServer-DCB-Package'' for ''.
VERBOSE: Downloading https://nanoserverpackage.blob.core.windows.net/nanoserver-ga-2016/searchNanoServerIndex.txt to C:\Users\administrator\AppData\Local\NanoServerPackageProvider\searchNanoPackageIndex.tx
t
VERBOSE: Total package yield:'0' for the specified package 'Microsoft-NanoServer-DCB-Package'.
WARNING: Cannot find path 'C:\Users\administrator\AppData\Local\NanoServerPackageProvider\searchNanoPackageIndex.txt' because it does not exist.
WARNING: Save-HTTPItem: Bits Transfer failed. Job State: BG_JOB_STATE_ERROR ExitCode = 0
Install-Package : No match was found for the specified search criteria and package name 'Microsoft-NanoServer-DCB-Package'. Try Get-PackageSource to see all available registered package sources.
+ CategoryInfo : ObjectNotFound: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Exception
+ FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage

 

Neemobeer

Windows Forum Team
Staff member
Based on the error the package isn't available. Either because it's searching the wrong provider or you don't have the correct source or any number of issues. I would consult the nanoserverpackage GitHub page.
 

nebulaIT

New Member
hi,
thank you so much for reverting back. what you have mentioned in the reply is correct, it is searching the wrong provider & the wrong provider is looking up into wrong Repository.
"mcsa 70-740" --> Microsoft removed Nano Server and PowerShell for Docker from the 70-740 exam objectives on November 2, 2018.
i unnecessarily wasted so much time researching on Nano Server.
nevertheless i really appreciate your reply with hints.
 

Neemobeer

Windows Forum Team
Staff member
Nano servers are a pain and I've never bothered with them. It's much easier to use regular servers and just remove the GUI and you can manage them from the admin center or leave one with a GUI and use that as your management point.
 
Top