Reply To: Open new shells for monitoring
Let's say I run a script against 5 servers. I want the script that I am running to open up new shells for each server and show the progress of each server independently. Like running a jobs, but it...
View ArticleReply To: Open new shells for monitoring
Can I ask why it matters that multiple shells are open? I've personally never ran into a situation where I needed to explicitly specify different shells. Perhaps there's a better way to get done what...
View ArticleSMBShare PSSessionConfoguration Error
Hi, I'm trying to create a PS endpoint for the use of the SMBShare module. I create the PSSessionConfigurationFile and register it seccessfully, but when I try to enter a session using this config, I...
View ArticleReply To: Get-CimInstance works from S1 to S2 but not from S2 to S1
That worked fine. I thought maybe it was related to my running Powershell 5.0 CTP but after bringing up a fresh machine and still experiencing the same problem it was apparent that something else is...
View ArticleConcatenation Variables Problem with extra space
The problem is I want to concatenate two variables, however I cant get rid of a space between the two. e.g. 1 Write-Host $_.ServerName $blah.ShareName output \\Server\ Share I have tried some...
View ArticlePush or Pull Server
Hi, i am managing around 100 server (all Windows 2008 R2). I would like to know what is the preferable server solution for this amount of servers. Would you choose a pull (HTTP or SMB) or a push...
View Articleautomate few post os install tasks
Tasks to be done 1)customzied installation of antivirus symantec Virus and Spyware Protection 2)2.Startup and Recovery: Time to display list: 5 seconds, Auto restart, Kernel Memory Dump, overwrite for...
View ArticleAccess Parameter in SetScript member of Script Resource in Desired State Config
Hello, Desired State Configuration…. I have been stuck in Script Resource where i need a Configuration Parameter to be used in member SetScript. Here is what i need to do…. Configuration MyConfig {...
View ArticleBroken forum topic
http://powershell.org/wp/forums/topic/concatenation-variables-problem-with-extra-space/ Some one must have used some code in a post that makes Google Chrome not render the page for that topic. -VERN
View ArticleReply To: automate few post os install tasks
Working with the registry is fairly easy you have the PSProvider that let's you treat the registry just like a file system. However adding keys is a bit more tricky. Set-Location...
View ArticleReply To: Push or Pull Server
I would definitely use a HTTP Pull Server for a couple of different reasons: 1 – I have computers to manage that reside on the other side of firewalls. SMB uses a range of ports to communicate, along...
View ArticleReply To: automate few post os install tasks
As for the installation of your AV you will have to figure out the command line parameters the installer EXE has and call that from PowerShell. You can look to their documentation for information on...
View ArticleReply To: automate few post os install tasks
I have several questions\statements: How are you deploying the OS? SCCM OSD? Disk Cloning? Cloning is a deprecated way to deploy and OS, you should really look into Microsoft Deployment Toolkit to...
View ArticleReply To: service status using powershell
Yes Dave, I need every service name and service status of every computers which is stored in (D:\list.txt) and i need output in csv or xls. so that i can filter it and find the stopped service on...
View ArticleReply To: Open new shells for monitoring
That is what I am saying, I want to rewrite the whole thing in one PowerShell script.
View ArticleReply To: Open new shells for monitoring
Can you post your code, explain what is occurring and what the expected result is? If the code is lengthy, save it as a .TXT file and upload it to your post.
View ArticleReply To: service status using powershell
OK, as Martin mentioned, you will need another loop over the collection returned by Get-WmiObject in your code. I've revised your original code to reflect this, and also renamed several variables to...
View ArticleReply To: Open new shells for monitoring
Oh, sorry about that. I misunderstood. If you'd like, explain what you're doing further and we can help.
View ArticleReply To: service status using powershell
If you refer to Martin's post, you can just modify $strComputer with (Get-Content D:\List.txt), which the filter would return a single service. $service = get-wmiobject Win32_service -computername...
View Article