Quantcast
Channel: Exchange Server 2013 - Setup, Deployment, Updates, and Migration forum
Viewing all articles
Browse latest Browse all 7129

New-PowerShellVirtualDirectory Missing Parameter 'WebSiteName'

$
0
0

Version 15.0 (Build 712.24)

TechNet states that New-PowershellVirtualDirectory has Parameter WebSiteName:

"The WebSiteName parameter specifies the name of the IIS website under which the Windows PowerShell virtual directory is created."

http://technet.microsoft.com/en-us/library/dd335058(v=exchg.150).aspx

I've found that in the get-command New-PowershellVirtualDirectory | FL | c:\output.txt that the $websitename param is missing. Other New VirtualDirectory have the parameter and allow virtualdirectories to be created outside of the default site in IIS.

Can we validate that this is an oversite and therefor needed for hotfix/next update or an amendment needed in TechNet to remove the parameter?

Name        : New-PowerShellVirtualDirectory
CommandType : Function
Definition  : 
                  param(
                  [Alias('ea')]
                  ${ErrorAction},
                  ${Server},
                  ${RequireSSL},
                  [Alias('wi')]
                  [switch]
                  ${WhatIf},
                  ${DomainController},
                  ${ExternalUrl},
                  [Alias('wv')]
                  ${WarningVariable},
                  [Alias('db')]
                  [switch]
                  ${Debug},
                  ${BasicAuthentication},
                  ${Name},
                  [Alias('vb')]
                  [switch]
                  ${Verbose},
                  [Alias('cf')]
                  [switch]
                  ${Confirm},
                  [Alias('ob')]
                  ${OutBuffer},
                  ${InternalUrl},
                  [Alias('ev')]
                  ${ErrorVariable},
                  [Alias('wa')]
                  ${WarningAction},
                  [Alias('ov')]
                  ${OutVariable},
                  ${WindowsAuthentication},
                  ${Role},
                  [switch]
                  ${AsJob})
                  Begin {
                      try {
                          $positionalArguments = & $script:NewObject collections.arraylist
                          foreach ($parameterName in $PSBoundParameters.BoundPositionally)
                          {
                              $null = $positionalArguments.Add( $PSBoundParameters[$parameterName] )
                              $null = $PSBoundParameters.Remove($parameterName)
                          }
                          $positionalArguments.AddRange($args)
                          $clientSideParameters = Get-PSImplicitRemotingClientSideParameters $PSBoundParameters $True
                          $scriptCmd = { & $script:InvokeCommand `
                                          @clientSideParameters `
                                          -HideComputerName `
                                          -Session (Get-PSImplicitRemotingSession -CommandName 
              'New-PowerShellVirtualDirectory') `
                                          -Arg ('New-PowerShellVirtualDirectory', $PSBoundParameters, 
              $positionalArguments) `
                                          -Script { param($name, $boundParams, $unboundParams) & $name @boundParams 
              @unboundParams } `
                                       }
                          $steppablePipeline = $scriptCmd.GetSteppablePipeline($myInvocation.CommandOrigin)
                          $steppablePipeline.Begin($myInvocation.ExpectingInput, $ExecutionContext)
                      } catch {
                          throw
                      }
                  }
                  Process { 
                  try {
                      $steppablePipeline.Process($_)
                  } catch {
                      throw
                  }
               }
                  End { 
                  try {
                      $steppablePipeline.End()
                  } catch {
                      throw
                  }
               }
                  # .ForwardHelpTargetName New-PowerShellVirtualDirectory
                  # .ForwardHelpCategory Function
                  # .RemoteHelpRunspace PSSession


Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>