Enable IIS features Command Line

I want to enable IIS features through a script/command line. I have the features installed on my system, but not enabled. How can I do that? Also, is there a difference in the way it works for IIS6 and IIS7? 
Any help is appreciated!
Thanks,
Chas,
-Chandrahas

Hi,
If you are looking for command to enable the specified IIS module, check below link:
Enable-WebGlobalModule
In addition, for more Web Server (IIS) Administration Cmdlets in Windows PowerShell:
http://technet.microsoft.com/en-us/library/ee790599.aspx
Hope this helps.
Regards,
Yan Li
Regards, Yan Li

Similar Messages

  • Enable bluetooth via command line in Vista?

    Hi there,
    I have a Lenovo T61 7662CTO running Vista x64 Ultimate and have recently switched to a new dock & keyboard/mouse set.  I have used Access Connections to enable / run the other applications associated with this work environment, but I can not find a way to enable (and disable) the bluetooth antenna without opening Fn+F5 (Wireless Radio Menu) and choosing to enable the bluetooth radio there. 
    I would like to see if there is an application which I could run that will enable the bluetooth radio so that I do not have to manually turn it off and on...
    The main reason I turn bluetooth off is to conserve battery life and to avoid the PIM manager pop-up that occurs everytime I boot up the PC... (is that normal? I have disabled PIM and it still comes up.)
    Please help
    Nick

    This is probably too late for you, but incase others are interested...
    acfnf5.exe is the program  you need.
    C:\Program Files\ThinkPad\ConnectUtilities\acfnf5.exe is were I have it installed
    switches:
    /bton - turn on the bluetooth
    /btoff - turn off the bluetooth ..

  • Command line error on Windows server 2008, GUI works

    I'm running Windows Server 2008 with a Blackmagic Decklink card. Everything works fine with the GUI but when I try to start from command line it extis with an error (see attached image).
    Note: I have the desktop experience enabled.

    I came across the identical problem with an Osprey card. I did some digging and for some reason, on Windows Server 2008, the "Desktop Experience" must be enabled for the command line version of FMLE to function. Not sure why this is, but it worked for me. Here's the note from Microsoft on how to enable this feature on your server...
    http://technet.microsoft.com/en-us/library/cc772567.aspx

  • Setting IIS W3C Extended Log File settings via command line, registry or configuration file

    I am currently in need of a way to set IIS W3C Extended Log File settings via command line, registry or configuration file.  More specifically the 'Bytes Sent (sc-bytes)' and 'Bytes Received (cs-bytes)' settings that are not enabled by default. 
    If anyone knows where I can locate these setting (outside of the GUI) for all IIS versions that would be greatly appreciated.

    I believe I have found a valid solution. You must have the WebAdministration module loaded.  I hope this helps someone.
    Use the following syntax to view current W3C fields:
    Get-WebConfiguration -filter system.applicationhost/sites/sitedefaults/logfile | select-object -expandProperty logExtFileFlags
    Use the following syntax to set W3C fields:
    Set-WebConfigurationProperty -Filter System.Applicationhost/Sites/SiteDefaults/logfile -Name LogExtFileFlags -Value "Date,Time,ClientIP,UserName,SiteName,ComputerName,ServerIP,Method,UriStem,UriQuery,HttpStatus,Win32Status,BytesSent,BytesRecv,TimeTaken,ServerPort,UserAgent,Cookie,Referer,ProtocolVersion,Host,HttpSubStatus"}

  • Command line feature in File Adapter

    Hi  Experts,
          Can any one please explain how to use command line feature present in FTP.
          Thanks in advance for you help!
          Regards,
          Ravi Kiran L

    Hi,
    By openning SAP Help (!): [http://help.sap.com/saphelp_nwpi711/helpdata/en/44/556cb799c93677e10000000a114a6b/frameset.htm]
    And by using search button on SDN web site (!!), for instance with terms "PI OS command", there are several info...
    [http://wiki.sdn.sap.com/wiki/display/XI/RuntimeOScommand]
    [http://wiki.sdn.sap.com/wiki/display/XI/SAPXIFileAdapterOSCommandLine+Feature]
    etc...
    Regards.
    Mickael

  • Create Users with Mail enabled in dscl or command line

    I have figured out how to use the dscl to add a user.
    example:
    $ sudo dscl . create /users/rothman uid 701
    $ sudo dscl . create /users/rothman gid 20
    $ sudo dscl . create /users/rothman realname "Ernest Rothman"
    $ sudo dscl . create /users/rothman passwd \*
    I went as far as to launch WorkGroup manager to enable Mail.
    The following gave me the key values:
    dscl . read /Users/test MailAttribute > mailsettings.txt
    When I try to replace from the txt file. WorkGroup Manager than believes the Mail is not enabled.
    How do I use dscl or a terminal command to enable the user with mail server and to use IMAP Only?
    I do not want to always have to remotely connect to launch Workgroup Manager to enable mail for new users.
    I hope you can help for I am new dscl or even NetInfo command line tools.
    I have tried these, but I guess it does't like how it is being restored into that property.
    dscl . create /Users/test MailAttribute `< mailsettings.txt`
    <?xml version="1.0" encoding="UTF-8"?>
    <dict>
    <key>kAPOPRequired</key>
    <string>APOPNotRequired</string>
    <key>kAltMailStoreLoc</key>
    <string></string>
    <key>kAttributeVersion</key>
    <string>Apple Mail 1.0</string>
    <key>kAutoForwardValue</key>
    <string></string>
    <key>kIMAPLoginState</key>
    <string>IMAPAllowed</string>
    <key>kMailAccountLocation</key>
    <string>192.168.181.132</string>
    <key>kMailAccountState</key>
    <string>Enabled</string>
    <key>kPOP3LoginState</key>
    <string>POP3Deny</string>
    <key>kUserDiskQuota</key>
    <string>0</string>
    </dict>
    I have also tried appending by doing something like this.
    dscl . create /Users/test MailAttribute '<?xml version="1.0" encoding="UTF-8"?>’
    dscl . append /Users/test MailAttribute ‘<dict>’
    dscl . append /Users/test MailAttribute ‘<key>kAPOPRequired</key>’
    dscl . append /Users/test MailAttribute ‘<string>APOPNotRequired</string>’
    dscl . append /Users/test MailAttribute ‘<key>kAltMailStoreLoc</key>’
    dscl . append /Users/test MailAttribute ‘<string></string>’
    dscl . append /Users/test MailAttribute ‘<key>kAttributeVersion</key>’
    dscl . append /Users/test MailAttribute ‘<string>Apple Mail 1.0</string>’
    dscl . append /Users/test MailAttribute ‘<key>kAutoForwardValue</key>’
    dscl . append /Users/test MailAttribute ‘<string></string>’
    dscl . append /Users/test MailAttribute ‘<key>kIMAPLoginState</key>’
    dscl . append /Users/test MailAttribute ‘<string>IMAPAllowed</string>’
    dscl . append /Users/test MailAttribute ‘<key>kMailAccountLocation</key>’
    dscl . append /Users/test MailAttribute ‘<string>192.168.181.132</string>’
    dscl . append /Users/test MailAttribute ‘<key>kMailAccountState</key>’
    dscl . append /Users/test MailAttribute ‘<string>Enabled</string>’
    dscl . append /Users/test MailAttribute ‘<key>kPOP3LoginState</key>’
    dscl . append /Users/test MailAttribute ‘<string>POP3Deny</string>’
    dscl . append /Users/test MailAttribute ‘<key>kUserDiskQuota</key>’
    dscl . append /Users/test MailAttribute ‘<string>0</string>’
    dscl . append /Users/test MailAttribute ‘</dict>’

    Got it to take as a single statement.
    dscl . create /users/test applemail "<?xml version='1.0' encoding='UTF-8'?> <dict> <key>kAPOPRequired</key> <string>APOPNotRequired</string> <key>kAltMailStoreLoc</key> <string></string> <key>kAttributeVersion</key> <string>Apple Mail 1.0</string> <key>kAutoForwardValue</key> <string></string> <key>kIMAPLoginState</key> <string>IMAPAllowed</string> <key>kMailAccountLocation</key> <string>192.168.181.132</string> <key>kMailAccountState</key> <string>Enabled</string> <key>kPOP3LoginState</key> <string>POP3Deny</string> <key>kUserDiskQuota</key> <string>0</string> </dict>"
    Doing the above showed in WorkGroup manager and I tested and the user received a email, so now I can automate adding users without needing the GUI. *Just to note you still have to setup mail services and your virtual, aliases files for postfix. This is just so the user is opened up to be allowed to receive email in the first place.
    I still could not seem to pipe a file into dscl command even though the file was a single line of text. I had planned to embed this in a single command so no big deal.

  • Enable System Wide DEP Support via command line

    Hello all, I am trying to deploy EMET to our organization, but I notice on my test installation on a Windows 7 PC, systemwide DEP was not enabled by default. I figured I can activate this through the command line, but I seem to be running into some trouble.
    It looks like the command line that I want to use is:
    emet_conf --system [--force] SysMitigation=State [SysMitigation=State ...]
    However, I have tried all the different combinations of variables to turn on DEP using this command line, and I keep hitting a brick wall. Has anyone else been able to successfully turn on DEP from the command line?

    Try:
    emet_conf --system DEP=AlwaysOn
    Be careful because if you use BitLocker it will ask the recovery key on next boot (you'll need he --force switch). Also make sure to test that setting because there might be some app-compat issues with applications that do not support DEP.

  • How can I set enable HTTP and/or HTTPS Proxies through command line?

    I know the exact key/value to be changed; it's in
    /Library/Preferences/SystemConfiguration/preferences.plist -> NetworkServices -> 46A40FA8-6E7C-xxxx-xxxx-xxxxxxxxxxx -> Proxies -> HTTP(S)Enable ->  should be set to 1
    I immdediately thought of using defaults write to carry this out in the command line but I don't know how (or if at all!) that works with multi-level key/values. I only have access to the first level (NetworkServices) with defaults read.
    Any help would be much appreciated,
    thanks \.

    The networksetup utility is the program OS X uses to change the network configuration.  The Network Preference Pane in system preferences is just a front end to networksetup; networksetup can do everything the preference pane can do (and possibly more).
    The parameters you are interested in (from the man page):
    -getwebproxy networkservice
    Displays Web proxy (server, port, enabled value) info for <networkservice>.
    -setwebproxy networkservice domain portnumber authenticated username password
    Set Web proxy for <networkservice> with <domain> and <port number>. Turns proxy on. Optionally, specify <on> or <off> for <authenticated> to enable and disable authenticated proxy support.  Specify <username> and <password> if you turn authenticated proxy support on.
    -setwebproxystate networkservice on | off
    Set Web proxy on <networkservice> to either <on> or <off>.
    -getsecurewebproxy networkservice
    Displays Secure Web proxy (server, port, enabled value) info for <networkservice>.
    -setsecurewebproxy networkservice domain portnumber authenticated username password
    Set Secure Web proxy for <networkservice> with <domain> and <port number>. Turns proxy on.  Optionally, specify <on> or <off> for <authenticated> to enable and disable authenticated proxy support. Specify <username> and <password> if you turn authenticated proxy support on.
    -setsecurewebproxystate networkservice on | off
    Set SecureWeb proxy on <networkservice> to either <on> or <off>.

  • Command line enable of VNC/Remote Management?

    I have a situation where I need to enable remove mgmt (VNC) on my Mac at work, so I can get to it over VPN at home, to access my Parallels, etc. I can ssh to the system, but can't figure out how to enable the Remote Desktop (and it's specific parameters) via the command line. I believe it would be a defaults write.
    Can someone point me in the right direction? I just want to restrict VNC with a Password, then disable it when I'm done.
    Thanks.

    Hi
    Difficult to see why you're hesitating to use the kickstart utility as that will do what you originally asked. Just because it does not specifically mention VNC does not mean VNC is not running or working.
    VNC Server and Client is built into OSX since 10.5. If you enable Remote Management it will open ports 5900 and 3283 on that workstation. Port 5900 is the VNC Port and port 3283 is the special control port Apple add to the built in VNC/ARD Agent to allow their dedicated management VNC Server application - Apple Remote Desktop - to offer a lot more than simple control for remote clients. You don't have to buy ARD to do what you want.
    Enabling Screen Sharing only opens port 5900. On a Mac all you need is the local admin's name and password of the client workstation you're trying to control. If you're trying to control a mac from a PC then you'd need a dedicated VNC Viewer installing on the PC. Something like RealVNC Viewer. To allow the PC to control the mac you would have to add a VNC password option which should not be the same as the local admin's password.
    Tony

  • How to enable Rosetta at the system level using the command line?

    I need to find a way to enable Rosetta at the system level (e.g. all users) using the command line. When Rosetta is enabled, the following entry is created in ~/Library/Preferences/com.apple.LaunchServices (run defaults read com.apple.LaunchServices)
    LSPrefsFatApplications = {
    "com.apple.Safari" = (
    <00000000 009a0003 00010000 c323458f 0000482b 00000000 00000023 0000727b 0000c2b0 8b4e0000 00000920 fffe0000 00000000 0000ffff ffff0001 00040000 0023000e 0016000a 00530061 00660061 00720069 002e0061 00700070 000f0014 00090053 00650072 00760065 00720020 00480044 00120017 4170706c 69636174 696f6e73 2f536166 6172692e 61707000 00130001 2f00ffff 0000>
    Does anyone know what the data shown here is? It doesn't change when Rosetta is turned off and then back on. It also doesn't change between user accounts (e.g. joe's com.apple.LaunchServices.plist has the same value as jane's).
    Will it be possible to run defaults in a way that makes this change work for all users of the computer?

    I am asking about the option to run in non-interactive modeIt cannot be done. Check "Oracle® Applications Maintenance Utilities Release 11i (11.5.10.2)" manual for more details.

  • Command line equivalent of Work Group Manager's export feature

    Hello everyone,
    I am have a hard time upgrading from Lion Server to Mountain Lion Server, especially with Open Directory. What I wish to do, is to import the existing users and groups of an existing server running Lion Server into a new (fresh) Open Directory master created on another server that is running Mountain Lion Server.
    I have tried several options. Those that did *not* work for me include:
    Trying to make create a replica of the Lion Open Directory on the Mountain Lion Server
    Trying to backup the OD of the Lion Server using slapconfig
    What seems to work (for the moment), is to use the export feature of Work Group manager on Lion and to import the users/groups using the import feature of Mountain Lion Server app.
    My question is: is there a command line way to do the export ? Since Work Group manager seems to be kind of deprecated in ML, I assume there must be some other way (i.e., from the command line) to do the user/group import and export.
    Thanks for your help !

    Notice that the old Archive and Restore options are gone. To run a backup, run the slapconfig command along with the -backupdb option followed by a path to a folder to back the data up to: 
    sudo slapconfig -backupdb /odbackups
    To restore a database (such as from a previous version of the operating system where such an important option was actually present) use the following command (which just swaps backupdb with -restoredb) 
    sudo slapconfig -restoredb /odbackups
    /usr/sbin/ServerBackup -cmd backup -source /

  • How can I install just selected features( like just nidaq drivers) for NI-DAQ 693 via command line silently

    I am trying to create installation program for my application which uses NI-DAQ drivers.
    I want to include the installation of NI DAQ drivers with my program. I know that you can use setup.exe from command line. But for version 6.9.3 is there a way I can specify along with setup.exe , just the features I want to install.
    I would really appreciate a prompt reply.
    Thanks.
    Arti

    Hello Arti,
    Please see this link which explains how to do a silent installation of NI-DAQmx: http://digital.ni.com/public.nsf/websearch/CBDAA88478F7179C86256E36001BE050?OpenDocument
    Also, see that document attached below for instructions on how to do a silent installation of NI-DAQ 6.9.x.
    Regards,
    Bill B
    Applications Engineer
    National Instruments
    Attachments:
    NI-DAQ690SilentInstall.txt ‏5 KB

  • How I can run Firefox with enabled Responsive design mode from command line?

    I trying to find a way for running Firefox with already enabled Responsive mode with predefined resolution (for selenuim testing) for standartizing a viewport size in different OS`s.
    Thanks!

    These are all the command line options [https://developer.mozilla.org/en-US/docs/Mozilla/Command_Line_Options Command Line Options]

  • Enable, backup and restore FCSvr in command line

    Hi All,
    Anyone know how to enable, backup and restore Final Cut Server in command line?
    Thanks,
    Spin

    First delete the /var/db/FinalCutServer/ folder and ran the Final Cut Server.dmg file to reinstall.
    Next grab your most recent backup and moved the "-" file to the desktop (this contains the database restoration script).
    Open up a command window and execute the following commands:
    cd "/Library/Application Support/Final Cut Server/Final Cut Server.bundle/Contents/Resources/sbin/"
    ./fcsvr_run psql px pxdb
    From the psql command prompt execute this command, substituting the path to your "-" database script:
    \i /Users/finalcutserver/Desktop/-
    After that finished executing I was able to start Final Cut Server and so far it looks as though everything has been restored! Fingers crossed...

  • Enable AFP File Sharing via ARD through command line?

    Anyone know how to enable AFP file sharing on a remote Leopard client using ARD? I had been sending Unix Commands to do most of my changes, but cannot figure out how to enable AFP file sharing through a unix command. I've tried running /usr/sbin/AppleFileServer but that doesn't seem to do the trick. Any ideas?

    Howdy, Space Ranger!
    I'd recommend checking out the following documentation to get filesharing going without interrupting a current user.
    Apple Remote Desktop Administrator’s Guide
    http://images.apple.com/remotedesktop/pdf/ARD3_AdminGuide.pdf
    Page 145:
    Executing a Single UNIX Command
    Using the UNIX Command window, you can send a single command to the selected
    client computers. The command is executed using the bash shell.
    To execute a single UNIX command:
    1 Select a computer list in the Remote Desktop window.
    2 Select one or more computers in the selected computer list.
    3 Choose Manage > Send UNIX Command.
    4 Type or paste the command.
    If your command is a multi-line script, enter each command on its own line. If you want
    to break up a single-line command for better readability, use a backslash (\) to begin a
    new line.
    5 Set the permissions used to execute the command.
    You can choose the currently logged-in user, or choose the name of another user on
    the client computers.
    6 Click Send.
    For information regarding Terminal commands that can be useful (this is for 10.3 and later, but the relevant command does work in 10.8):
    Mac OS X Server Command-Line Administration
    http://manuals.info.apple.com/en_US/MacOSXSrvr10.3_CommandLineAdminGuide.pdf
    Page 65:
    Commands you can use to create share points and manage AFP, NFS, Windows (SMB), and FTP services in Mac OS X Server.
    Share Points
    You can use the sharing tool to list, create, and modify share points.
    Best regards,
    Allen

Maybe you are looking for