windows-server-2012

PowerShell Add-WindowsFeature unrecognized

时光总嘲笑我的痴心妄想 提交于 2021-02-07 11:16:17
问题 Thanks first of all for reviewing this. I've basically got a third-party agent software which allows me to execute PowerShell as LocalSystem. This allows me to easily run remote PowerShell commands without WinRM etc. The problem that i'm running into is that on some servers i'm not able to perform get-WindowsFeature or Add-WindowsFeature. An example of how i'm trying to achieve this is here: Import-Module ServerManager; Get-WindowsFeature; The output is as such: The term 'Get-WindowsFeature'

PowerShell Add-WindowsFeature unrecognized

只谈情不闲聊 提交于 2021-02-07 11:14:43
问题 Thanks first of all for reviewing this. I've basically got a third-party agent software which allows me to execute PowerShell as LocalSystem. This allows me to easily run remote PowerShell commands without WinRM etc. The problem that i'm running into is that on some servers i'm not able to perform get-WindowsFeature or Add-WindowsFeature. An example of how i'm trying to achieve this is here: Import-Module ServerManager; Get-WindowsFeature; The output is as such: The term 'Get-WindowsFeature'

Understanding the get-culture command

你。 提交于 2021-01-28 12:04:40
问题 I recently had some trouble with culture dependent returned values from my powershell script. The same script returned different values, depending on which machine it was. So I thought that maybe the culture settings are different and for one server it returned. get-culture : de-DE for the other it was like : en-US One value is for the keyboard settings but what does the other (second) stand for? And is the second value bound to the OS installation or is that just a setting? Is there a

PowerShell cmdlet Install-WindowsFeature called from C# errors and is not listed in the collections of commands

北城余情 提交于 2021-01-27 07:16:57
问题 I'm trying to install new features on a Windows Server 2012 system through PowerShell and C#. I am getting this error back when trying to call the Install-WindowsFeature cmdlet: The term 'Install-WindowsFeature' is not recognized as the name of a cmdlet, function, script file, or operable program... I can call other cmdlets though C# and even some of the other new ones. I did a Get-Command and Install-WindowsFeature , Remove-WindowsFeature , and Get-WindowsFeatures are not listed...but about

PowerShell cmdlet Install-WindowsFeature called from C# errors and is not listed in the collections of commands

你。 提交于 2021-01-27 07:15:15
问题 I'm trying to install new features on a Windows Server 2012 system through PowerShell and C#. I am getting this error back when trying to call the Install-WindowsFeature cmdlet: The term 'Install-WindowsFeature' is not recognized as the name of a cmdlet, function, script file, or operable program... I can call other cmdlets though C# and even some of the other new ones. I did a Get-Command and Install-WindowsFeature , Remove-WindowsFeature , and Get-WindowsFeatures are not listed...but about

Get source code of my published ASP.NET website from server

不羁的心 提交于 2021-01-27 06:13:28
问题 I've published my ASP.NET website to my Windows Server 2012 via Visual Studio. But things happened, and I lost all of my sources. I had a backup but it is not recent enough. I could re-code everything that is missing but I don't remember all of it. I was wondering if it's possible to get the source code from the server where I published my website ? I have a full access on it. Thanks, Hellcat8 回答1: Sorry to hear that! An ASP.NET (WebForms) application consists of code-behind classes and .aspx

Excel macros run through powershell but not when run by windows task scheduler

帅比萌擦擦* 提交于 2020-08-19 10:21:34
问题 I have a script which checks a folder for excel files and then if this "threshold" is greater than 0 then a macro from another excel file is run that interact with these excel folders. When I run the process manually through powershell ISE it works fine but when I use the windows task scheduler the powershell script runs but the excel macro called doesn't run. Any suggestions why this might be the case? This process used to run on a windows 2008 server fine but was migrated to windows server

503 error, caused by `iis_ssi.dll failed to load` in the Event Viewer (eventlog)

可紊 提交于 2020-08-06 11:39:05
问题 I'm getting this error in the event log (EventViewer): The Module DLL C:\Windows\System32\inetsrv\iis_ssi.dll failed to load. The data is the error. OS is Windows2012 Server. How to fix it? 回答1: You need to add SSI in Server Manger. Follow these steps: Add Roles and Features In Server Roles, expand Web Server (IIS) Expand Application Development Select Server Side Includes 回答2: For Windows 2012r2 Operating systems, to be more precise following this step: Open Server Manager Dashboard Click on

Using SqlPackage.exe on a server without SSMS installed

家住魔仙堡 提交于 2020-08-05 09:27:44
问题 I have a windows 2012 server. The server can access my SQL database. I don't have access to the SQL database server, and I don't have access to install SSMS on the windows 2012 server running my website. I want to use SqlPackage.exe to update my database scheme with a .dacpac file I get the following error: Unhandled Exception: System.TypeInitializationException: The type initializer for 'Microsoft.SqlServer.Dac.DacPackage' threw an exception. ---> System.TypeInitializationException: The type

How handle Application Error Exception code: 0xc00000fd

﹥>﹥吖頭↗ 提交于 2020-05-14 19:10:19
问题 I have an ASP.Net Web API application deployed via IIS. It is in Windows Authentication enable mode only because I want to detect Windows users who access the APIs. For a few days the application will work fine but occasionally it will fail. When the application fails it will present the login prompt several times (minimum 3 times) when requesting the API. Instead of responding to credentials a "Service Unavailable" message is presented. At this point the site's application pool stops and an