NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

Aug 1, 2024, 7:53:48 AM

<13>Aug 01 08:00:54 HO-CTX-STDO AgentDevice=WindowsLog AgentLogFile=Microsoft-Windows-PowerShell/Operational PluginVersion=7.3.1.28 Source=Microsoft-Windows-PowerShell Computer=HO-CTX-STDO.SAUDIRE.LOCAL OriginatingComputer=172.16.1.101 User=masif.pam Domain=SAUDIRE EventID=4104 EventIDCode=4104 EventType=2 EventCategory=2 RecordNumber=10628792 TimeGenerated=1722488452 TimeWritten=1722488452 Level=Warning Keywords=0 Task=ExecuteCommand Opcode=15 Message=Creating Scriptblock text (1 of 5): # # Copyright Citrix Systems, Inc. All rights reserved. # Set-StrictMode -Version 2.0 # Any failure is a terminating failure. $ErrorActionPreference = 'Stop' $ReportErrorShowStackTrace = $true $ReportErrorShowInnerException = $true $SelectedIISWebSiteIdPropertyKey='SelectedIISWebSiteId' $HostBaseUrlPropertyKey = 'HostBaseUrl' $HttpsProtocolString = 'https' $HttpProtocolString = 'http' $RegistryPluginPath = "HKLM:SOFTWARECitrixDeliveryServicesManagementPlugins" $StatusPropertyName = "IsEnabled" $AspNet4ManagedRuntimeVersion = "v4.0" # ----------------------------------------------------------------------- # Certificate Names # ----------------------------------------------------------------------- $sha1RSA = "1.2.840.113549.1.1.5" $sha1RSACsp = 1 # The following entries currently require a modification to machine.config $sha256RSA = "1.2.840.113549.1.1.11" $sha256RSACsp = 24 $sha384RSA = "1.2.840.113549.1.1.12" $sha384RSACsp = 24 $sha384RSA = "1.2.840.113549.1.1.13" $sha384RSACsp = 24 # ----------------------------------------------------------------------- # Certificate generation defaults # Generate a certificate with signing algorithm SHA2-256 RSA and a key of length 2048 # ----------------------------------------------------------------------- $certificateSigningAlgorithm = $sha256RSA $certificateCSP = $sha256RSACsp $certificateDefaultLifetime = (New-Object TimeSpan(3650,0,0,0)) $certificateKeyLength = 2048 function CustomModuleInitialization { # Import the module required for managing Windows Features Import-Module ServerManager # Add required types Add-Type -AssemblyName "Citrix.DeliveryServices.WindowsInstaller.Interfaces, Version=3.22.0.0, Culture=neutral, PublicKeyToken=e8b77d454fa2a856" } <# .SYNOPSIS Gets a list of available IIS websites. #> function Get-DSWebSiteList() { Write-Host "Getting WebSite List" $sites = Get-DSWebSite $webSites = foreach($site in @($sites)) { $applications = GetApplications $site $bindings = GetBindings $site $webSite = New-Object PSObject $webSite | Add-Member -MemberType NoteProperty -Name "Id" -Value $site.Id -PassThru ` | Add-Member -MemberType NoteProperty -Name "Name" -Value $site.Name -PassThru ` | Add-Member -MemberType NoteProperty -Name "Applications" -Value @($applications) -PassThru ` | Add-Member -MemberType NoteProperty -Name "Bindings" -Value @($bindings) $webSite } Write-Output $webSites; } <# .SYNOPSIS Gets a list of the installed web applications .DESCRIPTION Gets a list of the installed web applications, their IIS details, friendly name and deployment folder. #> function Get-DSInstalledWebApplications() { Write-Host "Getting installed sites" ReloadFrameworkController $webApplications = GetFeatureInstances("WebApplication") if (-not $webApplications) { return $null } # Return the friendly names for all of the web applications. foreach($webApplication in @($webApplications)) { $siteId = Get-DSFeatureInstanceProperty -Key "SiteID" -FeatureInstance $webApplication $virtualPath = Get-DSFeatureInstanceProperty -Key "VirtualPath" -FeatureInstance $webApplication $friendlyName = GetFriendlyName -Instance $webApplication $deployFolder = Get-DSFeatureInstanceProperty -Key "DeployFolder" -FeatureInstance $webApplication $instance = new-object PSObject $instance | Add-Member -MemberType NoteProperty -Name "SiteId" -Value ([long]$siteId) -PassThru ` | Add-Member -MemberType NoteProperty -Name "VirtualPath" -Value $virtualPath -PassThru ` | Add-Member -MemberType NoteProperty -Name "FriendlyName" -Value $friendlyName -PassThru ` | Add-Member -MemberType NoteProperty -Name "DeployFolder" -Value $deployFolder $instance } } <# .SYNOPSIS Gets if a service can be installed into the specified IIS site. #> function Get-DSCanInstallServiceToSite([Parameter(Mandatory=$true)] [long] $SiteId, [Parameter(Mandatory=$true)] [string] $VirtualPath) { Write-Host "Check ability to install to $SiteId $VirtualPath" # Check if the virtual paths are free here for the web application. Get-DSCanCreateWebApp -SiteId $SiteId -VirtualPath $VirtualPath } function GetApplications ($site) { foreach($application in @($site.Applications)) { $app = New-Object PSObject $app | Add-Member -MemberType NoteProperty -Name "VirtualPath" -Value $application.VirtualPath -PassThru ` | Add-Member -MemberType NoteProperty -Name "Name" -Value $application.Name -PassThru ` | Add-Member -MemberType NoteProperty -Name "AppPool" -Value $application.AppPool -PassThru ` | Add-Member -MemberType NoteProperty -Name "Folder" -Value $application.Folder $app } } function GetBindings($WebSite) { foreach($binding in @($WebSite.Bindings)) { $bindingOutput = New-Object PSObject $bindingOutput | Add-Member -MemberType NoteProperty -Name "Protocol" -Value $binding.Protocol -PassThru ` | Add-Member -MemberType NoteProperty -Name "Host" -Value $binding.Host -PassThru ` | Add-Member -MemberType NoteProperty -Name "Port" -Value $binding.Port -PassThru ` | Add-Member -MemberType NoteProperty -Name "Certificate" -Value $binding.Certificate -PassThru ` | Add-Member -MemberType NotePro
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.