windows-server-2012-r2

Certain commands like IISRESET and ROBOCOPY have stopped working in Powershell v4

亡梦爱人 提交于 2021-02-20 04:35:27
问题 Certain commands like IISRESET and ROBOCOPY have stopped working in Powershell v4 I have a pretty large script that runs those 2 commands at certain points, but these now both give me the general error: iisreset : The term 'iisreset' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. These commands still work from CMD. The only changes that were made is

I am trying to map an Amazon EC2 drive to a local machine

点点圈 提交于 2021-02-08 08:23:58
问题 I am trying to map an Amazon EC2 instance to my local machine. I have read that it is possible via VPN but I need it to work without a VPN. Essentially I would like to make drives in the EC2 instance available similar to the way DropBox folders are available. I know that I could just use Dropbox but I am trying to find a way to do this using just a local machine running Windows 7 and an EC2 server using Windows Server 2008. If it is easier, I can use Windows Server 2012. 回答1: Your request is

I am trying to map an Amazon EC2 drive to a local machine

柔情痞子 提交于 2021-02-08 08:23:35
问题 I am trying to map an Amazon EC2 instance to my local machine. I have read that it is possible via VPN but I need it to work without a VPN. Essentially I would like to make drives in the EC2 instance available similar to the way DropBox folders are available. I know that I could just use Dropbox but I am trying to find a way to do this using just a local machine running Windows 7 and an EC2 server using Windows Server 2008. If it is easier, I can use Windows Server 2012. 回答1: Your request is

ADFS 3.0 using OAuth and Persistent Refresh Tokens

£可爱£侵袭症+ 提交于 2021-02-08 07:56:36
问题 Question 1 We are currently using ADFS and OAuth (using Windows Server 2012 R2 with ADFS 3.0). Our test applications (both WPF and mobile apps) can successfully authenticate and get an Access Token and a Refresh Token. We can after that continue to use the Access Token until it expires and after that use the Refresh Token to get a new Access Token. So far so good, but the problem is when the Refresh Token expires, we need to force the user to enter their credentials again. Our aim is to have

PowerShell Screen Capture

为君一笑 提交于 2021-02-04 06:50:45
问题 I have been stuck on this for last day or so and I think its something small that I just can't see. To summarize the code: Powershell script that will run every 60 seconds to take a screen capture. On Windows Server 2012 this works perfectly fine. While on Windows 7, only first screen shot is taken and then all after are "blank" with just white space the size of dimensions. Any Ideas why this happens? I also attempted to remove the bigger while loop and do a scheduled task that runs every 5

Cannot remove item. The directory is not empty

℡╲_俬逩灬. 提交于 2021-01-20 15:20:09
问题 I am trying to delete a folder with subfolders/files. Remove-Item -Force -Recurse -Path $directoryPath I am getting the error Cannot remove item. The directory is not empty. My PowershellScript.ps1 has executionPolicy unrestricted . The root folder I try to delete with the current logged in user has full permission on this folder. On my local pc the code works but not on my Windows Server 2012 R2 . 回答1: You could try the following: Remove-Item -Force -Recurse -Path "$directoryPath\*" Note

How to install ImageMagick php extension for use on IIS server on windows server

丶灬走出姿态 提交于 2021-01-15 10:54:23
问题 I have a windows web server 2012r2 and wish to install Imagemagick php extension on it, but everything I've tried following has failed to get it to show up in phpinfo(). How can I get imagemagick running? I cannot find working installation steps for IIS. 回答1: Eventually I ended up on a blogpost, which is a repost of a deleted post by PhilipD which was posted in a wrong format and not corrected. So the question was deleted. I'm reposting the answer of PhilipD here so it can be found more

ASP.NET Core 3.0 app not working on Windows Server 2012 R2 due to ERR_HTTP2_INADEQUATE_TRANSPORT_SECURITY

放肆的年华 提交于 2020-12-29 05:45:47
问题 I took a working ASP.NET Core 2.2 app, upgraded it to 3.0 and suddenly the app no longer works in Windows Server 2012. It comes up with the following: ERR_HTTP2_INADEQUATE_TRANSPORT_SECURITY Chrome: Firefox: It seems that before I had to opt into HTTP/2 and now its the default along with HTTP1.1. There is a post here https://github.com/aspnet/AspNetCore/issues/14350 but that is totally confusing with no real solution. I have tried all sorts of enabling / disabling insecure protocols but to no

ASP.NET Core 3.0 app not working on Windows Server 2012 R2 due to ERR_HTTP2_INADEQUATE_TRANSPORT_SECURITY

强颜欢笑 提交于 2020-12-29 05:44:14
问题 I took a working ASP.NET Core 2.2 app, upgraded it to 3.0 and suddenly the app no longer works in Windows Server 2012. It comes up with the following: ERR_HTTP2_INADEQUATE_TRANSPORT_SECURITY Chrome: Firefox: It seems that before I had to opt into HTTP/2 and now its the default along with HTTP1.1. There is a post here https://github.com/aspnet/AspNetCore/issues/14350 but that is totally confusing with no real solution. I have tried all sorts of enabling / disabling insecure protocols but to no

Let's Encrypt certificate not trusted on Firefox

生来就可爱ヽ(ⅴ<●) 提交于 2020-06-27 10:10:11
问题 I just added the certificate in IIS 8 (Windows Server 2012) using letsencrypt-win-simple.V1.9.1 . There are no problems in Google Chrome but in Firefox the connection is not trusted. I followed this tutorial : https://weblog.west-wind.com/posts/2016/feb/22/using-lets-encrypt-with-iis-on-windows#TheEasyWay:LetsEncrypt-Win-Simple . 回答1: Upon cursory examination, it would appear that you have a valid SSL certificate installed and configured. However, more thorough analysis courtesy of the