Search found 313 matches

by MigrationUser
2021-Jul-25, 11:04 am
Forum: Windows PowerShell
Topic: Finding unused/dormant storage folders
Replies: 0
Views: 6645

Finding unused/dormant storage folders

23 Jul 2010 14:54 Simon Sheppard Here is a script to print the newest file in each of a series of top level folders. This is similar to what the 'diruse' or du utilities do but looking at age rather than filesize, so is useful for finding dormant folders that are not being used/written to. # List al...
by MigrationUser
2021-Jul-25, 10:58 am
Forum: Windows PowerShell
Topic: parent foldername recursive rename
Replies: 0
Views: 22442

parent foldername recursive rename

10 Jan 2011 15:23 allal how to get parent folder of current directory and rename all files recursively with parent foldername like prefixing any file with parent folder Last edited by allal (10 Jan 2011 16:16) ---------------------------- #04 Feb 2011 13:10 allal OR do you know how to rename folders...
by MigrationUser
2021-Jul-25, 10:56 am
Forum: Windows PowerShell
Topic: Out-File
Replies: 0
Views: 6165

Out-File

26 Jul 2011 01:45 sergi0 Hi I am pretty new to using PowerShell 2.0. I am trying everything I can to learn it quickly; however, I've been trying to learn how to use the Out-File to more or less print or save to a file a particular file tree. When I run the command (PS C:\1> out-file -filepath c:\tes...
by MigrationUser
2021-Jul-25, 10:54 am
Forum: Windows PowerShell
Topic: Powershell and multiple attachments
Replies: 0
Views: 8942

Powershell and multiple attachments

11 Aug 2011 21:45 cgman Hi Folks, I am trying to send multiple files with powershell this works perfect with one file, but since i have multiple txt files, it fails. $SMTPserver = "127.0.0.1" $AllLogs = "C:\choose\your\directory\*.txt" send-mailmessage -SmtpServer $SMTPserver -to...
by MigrationUser
2021-Jul-25, 10:51 am
Forum: Windows PowerShell
Topic: Script to get useful network info for VMware guests
Replies: 0
Views: 6392

Script to get useful network info for VMware guests

14 Sep 2011 15:47 bluesxman Caveat: I've only just started fiddling with Powershell (with VMware's PowerCLI snap-in specifically) I've been working on this script, it does what I want (to a point), but I had trouble making the output behave correctly so have had to frig it such that I'm generating t...
by MigrationUser
2021-Jul-25, 10:49 am
Forum: Windows PowerShell
Topic: Powershell and Robocopy - script to backup production files
Replies: 0
Views: 7103

Powershell and Robocopy - script to backup production files

22 Nov 2011 21:13 carltonjacobson Hi all, This is my first attempt at using either Powershell or Robocopy, so I went into this doubly blind. Perhaps others will be able to use this script or not make some of the simple time consuming mistakes I did. This is still a work in progress, perhaps someone ...
by MigrationUser
2021-Jul-25, 10:11 am
Forum: Windows PowerShell
Topic: Proxy Function: Get-ChildItem (File Size In Human Readable Format)
Replies: 0
Views: 7140

Proxy Function: Get-ChildItem (File Size In Human Readable Format)

21 Nov 2011 07:45 jumper hi Function Get-ChildItem { <# .ForwardHelpTargetName Get-ChildItem .ForwardHelpCategory Cmdlet #> [CmdletBinding(DefaultParameterSetName='Items', SupportsTransactions=$true)] param( [Parameter(ParameterSetName='Items', Position=0, ValueFromPipeline=$true, ValueFromPipelineB...
by MigrationUser
2021-Jul-25, 10:08 am
Forum: Windows PowerShell
Topic: Merge / append files
Replies: 0
Views: 5729

Merge / append files

06 Dec 2011 15:05 theretard merge (append) %temp%\1log.txt to %trmp%\2log.txt to %trmp%\3log.txt to %trmp%\4log.txt to %trmp%\5log.txt anyone know how?, + the code to call the (merger).ps1 from a .cmd minimized while waiting for the .ps1 to terminate before continuing on with the .cmd script? ------...
by MigrationUser
2021-Jul-25, 10:04 am
Forum: Windows PowerShell
Topic: How to automate an installer?
Replies: 0
Views: 5863

How to automate an installer?

20 Feb 2012 15:34 kevink The problem I'm trying to solve is that once a month or so, a data update is automatically downloaded to one of my servers. I'd like to automatically install the update, but it comes with an installer. The installer was made with Wise, and it can't be run with a silent insta...
by MigrationUser
2021-Jul-25, 10:02 am
Forum: Windows PowerShell
Topic: PowerShell to identify running processes
Replies: 0
Views: 5716

PowerShell to identify running processes

21 Jul 2012 21:08 anjaliingale Hi, I am preety new to powershell scripting i need help. I want to write script which search that which processes are running from the taskmanager and if the process are not running then send mail. There are 4 processes so i want to check this in one program and i have...