windows-server-2012

Why is this process crashing as soon as it is launched?

隐身守侯 提交于 2019-11-27 01:29:54
We have an IIS WCF service that launches another process (app.exe) as a different user. I have complete control over both applications (and this is a dev environment for now). The IIS app pool runs as me, a domain user (DOMAIN\nirvin), who is also a local administrator on the box. The second process is supposed to run as a local user (svc-low). I am using System.Diagnostics.Process.Start(ProcessStartInfo) to launch the process. The process launches successfully - I know because there are no exceptions thrown, and I get a process ID. But the process dies immediately, and I get an error in the

Why doesn't Windows Server 2012 support .NET framework 4.0?

不羁岁月 提交于 2019-11-26 21:53:39
问题 I had tried to use my application built on .NET framework 4.0 with Windows Server 2012 but it's not working and according to MSDN, Server 2012 is not supported by .NET Framework 4.0. Why is that? How can I overcome this issue without converting my application to Framework 4.5? 回答1: .Net4.5 is kind of updating the runtime of .Net4.0 with the new one, when you install .NET 4.5 your .NET 4.0 assemblies in the \Windows.NET Framework\V4.0.30319 are overwritten with a new set of assemblies. You end

Powershell script to see currently logged in users (domain and machine) + status (active, idle, away)

泄露秘密 提交于 2019-11-26 12:58:33
问题 I am searching for a simple command to see logged on users on server. I know this one : Get-WmiObject -Class win32_computersystem but this will not provide me the info I need. It returns : domain Manufactureer Model Name (Machine name) PrimaryOwnerName TotalPhysicalMemory I run Powershell 3.0 on a Windows 2012 server. Also Get-WmiObject Win32_LoggedOnUser -ComputerName $Computer | Select Antecedent -Unique gives me not the exact answers I need. I would love to see as well the idle time, or if

Why is this process crashing as soon as it is launched?

前提是你 提交于 2019-11-26 09:40:04
问题 We have an IIS WCF service that launches another process (app.exe) as a different user. I have complete control over both applications (and this is a dev environment for now). The IIS app pool runs as me, a domain user (DOMAIN\\nirvin), who is also a local administrator on the box. The second process is supposed to run as a local user (svc-low). I am using System.Diagnostics.Process.Start(ProcessStartInfo) to launch the process. The process launches successfully - I know because there are no

IIS_IUSRS and IUSR permissions in IIS8

江枫思渺然 提交于 2019-11-26 01:41:34
问题 I\'ve just moved away from IIS6 on Win2003 to IIS8 on Win2012 for hosting ASP.NET applications. Within one particular folder in my application I need to Create & Delete files. After copying the files to the new server, I kept seeing the following errors when I tried to delete files: Access to the path \'D:\\WebSites\\myapp.co.uk\\companydata\\filename.pdf\' is denied. When I check IIS I see that the application is running under the DefaultAppPool account, however, I never set up Windows