Description:
Microsoft Windows newsgroup.
|
|
|
simple -replace question
|
| |
Why does "one" -replace ".*", "two" return "twotwo" ? WHere is the replace operator fully documented? All I can find is the mention within about_comparison_operators and it is lacking.
|
|
Powershell: Script to retrieve path of file given the filename on a remote unix server
|
| |
Hi All, (Powershell n00b here!) I need to write a script which can run on windows (hence considering Powershell) which can log into a remote unix server and retrieve full path of file given the filename. Can this be done using Powershell? If not can i do this using any other tools on windows? I am considering using plink w/ powershell but cant find enough examples? If possible please provide with ps plink command statement.... more »
|
|
$ping.send(hostname) pings ipv6 instead of ipv4 address
|
| |
I am having problems with my code working. For whatever reason it tries to ping a hostname, it tries pinging an ipv6 address instead of the ipv4 address, which is returning a status code of 11050 (General Failure). Below is the relevant code. Anyone have an idea on how to make it ping ipv4 instead of ipv6?... more »
|
|
Using powershell on a shared system
|
| |
Anyone have any experience with Using powershell on a shared system? How do you set up individuale profiles? And is there a way to set it up so that you don't get asked if it's OK to run the script? currently ExecutionPolicy is set to unrestricted. Would RemoteSigned fix this? OldDog
|
|
Status Reports
|
| |
Hi Gurus; I need a text file to record what process ran with what filename at what time. My aim is to get a log so that it can help us write our status reports, because it takes so freakin' long to remember what you did during the day, so we thought if PS could 'look over our shoulder' and just list what programs... more »
|
|
Want to use remove-item but save names to log file of files delete
|
| |
So I want to search a directory, locate all files except those in the exclude statement, and then remove them. HOWEVER, I want to write a list of the files removed to a log file. (the log file is the file being excluded). IDEALLY this log file would be CSV so I could come back 6 months from now,... more »
|
|
Write-Host buffer error?
|
| |
Hi gents, Colleague of mine sent me small piece of code that was failing today. Problem was that Write-Host returned error when string was too long. I already run into that problem before, but I wanted to investigate little bit and find where the limits are. To my surprise, results were very interesting.... more »
|
|
out-gridview in ver 2
|
| |
I dig out-gridview, but the former 10 column limit was the reason I didn't use it so much. MS said this limit was to be lifted in ver 2, but it seems they just increased it max 30 columns. 30 columns should be enough most of the time, but why on earth is there still a limit!?
|
|
Computer Rename using Win32_Baseboard Serial number
|
| |
Hey All, I am new to powershell and I am trying to rename my Windows 7 laptop using powershell. I have the following script and it's not working. Does anyone know where I am going wrong? I wish to rename the computer using the SerialNumber from W32_Baseboard. Function Rename-ComputerName ([string]$NewComputerName){... more »
|
|
|