projectja
asked on
available space on disk and delete logs
Hi Experts,
I think this is the right place to put the question. I need your help, I am studying powershell but I am having difficult to write the script with powershell. I have not enough skills.
I would need a powershell such as:
- It will be launch from my workstation or server of my domain providing administrattors credential in other domains to be able to execute command there.
- The goal is to get:
* To get information about differents hard disk units on target server; total space in disk and free space available. (could have c,d,e,...) units. There is not a rule.
* Export that information to excel, creating the file iin the pc where the scrilpt is being launching (source pc in which I am launching the script). The name of the file is the same that the IP adress of the server where we are connecting to get information.
* In a specific folder on the target server check for files which are contained into a specific folder and are two weeks old, the goal is delete them (are logs files). report the action in a logs indicating amount of deleted files and the size disk.
Please, I need the help of an expert, It is very important for me to be able to finish this task.
I think this is the right place to put the question. I need your help, I am studying powershell but I am having difficult to write the script with powershell. I have not enough skills.
I would need a powershell such as:
- It will be launch from my workstation or server of my domain providing administrattors credential in other domains to be able to execute command there.
- The goal is to get:
* To get information about differents hard disk units on target server; total space in disk and free space available. (could have c,d,e,...) units. There is not a rule.
* Export that information to excel, creating the file iin the pc where the scrilpt is being launching (source pc in which I am launching the script). The name of the file is the same that the IP adress of the server where we are connecting to get information.
* In a specific folder on the target server check for files which are contained into a specific folder and are two weeks old, the goal is delete them (are logs files). report the action in a logs indicating amount of deleted files and the size disk.
Please, I need the help of an expert, It is very important for me to be able to finish this task.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It has become the bsae of my scriplt
ASKER
I am going to work in the script, if I have questions I am aboslutaly sure you adn all the experts, will support to me.
Please, let me to work with the scrpt before accept a solution.
See you