windows-server

How to enable docker Experimental mode on EC2 instance of Windows-Server-2019-Base-with-Containers?

牧云@^-^@ 提交于 2020-02-24 12:20:27
问题 I'm trying to docker pull postgres but get this error message instead no matching manifest for windows/amd64 in the manifest list entries Which lead me to this solution How can I run Docker in a AWS Windows Server environment? The solution is to enable Experimental mode But there is no docker icon on my environment. So I tried to use this command dockerd --experimental But got this error PS C:\Users\Administrator> dockerd --experimental time="2019-01-21T08:45:51Z" level=warning msg="Running

Is there a way to get information about a server using SQL

六月ゝ 毕业季﹏ 提交于 2020-01-24 17:55:07
问题 Is there a way to get information about a server using SQL? It is an Oracle database using a windows server. I searched google and all I found was @@version which does not work. Thanks for your help. 回答1: Here is a good list of the main informations retrieve routines. Be sure this is the best way to obtain Server infos: Oracle Version : PL/SQL, TNS versions using with Oracle. SELECT * FROM v$version; -- Which version of oracle you are running. SELECT * FROM v$version WHERE banner LIKE 'Oracle

Get disk space information from multiple remote windows servers

这一生的挚爱 提交于 2020-01-24 05:44:05
问题 I am trying to make a tool that would login to multiple remote windows servers and get their drive details and display them under one window. Possible command that I am looking forward to execute in the remote server is wmic logicaldisk get size,freespace,caption . I intend to get the output of this command and display it. I have remote server hostname and IP, username and password. How do I connect to these remote servers and execute the command? 回答1: So, powershell is not enabled it means

Powershell to find out disconnected RDP session and log off at the same time

我的梦境 提交于 2020-01-20 08:53:48
问题 Is there a script that can log out my disconnected RDP session from any server? This is causing a lot of pain and constant ad account lockouts. Any help would be awesome. 回答1: I have got the answer and I am writing this answer to help someone in need as I had to figure this out myself. I created a script using online resources to find out disconnected RDP sessions on all Windows Server in my AD environment. I run a query on each Windows Server and create a CSV formatted list, I then use that

Powershell to find out disconnected RDP session and log off at the same time

一曲冷凌霜 提交于 2020-01-20 08:53:05
问题 Is there a script that can log out my disconnected RDP session from any server? This is causing a lot of pain and constant ad account lockouts. Any help would be awesome. 回答1: I have got the answer and I am writing this answer to help someone in need as I had to figure this out myself. I created a script using online resources to find out disconnected RDP sessions on all Windows Server in my AD environment. I run a query on each Windows Server and create a CSV formatted list, I then use that

Grant ASP.NET MVC 3 website write access to ~/Content/uploads folder

一个人想着一个人 提交于 2020-01-14 05:10:09
问题 I have an ASP.NET MVC 3 website that runs on the company intranet to which I want to add a page that can upload files to the server. I am running the site on Windows Server 2012 with IIS 8. IIS Config: Application pool attributes: .Net Framework v4.0 Managed Pipeline Mode: Integrated Identity: LocalSystem Under the site node, authentication is set as: Windows Authentication: Enabled (Users must use their corporate Windows Accounts to log in) All other Authentication including Anonymous

A connection attempt failed because the connected party did not properly respond after a period of time or connected host has failed to respond

烂漫一生 提交于 2020-01-13 11:23:07
问题 I'm developing a windows service, that downloads images from a specific URL. The service runs correctly on my computer but when I install it in the server it does not download the image and it gives the following error: System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed

Installing more cultures on Windows Server 2012

江枫思渺然 提交于 2020-01-13 03:37:08
问题 On a Windows 8.1 machine, I'm seeing many more available cultures than on a Windows Server 2012 machine: 791 vs 378. To give a specific example, the server machine is missing the 'en-HK' culture. Here is the test code I'm using to enumerate them: foreach (var ci in CultureInfo.GetCultures(System.Globalization.CultureTypes.AllCultures).OrderBy(ci => ci.Name)) { Console.WriteLine("{0} ({1})", ci.Name, ci.EnglishName); } Question: how can I install the more complete culture list on Windows

Powershell to find Server Operating system

时光毁灭记忆、已成空白 提交于 2020-01-11 09:49:29
问题 I had a task to find Operating System of all the servers we had in AD for some Microsoft Licenses requirement. Has anyone done this? 回答1: I figured it out. Please feel free to use it and modify it. If you have questions, let me know. It's a simple command. Hopefully, it helps someone. This gives you the type of operating systems you have. I am filtering based on Windows Server only and computer accounts that are active. Then sort by name and select unique OS. Get-ADComputer -Filter {

How to set share permissions on a remote share with Powershell?

ε祈祈猫儿з 提交于 2020-01-06 19:49:14
问题 I need to set the share permissions of a remote share from a Powershell 4 script. I've looked at this page, specifically the command Grant-SmbShareAccess but that cmdlet sets permissions on local shares, I would love to have seen a -ComputerName parameter but, alas, there isn't one. I want to do something like: Grant-SmbShareAccess -ComputerName MYREMOTESERVER -Name <share_name> -AccountName <domain_account> -AccessRight Full Any ideas on how to do this? My remote server could be a Windows