Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Script delete itself

$
0
0

Hi guys

I´m pretty new with powershell and i´m a little bit blind in some things.

I´ve created a script to set up several features and install several pieces of software just running this script. 

For that I´ve allocated a folder in c: drive in my windows 2012 template. 

What I´d like to know if is there any way to delete that folder, script include, once everything is done? I mean, something like add a line at the end of the script and just saying, your last step is delete the whole folder.

Thanks, any help would be really appreciated. 

Diego

 

 

 

 

 

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles