windows-server

windows service bus error: Peer did not create remote endpoint for link, target:,

℡╲_俬逩灬. 提交于 2019-12-02 16:58:56
问题 I am trying to connect to windows service bus using, the example provided on microsoft website, trying to connect the service bus using AMQP from java private String SbConnStrACS = "amqps://" + SbUsername + ":" + encode(SbPassword) + "@" + SbDomain; private String SbQueueName = SbNamespace + "/testq"; I am using below versions of libraries <dependency> <groupId>org.apache.geronimo.specs</groupId> <artifactId>geronimo-jms_1.1_spec</artifactId> <version>1.1.1</version> </dependency> <dependency

Is it possible to install Visual Studio in a Windows Container

自古美人都是妖i 提交于 2019-12-02 15:43:18
Is it possible to install any version of Visual Studio in a Windows Container on a Windows Server? The motivation is to use Windows Containers for building software in continuous integration systems, so that the build environment is standardized. Visual Studio seems to not be supported officially on Core Server, but I agree it would be really nice to be able to do this. Let's try: FROM mcr.microsoft.com/windows/servercore:ltsc2019 SHELL ["powershell"] RUN Invoke-WebRequest "https://aka.ms/vs/15/release/vs_community.exe" -OutFile "$env:TEMP\vs_community.exe" -UseBasicParsing RUN & "$env:TEMP\vs

Native PHP 5.6 OpenSSL Composer.phar failed to enable crypto on Windows

南楼画角 提交于 2019-12-02 12:01:30
I have a problem with PHP 5.6 native on a Windows machine. I get this error when I try to run a composer update (php composer.phar update): [Composer\Downloader\TransportException] The "https://packagist.org/packages.json" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol Failed to enable crypto failed to open stream: operation failed The openssl extension is loaded. I already downloaded this file http://curl.haxx.se/ca/cacert.pem and saved it to a path on my machine and set this path in

Does a good wrapper class and/or library for open xml Excel editing exist?

冷暖自知 提交于 2019-12-02 11:53:29
问题 I'm looking for a nice library for editing and/or generating Excel documents on our Windows server. I feel that the open xml sdk is probably the way to go, but to me the learning curve seems steep and our dev time is limited. I think that it just shouldn't be that difficult to edit an Excel document. I'm ready to reinvent the wheel, but thought it would be worthwhile to ask first whether there is a good project/library out there that wraps open xml and makes interacting with Excel easier. In

Does a good wrapper class and/or library for open xml Excel editing exist?

一曲冷凌霜 提交于 2019-12-02 05:32:24
I'm looking for a nice library for editing and/or generating Excel documents on our Windows server. I feel that the open xml sdk is probably the way to go, but to me the learning curve seems steep and our dev time is limited. I think that it just shouldn't be that difficult to edit an Excel document. I'm ready to reinvent the wheel, but thought it would be worthwhile to ask first whether there is a good project/library out there that wraps open xml and makes interacting with Excel easier. In this official MS tutorial, the code that retrieves the value of a cell is dozens of lines long. http:/

Powershell to find Server Operating system

一世执手 提交于 2019-12-01 20:34:44
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? 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 {(OperatingSystem -like "*windows*server*") -and (Enabled -eq "True")} -Properties OperatingSystem | Sort Name |

Windows container failed to start with error, “failed to create endpoint on network nat: HNS failed with error : Failed to create endpoint.”

这一生的挚爱 提交于 2019-12-01 16:56:45
I have been trying Windows Containers on windows server 2016 TP5. Suddenly I started getting error while running a container with port maping option -p 80:80 c:\>docker run -it -p 80:80 microsoft/iis cmd docker: Error response from daemon: failed to create endpoint sharp_brahmagupta on network nat: HNS failed with error : Failed to create endpoint. I made sure that no other container is running and port 80 on host machine is not being used by any other service. Did anyone face same issue? After searching around I stunbled upon this issue on github. This seemed to be a known issue with Windows

PHP, IIS, Oracle (OCI) not working

烂漫一生 提交于 2019-12-01 14:29:30
We are migrating from a Windows SBS 2011 to Windows Server 2012 R2. We have an internal website that connects to our Oracle database using PHP. I am trying to migrate this to the new server and so far I have: Installed IIS Server Role Installed PHP Downloaded Oracle Instant Client to C:\instantclient Added C:\instantclient to PATH System Variable Added php_oci8.dll to php.ini and checked that PHP is actually using this php.ini Restarted server I am still getting error messages like oci_ commands not being recognised etc. I'm lost. I've searched online and the instructions match what I have

RegOpenKeyEx giving error 2 or error 161, fails both ways

孤人 提交于 2019-12-01 11:59:00
问题 I am trying to read a registry key from a Windows server, and I can't seem to get it to work either with or without leading slashes. If I try: lError = RegOpenKeyEx(HKEY_LOCAL_MACHINE, "\\SOFTWARE\\Company\\Product\\ServerName", 0, KEY_QUERY_VALUE, &hDomainKey); It gives me error 161, which is ERROR_BAD_PATHNAME. (The specified path is invalid.) Okay, so trying it this way: lError = RegOpenKeyEx(HKEY_LOCAL_MACHINE, "SOFTWARE\\Company\\Product\\ServerName", 0, KEY_QUERY_VALUE, &hDomainKey); I

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

谁说胖子不能爱 提交于 2019-11-29 16:42:35
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. 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 list to log out my ID from those servers, so I don't have any disconnected sessions. I did this to make sure