Questions tagged [servermanager]

93 questions
1
vote
1 answer

WMI access to IIS7

We have an internal tool that enumerates the IIS sites and applications for a server. It uses code similar to this: using (var serverManager = ServerManager.OpenRemote(serverName)) { var site = serverManager.Sites[siteName]; // This is slow …
Jacob
  • 77,566
  • 24
  • 149
  • 228
1
vote
1 answer

Unable to launch the IIS Express Web Server after using Microsoft.Web.Administration

I have been playing around with Microsoft.Web.Administration and I have had the following code run in my settup: { using (ServerManager serverManager = new ServerManager()) { foreach…
Poul K. Sørensen
  • 16,950
  • 21
  • 126
  • 283
1
vote
1 answer

ServerManager behaves differently in multiple threads

I created these properties in my static helper class. private static ServerManager IISServerManager { get { if (mIISServerManager== null) { mIISServerManager= new ServerManager(); …
Tom Hruby
  • 195
  • 1
  • 1
  • 7
1
vote
2 answers

Powershell Module: Enable/Get Server-Manager Module Windows 7

I've installed Win Remote Mgmt tools on my Windows 7 Enterprise. I would like to remote manage my servers and to run script which would need the SEVERMANAGER MODULE. After installing the Remote Mgmt tools and activating them as a feature, I started…
1
vote
1 answer

ServerManager class, my site is not in the Site Collection on Azure Compute Emulator

I have a WebRole named Web, and I am running this code in the Azure Compute Emulator: public override bool OnStart() { using (var serverManager = new ServerManager()) { string strSiteName =…
1
vote
2 answers

Create IIS using servermanager, commitchanges error

Having troubles when i want to create a new server using servermanager. Here's my code ServerManager sm = new ServerManager(); Site s = sm.Sites.Add("NEWSERVER", path, 80); BindingCollection bindingCollection = s.Bindings; …
1
vote
1 answer

Access IIS Websites Properties Using ServerManager

I am able to display the sites in my IIS using the serverManager.Site. Is there any way to list the files in each of the Website. I need to change RequireSSL property of one of the File. Is that Possible using ServerManager? Or any other way to do…
Access Denied
  • 224
  • 1
  • 14
0
votes
1 answer

Transferring cookies to subdomain located in different Server using PHP

How can we pass on cookies to the subdomain if it's on a different server? Basically, the main domain is on siteground while the subdomain is on softr.io. I'm using it for the authentication, so when someone logged in to main domain, he/she can…
0
votes
0 answers

Can’t find Active Directory after installing it on the Server 2019

I installed AD step-by step as required PS query, but in result can’t find it anywhere. I can only access that through Powershell by commands. The exact problem is that there are no such option in Server Manager > Tools > Active Directory Users and…
0
votes
0 answers

List Server which are not part of this deployment in server pool

Is there a way to get the list of servers available to add to the server pool? I need to get the server list via PowerShell which is listed as Server Manager (Refer to attached Screenshot)
0
votes
1 answer

how to get an average of unit test results in sql server db

So i'm trying to find a monthly average of unit tests my employer runs. The table consists of test id, start date, end date, total tests, duration l, pass total , fail total and pass perc . I'm not sure how to pull this off (i'm a new…
0
votes
0 answers

php my admin to link my sql database localhost directory doesn't exist

This is what I get when trying to log into phpmyadmin through wamp server: I have tried all of the solutions that could be found on the internet excluding the one using server manager because i don't have it and couldn't download it even using cmd…
0
votes
0 answers

Is there a way to query Server Manager using PowerShell

Part of our daily process is to RDP to a remote machine and check the services are running. We have to check “File and Storage Services”, “IIS”, “Local Server”, and “All Servers” (see image). Can I do this remotely through PowerShell? I have a…
RobJ
  • 1
  • 1
0
votes
1 answer

How to get app port from IIS Express in C#

I am trying to get The port which an app is running on, from IIS Express. So far i tried those two approaches: //first var iisExpress = new DirectoryEntry("IIS://localhost/W3SVC/AppPools").Children; //second var mgr = new…
Machshevet
  • 21
  • 1
0
votes
0 answers

How to fix error occurred during enumeration of volumes

I have added two servers in the domain controller but one of the server is showing following error: ServerNameDC2: error occurred during enumeration of volumes: the winrm client cannot process the request because the server name cannot be…