Posts

Showing posts from September, 2020

Powershell - Install Nuget failed, WARNING: Unable to download from URI

 When trying to run Install-Module something from Nuget, the error code came up like this: WARNING: Unable to download from URI 'https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409' to ''. WARNING: Unable to download the list of available providers. Check your internet connection. PackageManagement\Install-PackageProvider : No match was found for the specified search criteria for the provider 'NuGet'. The package provider requires 'PackageManagement' and 'Provider' tags. Please check if the specified package has the tags. This solution from StackOverflow helped.  Run this first [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

Create a Device Collection based on a User Collection (Primary Computer)

Image
Credit going to Steven Hosking There's probably a slightly easier way to work this, but hey if it works... ¯\_(ツ)_/¯ Case scenario: I have a user security group in AD (for example, SG_User).  I want to create a device collection, using SG_User to find the primary device.    Solution: Create a user collection, referencing SG_User . In this example, I called this user collection CM_User. Replace 'domain\\SG_User' with your own domain name and security group. Create a device collection, referencing user collection CM_User's ID. Replace 'P0100024' with your own ID. How do you find the ID?  In your User Collections, right-click on header row and click Collection ID .   And that's it.  

Convert ESD to WIM

Converting an ESD file to WIM file for upgrade packages: an odd thing to do with SCCM. Nevertheless. If you already have an iso downloaded from VLSC or the Microsoft site, this is fairly straightforward. Mount .iso file.  Copy .\sources\install.esd from the mount to C:\temp\ (doesn't matter, but make note of location). Open command prompt as administrator, and cd to C:\temp Run command: dism /get-wiminfo /wimfile:install.esd You should get a screen like this with the Index numbers. Make a note of which index number is applicable to your license. Run next command: dism /export-image /sourceimagefile:install.esd /sourceindex:4 /destinationimagefile:install.wim /compress:max /checkintegrity Wait for process to finish, then copy the wim file back to the original source.