How do you download ubuntu distribution for WSL offline install [closed] - windows-subsystem-for-linux

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I am trying to setup WSL for ubuntu 20.04 windows app store disabled in my org for downloads. Can I get offline build for appx file?
I am getting below error:
Add-AppxPackage : Deployment failed with HRESULT: 0x80073CF0, Package could not be opened.
error 0x8007000D: Opening the package from location Ubuntu.appx failed.
NOTE: For additional information, look for [ActivityId] 61dcaa29-6a91-0005-bbef-dc61916ad701 in the Event Log or use
the command line Get-AppPackageLog -ActivityID 61dcaa29-6a91-0005-bbef-dc61916ad701
At line:1 char:1
Add-AppxPackage .\Ubuntu.appx
+ CategoryInfo : OpenError: (C:\Dev\Ubuntu.appx:String) [Add-AppxPackage], FileNotFoundException
+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand

There are several scenarios in which you may not be able (or want) to,
install WSL Linux distros via the Microsoft Store. Specifically, you
may be running a Windows Server or Long-Term Servicing (LTSC) desktop
OS SKU that doesn't support Microsoft Store, or your corporate network
policies and/or admins to not permit Microsoft Store usage in your
environment.
This link may help

Related

Error while creating a CSR [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
During the creation of self-signed certificate using OpenSSL command line tool, i'm encountered with an error
First I created a private key
openssl genrsa -out MyKey1.key 2048
While creating a CSR i'm getting an error
openssl req -new -out MyCert1.req -key MyKey1.key -subj /CN=Description of the Server
Error is
problem creating object tsa-policy1=1.2.3.4.1
5364:error:08064066:object identifier routines:OBJ_create:pid exists:crypto\objects\obj_dat.c:689:
Is there something i'm missing here ?
Close the current cmd window and open new cmd window.
Continue from the second "req" step.
I had this same problem while creating a self signed certificate...
setting these two environment variables fixed it!
set RANDFILE=c:\demo\.rnd
set OPENSSL_CONF=C:\OpenSSL-Win32\bin\openssl.cfg
I found the solution in this blog post
I had the same issue when creating client certificate request on Windows platform. Run application as Administrator solves the problem.
In my situation, I changed the administrator password while I was working so CMD lost the privileges. I closed the current CMD window and opened again
Look into the openssl.cnf file for this section:
# Policies used by the TSA examples.
tsa_policy1 = 1.2.3.4.1
tsa_policy2 = 1.2.3.4.5.6
tsa_policy3 = 1.2.3.4.5.7
Comment or remove the tsa_policyX lines, save the configuration file and launch the command again.

Remove computer from Configuration Manager (System Center 2012 R2) with script/batch/programatically?

We are having trouble with the Config Manager client randomly getting corrupted during installation on new computers. We are currently rebuilding our image, but in the meantime, we are implementing a short term solution where we simply completely uninstall Config Manager Client, remove the computer object from the Config Manager console, and then reinstall the client.
In an effort to reduce the "clicks" that our help desk techs would have to preform, I would like to write a simple script/batch/program/whatever to just do it in one fell swoop. My only holdup is that I don't know how to invoke Configuration Manager via the command line or Powershell and remove a computer from our Devices.
Is this even possible? I can't find any documentation from Microsoft.
Found my answer. There is a wealth of Configuration Manager cmdlets available. I simply used "CM-GetDevice" to find a device, and then "Remove-CMDevice" to remove it completely.
http://technet.microsoft.com/en-us/library/jj821831(v=sc.20).aspx

Why is net command for creating new local account not working as expected in Windows 8.1? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
The problem is simple. When I type next command in elevated command prompt new user that can log in should be created:
net user UserName UserPass /ADD
After that command execute I should be able to start process and to log into machine as that user:
runas /user:UserName "cmd.exe"
After typing in password for user message I get is:
RUNAS ERROR: Unable to run - cmd.exe
299: Only part of a ReadProcessMemory or WriteProcessMemory request was completed.
But command is successful if I run it with /noprofile option. Also user created like this is not able to log on computer, log in fails with message:
User profile Service service failed the logon. User profile cannot be loaded.
OS is Windows 8.1 (original not pirate version) upgraded from Windows 8. I suspect that this is some Windows configuration error so it would be nice if one could point me in right direction.
The following link is very likely to direct you towards identifying any files that might be causing this error.
http://chentiangemalc.wordpress.com/2011/07/18/case-of-the-user-service-service-failed-the-logon/

Can't run vb.net application as administrator across network

I have created a small application that auto elevates as administrator using the command:
requestedExecutionLevel level="highestAvailable" uiAccess="false"
This works fine if I run the application locally on the computer. However, if the computer tries to run my execuatable across the netork, it simply crashes on startup with a message "Do you want to send more information about the problem?" error. If I right click and run as administrator, my application will work and will prompt for admin credentials.
The folder I am running my application from (across the network) has full read/write permissions for 'everyone'.
My question is: Is there something I've missed? Why can I run my application locally and not get prompted but across the network crashes or requires admin?
Can anyone help explain what might be causing this issue?
UPDATE
I have checked my event viewer log and it shows the following:
Application: AutoUpdater.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Net.Sockets.SocketException
Stack:
at System.Net.Sockets.Socket..ctor(System.Net.Sockets.AddressFamily, System.Net.Sockets.SocketType, System.Net.Sockets.ProtocolType)
at System.Net.Sockets.TcpListener..ctor(System.Net.IPAddress, Int32)
at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel.SetupChannel()
at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel..ctor(System.Collections.IDictionary, System.Runtime.Remoting.Channels.IServerChannelSinkProvider, System.Runtime.Remoting.Channels.IAuthorizeRemotingConnection)
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.RegisterChannel(ChannelType, Boolean)
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(System.String[])
at AutoUpdater.My.MyApplication.Main(System.String[])
I don't understand why it is making reference to System.Net.Sockets?? But that is what seems to be crashing my app.
Make sure that the other computers attempting to run your application have the correct .Net framework versions installed. If users are able to open the executable, there shouldn't be any other issues with permission.
If you have verified the framework versions, see if there is anything in the error report that might point to a reason for the crash. A lot of times there may be something in there that can point you in the right direction.
.NET applications don't like to run from the intranet by default.
Try this:
Go to Control Panel -> Administrative Tools -> Microsoft .NET Framework 2.0 Configuration
Click Configure Code Access Security Policy link
Click Adjust Zone Security
Set the My Computer and Local Intranet to Full Trust
If this works, then it is a local security issue. If you need it scripted out, you can use the caspol exe that is in the framework. Sample
C:
cd %windir%\Microsoft.NET\Framework\v2.0.50727
CasPol.exe -pp off -m -ag 1. -URL Z:\folder\EXEName.exe FullTrust -n FriendlyNameOfEXE

SSH connection closed after first password attempt [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
So, I'm having a rather weird problem. I have a server, that when I try to SSH into, immediately closes the connection if I type in the correct password on the first attempt. However, if I purposefully enter a wrong password on the first attempt, and then enter a correct password at the second or third prompt, it successfully logs me into the computer. Similarly, when I try to use public key authentication, I get an immediate closed connection. If, however, I enter a wrong password for my key file, followed by another wrong password once it reverts to password authentication, I can successfully log in as long as I provide the correct password at the second or third prompt.
The machine is running Red Hat Enterprise Linux Server release 6.2 (Santiago), and is using LDAP for authentication. Any ideas on where to start debugging this one?