Use PowerShell to display the properties of an App Pool
Hi
I'm writing a script to deploy web applications from the TFS server to the web servers, along with creating the App Pools and such in IIS. I need to know if there is a way that I can list the value of important properties of an App Pool, such as those
found when selecting "Advanced Properties" on an App Pool through the IIS GUI, to the PowerShell console. The Get-ItemProperty cmdlet doesn't seem to show much.
Thanks in advance
Here is a starter if you have PowerShell support installed:
$pool= get-item iis:AppPools\DefaultAppPool
$pool|gm
You will see all of the methods used to manage the app pool listed. For instructions on how to use them you are best postingin the IIS forums.
¯\_(ツ)_/¯
Similar Messages
-
Is it possible to use NUMCHARS to display the number of characters in a block of text instead of the whole document? How?
Getting the character count for a paragraph is trivial:
Sub NumChars1()
MsgBox Selection.Paragraphs(1).Range.Characters.Count
End Sub
Even outputting it to the document is trivial:
Sub NumChars2()
With Selection.Paragraphs(1)
.Range.InsertAfter .Range.Characters.Count
End With
End Sub
The real issue comes when you want to update the document. If the destination paragraph is only ever empty or contains the character count of the previous paragraph, you could use:
Sub NumChars3()
With Selection.Paragraphs(1)
.Next.Range.Text = .Range.Characters.Count & vbCr
End With
End Sub
Cheers
Paul Edstein
[MS MVP - Word] -
SCOM2012 Need to use Powershell to reset the RUNAS Configuration account passwords
I Need to use Powershell to reset the SCOM2012 RUNAS Configuration account passwords... could anyone help me with this?
Hi BenStu,
Have you checked the cmdlet
"Update-SCOMRunAsAccount" to change the RunAs account password.
This script is for your reference:
$username = "<domain>/<user>"
$password = cat C:\temp\securestring.txt | convertto-securestring
$newcred = new-object System.Management.Automation.PsCredential $userName,$password
Get-SCOMRunAsAccount –name "OMWindowsRunAsOM" | Update-SCOMRunAsAccount –RunAsCredential $newCred
Refer to:
Tracking down where Operations Manager stores information – Part 7
If there is anything else regarding this issue, please feel free to post back.
Best Regards,
Anna Wang -
You can't use this version of the application Photo Booth.app 2.0.3
Hi,
Relative newbie for Mac OS X.
Installed the latest update for the Operating System OS X 10.6 and first time I try to use Photo Booth after the upgrade I can not longer use Photo Booth!
Surely this would be one of the first tests for any operating system upgrade (check standard utilities still function)? Is there a planned fix for this? Where can I get a compliant version of Photo Booth please (I depend on this app for my business)?
Msg States...
You can't use this version of the application Photo Booth.app with this version of the Mac OS X
You have Photo Booth.app 2.0.3. (OK)This means for some reason the Photo Booth app is still the version for 10.6.
Some people have reported that the update for whatever reason is missing certain apps (assuming that the application was never moved from its default location.)
In either case, people have had success downloading the 10.6.1 combo update and applying it.
http://support.apple.com/kb/DL930 -
Hey, my phones been taken off me and i need to wipe it asap. i havnt downloaded and set up the find my phone app though. Can it be done?
check out www.icloud.com an log in there. Then, go to 'Find my iphone' and see if your device is listed
-
So, I'm a little new to PowerShell and I came across a PowerShell which allow me to copy the content od a spreadsheet, into the new message in Outlook 2007. I have search and search on a way to do the same with a Word Document. I would like to
create a PowerShell Script that copies the content of a Word Document and paste that content in an email message.
I am basing my script on this
#Create and get my Word Obj
$w1 = New-Object -comobject Word.Application
$w1.Visible = $True
$UserWord = $w1.Workbooks.Open("C:\Users\hhhh\Documents\Powershell\test.docx")
#create outlook Object
$Outlook = New-Object -comObject Outlook.Application
$Mail = $Outlook.CreateItem(0)
$Mail.SentOnBehalfOfName = "[email protected]"
$Mail.Recipients.Add("[email protected]")
#Add the text part I want to display first
$Mail.Subject = "Test email"
$Mail.Body = "My Comment on the Excel Spreadsheet"
#Then Copy the Word using parameters to format it
$Mail.Getinspector.WordEditor.Range().PasteExcelTable($true,$false,$false)
#Then it becomes possible to insert text before
$wdDoc = $Mail.Getinspector.WordEditor
$wdRange = $wdDoc.Range()
$Mail.Display()
Any Help would be great!My requirements are the Word documents are a template of sorts. The document will be changes prior to its email with some changes. The other twist is that the customer might more that one recipients, and each recipient will have to have a separate
email, with the same content of the word document.
For example: Say I'm doing maintenance. The Word doc might descript that maintenance, in a set format. Once save the script is run to generate 3 to 10 email with separate recipients with the body of the email containing what was in the Word document. -
Displaying the properties of a List of beans
My servlet passes me an ArrayList of a particular type of bean
say class A {
int prop1;
String prop2;
//getters and setters
} Each bean-instance represents a table record.
I want to display a table that has rows corresponding to each bean element in the ArrayList.
How do I do it using JSTL and expression language (NO SCRIPTLETS) ?http://java.sun.com/j2ee/1.4/docs/tutorial-update2/doc/index.html
Look under chapter 14 for the iterator tags -
Regarding MV45AOZZ and MV45AIZZ, using these includes display the fields
Hi,
using the MV45AOZZ and MV45AIZZ includes i have to display some fields in display mode even in chage mode.
The requirement is to make certain fields display only. This would prevent certain users ( SPOC ) not to edit or change these fields without interacting with the OTS team.
SPOC users would go into orders in Change mode and make changes for manual allocation like changing the plants or the Schedule line dates.
Field which need to be in display mode in order change model
Bill to Address ,
Ship to address,
Pricing screens
Payment Terms
Freight terms -
how to do this ?? very urgent.. thanks in advanceDo as below:
1. Insert a module with pattern ZZ* in the PBO flow logic of the respective screen.
2. Create these modules in the programs you mentioned.
3. For disabling field in a screen, code shld be like:
loop at screen.
if screen-name = <screen fld>
screen-input = '0'.
modify screen.
exit.
endif.
endloop.
Regards
Eswar -
Using Powershell to display value of a formula
Hi,
I'm trying to work out a Powershell script that will display only the value result of a Excel formula, so that if I delete the cell the formula is applied to the result is not affected.
This is what I have:
#Create Excel Object
$xl = New-Object -ComObject Excel.Application
$xl.visible = $true
$xl.DisplayAlerts = $false
#Open Existing Workbook, Name & Activate Worksheet
$wb = $xl.Workbooks.Open("C:xxxx.csv")
$ws = $xl.Worksheets.Item(1).name="InventoryRAW"
$xl.Worksheets.Item("InventoryRAW").activate()
#delete columns
[void]$xl.Cells.Item(1,1).EntireColumn.Delete()
[void]$xl.Cells.Item(1,1).EntireColumn.Delete()
[void]$xl.Cells.Item(1,6).EntireColumn.Delete()
[void]$xl.Cells.Item(1,5).EntireColumn.Delete()
[void]$xl.Cells.Item(1,3).EntireColumn.Delete()
[void]$xl.Cells.Item(2,1).EntireRow.Delete()
[void]$xl.Cells.Item(2,2).EntireRow.Delete()
#Excel Formula
$SN = ('=RIGHT(A2,LEN(A2)-FIND("K",A2)-1)')
$HN = ('=LEFT(B2,LEN(B2)-FIND("v",B2)-3)')
$xl.Cells.Item(2,5).Value2 = $SN
$xl.Cells.Item(2,4).Value2 = $HN
I thought I might be able to do something like = $SN.Value and = $HN.Value but it's not working.
Any help will be greatly appreciated
Thanks,
RobHi,
This is a duplicate of a question you already asked:
https://social.technet.microsoft.com/Forums/scriptcenter/en-US/aef13434-73d1-4c38-979f-dfb167f02c92/
I moved it to the Excel for Developers forum as that is a more appropriate forum for your question.
-- Bill Stewart [Bill_Stewart] -
Hello,
I bought a used Apple IPHONE 4S about 6 weeks ago. For all this past period, it was working beautifully. This morning, I started having poblems with connecting JUST on OUTLOOK or Hotmail and on Microsoft Exchange. All other programs, such as Gmail, Yahoo as well as other apps, such as Facebook, Whatsapp, Facetime, are ALL working properly.
the One problem I am having is when I try to log onto my Outlook ( ex Hotmail) account, I get a window with the following warning:
"CANNOT GET MAIL. THE CONNECTION TO THE SERVER FAILED"
I have done everything to solve it from taking out the card to switching it off to resetting the network to deleting my account to re-starting ..NOTHING worked.
PLEASE can you advise me what to do? The Network server was working great. So what happened and how can i fix it?
Thank you
Nina ...The issue isn't with Apple/iphone or your network.
The issue is with Hotmail, there have been a ton of threads on this already with other user having issues.
You'll have to wait until hotmail resolves the issue.
link http://status.live.com/ -
I have attempted to play video from the Ten Play App without success via airplay and apple tv-I can only get audio
Welcome to the Apple Community.
Some apps don't allow their video content to be streamed using AirPlay. Are you sure this app is supposed to work over AirPlay. -
Question about: Use PowerShell to Toggle the Archive Bit on Files
Hi Scripting Guys,
thanks for you favorite scripts. but
one question: the script abovementioned
running. But I have to enter a -value
for each file. If the script is not
written so that each file checked for the archive
and then changed? Apparently it
does not work right with me.
Here is the script again
and also a screenshot. Over a short help I
would be delighted.
Stephan
$path = "C:\fso"
$files = Get-ChildItem -Path $path -Recurse
$attribute = [io.fileattributes]::archive
Foreach($file in $files)
If((Get-ItemProperty -Path $file.fullname).attributes -band $attribute)
"$file.fullname has the $attribute bit set, removing the bit."
Set-ItemProperty -Path $file.fullname -Name attributes
-value ((Get-ItemProperty $file.fullname).attributes -BXOR $attribute)
"New value of $file.Fullname attributes"
(Get-ItemProperty -Path $file.fullname).attributes
ELSE
Write-host -ForegroundColor blue
"$file.fullname does not have the $attribute bit set, setting the bit."
Set-ItemProperty -Path $file.fullname -Name attributes
-value ((Get-ItemProperty $file.fullname).attributes -BXOR $attribute)
"New value of $file.Fullname attributes"
(Get-ItemProperty -Path $file.fullname).attributes
} #end ForeachThe attrib command isn't a PowerShell cmdlet:
http://ss64.com/nt/attrib.html
If you're asking which line of your script this should replace, the answer is 'the entire thing'.
Don't retire TechNet! -
(Don't give up yet - 13,225+ strong and growing) -
I can sign in using my microsoft account, but I can't sign in using my SKYPE namehow to solve this? and why this is happeneing?when i ask for password reset, it actually reseted my microsfot account password, not my skype password, gave me real hard time signing in to my email account thinking it was still with my old passwordplease i want my skype name back. I don't want to use my microsoft account to sign inany help from anbybody?
I followed the link, tried to reset my password by requesting forgot my password providing my email address the one is linked to that account, and said a link been emailed to my inbox. checked my inbox there was nothing in there, waited for hours, nothing in there, the next day I found an email with a link to reset your password, I clicked it, it says "sorry the link has expired" it seems to be a timed link. I don't know why it took too long to receive the email, I thought it should be instantaneously. but it didn't happen that way. so I didn't try another attempt till I ask for why it happened?
this is my update for today -
I can't use my AppleID for the update of my apps.
I'm stuck with a friend's ID. I can't even update apps that I've purchased with mine.
If you need to sign into your device with your Apple ID go to
iOS 5.1.1: Settings > Store > Select your friends Apple ID and Sign Out, then sign in with yours.
iOS 6: Settings > iTunes and App Stores > Apple ID > Sign Out
To eliminate this issue, you should delete any apps off your phone that were not purchased with your Apple ID. Although it's possible to have apps from two different Apple ID's on one device, it's complicated and can get confusing. -
I cannot access firefox 0n my other computer. I just get this error message: error:App:Name not specified in application.ini
This is most likely caused by Zone Alarm software. Please check http://support.mozilla.com/en-US/questions/880170
Maybe you are looking for
-
How to find out the position in which an application hangs
Hi, is there any possibility to find out the position in a source, in which a deployed application hangs? For example, there is an endless loop in an application, which is already deployed. In runtime the application hangs in this loop. How can I fin
-
Difference between Form & Report Painter
Hi Experts, What is the difference between Forms and Report painter reports? (My understanding is that Forms for PCA and Report painter for Cost Center). Could also any one provide me the like related to SAP Documents to create Report Painter & Form
-
Appears Twin plug -in is not working in PE9 to scan film, any ideas ?
How do I get the Photoshop Elements 9 to scan film using an EPSON Perfection Scanner V600,, it does scan reflective prints and documents,but, there is no place that transparencies can be scanned or negatives ? But, PE6 does the lot ? Dell Technical S
-
Several Materialized Views reading same log
We have a production system that refreshes it's materialized view remotely from a materialized view log on a different instance. We have created a new upgraded instance that we want to run in parallel to verify everything will work. My question is, i
-
How to be sure TM has backed up all important settings?
Well, I have partitioned my new external hard drive so that I can just use some as storage for my loads of pictures and documents that I don't need to access all of the time. I have also ran a Time Machine Backup so that I have everything backed up f