Thanks for the Select-String suggestion!
Been googling for some time, but I can't find an example of how to use the -match operator with regular expressions in order to split a string in separate fields, delimited by some char.
Also, I think it's weird having to resort to regexps for something...
To be more specific, let's examine the following .ps1 script
$tl=(& tasklist)
$tl
This will create an array identified by $tl which contains strings, one string object per line returned. The second line will output the contents of the array to screen:
Image Name PID...
Hi all,
I'm used to cmd scripting, and struggle to find Powershell counterparts for some common scripting techniques.
Let's examine the following example:
C:\Windows\System32\inetsrv>appcmd.exe list vdir
VDIR "Default Web Site/" (physicalPath:C:\inetpub\wwwroot)
VDIR "Webshop/"...
Hi jmeckley,
Thanks for the info above. Based on your comment I started googling again, and stumbled upon the online PowerShell SDK library, and the Get-Method Cmdlet, which will display all properties and methods available for any given cmdlet.
The code I used in this thread was just an...
Hi jmeckley,
I can't get your code to work. Using just the...
Get-Counter -counter "\Web Service(SomeSite)\Get Requests/sec"
...part from my example, I was at least able to get data from the right counter. Considering your code, I have the following questions...
get-counter | where {$_.Name ==...
Hi all,
Been fiddling with PowerShell last couple of days, but there's this thing I can't get my head around.
Let's say I'd like some message if HTTP-GET requests are happening on SomeSite. I'd think I'd need a syntax like:
if((Get-Counter -counter "\Web Service(SomeSite)\Get Requests/sec")...
stubnski,
I don't want to sound offensive in any way, but you don't seem to understand what my post is about. You're confusing a service socket connection with a client connection, as Vince says.
Don't really understand what burtsbees is saying, would you please explain?
North323; think I'm starting to understand. I see that a windows service called "httpfilter" handles SSL connections, and this service is not part of IIS, but a standard service. From what you told me, this service can...
I understand the principle of multiple connections to the same socket, in your example this socket only binds to one process (web server).
This is different then the situation I described, where port 443 on a single IP is used to serve two completely different processes (IIS and LogMeIn).
Hi all,
I'm kind of puzzled. I recently started on a new job. From the employers network I cannot use RDP to connect to a server (Win2k3) at home, so I found a service called LogMeIn which enables me to administer my home server from work if needed. LogMeIn works like a charm, but I don't...
Hi all,
As far as I know the secondary DNS servers in the IP config of a Windows OS will not be used unless the first is not available right?
Thing is, I've got a testlab here with a S2k3 AD/DNS/DHCP/RRAS(nat) server. DNS has been configured with a forwarder, being the ISP's DNS server. The...
Hi burtsbees,
VMware Management and Vmotion traffic both need a dedicated interface (not mandatory, but highly advisable). Leaves me with 2 spare interfaces, not a whole lot considering future growth and the addition of VMware FT in VI4 later next year.
Vince, unclerico,
Thanks a lot for the replies above. All I needed to finish my blueprint. And thanks for the tip about the load sharing method, will keep that in mind.
unclerico, about the specs of the hardware. In my blueprint I refer to a Dell PowerEdge R805 equipped with two quad-port...
Hi all,
I'm in the process of writing a blueprint for a P2V (Physical-to-Virtual) migration for the majority of our servers (about 82). VMware ESXi is to be used as a virtual platform, the VM's will be hosted on 2+2 ESX servers (2 server rooms).
I'd like some help designing the physical...
Hi all,
A government organisation that sends sensitive data by email to our company came up with a new requirement. They want to send us PGP encrypted mail, which we will have to decrypt somehow.
We want to implement the PGP decryption at the Exchange server, not at the client (Outlook).
We...
FOUND A SOLUTION
The ChangePrintSRV.exe tool can change the printserver for all connected printers from a specific printserver to another printserver. It's available at http://www.petri.co.il/changeprintsrv.htm
So my plan is as follows:
1. Use Printbrm from Server2008 to migrate all printers...
Hi 58sniper & others,
Removing printers using a loginscript is easy, what I want is to edit the existing printer connections to point to the new printserver hostname (from \\prtsrv01\printer1 to \\prtsvr02\printer1 for instance).
Something like: wmic printer set servername="\\prtsvr02"
Needs...
pagy is correct,
Half a year ago I had a project focussing on time synchronisation. You need to configure your DC holding the PDC emulator role with a couple relieable external NTP sources (TIP: http://www.pool.ntp.org/).
Thats all.
If you leave the rest of the config untouched, the other...
I found out the "printbrm.exe" printer migration tool that ships with Vista & Server 2008 does work the way it should. Drivers containing CAB files are included using printbrm utility, and printers are restored properly on the target server. Printbrm is a new replacement for printmig.
As such...
Further investigation shows that another user on this forum (XRJoe) also had similar issues: http://www.tek-tips.com/viewthread.cfm?qid=1432771
In the Print Migrator log file it shows that there are files missing in the backup cabinet (.cab file). More specific; if a driver file set for a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.