0
votes
1answer
20 views

Should I delete data before deleting its partition and extending over?

I have multiple computers with the main drive split into C and D partition. D just has random data, C has the OS. I plan on copying over data from D to C then deleting D and extending C over it. Can I ...
1
vote
2answers
450 views

PSKill can't kill remote process under Windows 8

I have a server running Windows 8 Pro, and a client also running Windows 8 Pro. When attempting to kill a remote process on the server from the client via PSKill, I always get- "Access is denied". How ...
0
votes
1answer
601 views

VPN in Powershell

I am updating an old DOS script which is used to open a Windows PPTP VPN connection between two server, copy some files, then close the connection. I am wanting to rewrite the script in powershell, so ...
0
votes
1answer
973 views

How to programatically allow a Windows 8 app to run background tasks?

When you run a Windows 8 modern UI (previously called Metro) app that has background tasks, you must explicitly choose if it is allowed to run background tasks. Is there a way to automate this? I ...
0
votes
1answer
1k views

How to rename file with powershell and add alphabetic character to each file name?

currently i am rename my file with below command line i want to add alphabetic character to each file name like file-a.jpg file-b.jpg dir im* | ForEach-Object -begin { $count= 1 } -Process { ...
1
vote
1answer
292 views

Two PowerShell commands together?

How can I execute two PowerShell commands such that I only send text to the prompt once and the second command executes only after the first command has executed successfully?
0
votes
2answers
468 views

Automating tasks in Windows 7

I need some help automating some tasks in XP. Most of them are of console nature. Now in Linux this probably wouldn't be too difficult to pull off but I'm not too acquainted with Windows automation ...
1
vote
1answer
695 views

Basic Auth & Internet Explorer Automation in Powershell

I'm in the need of automating an administration task of a web application. I used Powershell and the InternetExplorer.Application ComObject to accomplish this task. The relevant part is to navigate to ...
2
votes
1answer
540 views

PowerShell or batch script to delete with exclusions

What's a good way to delete everything below a certain path, supplying a list of exclusions? E.g. C:\ MyFolder MyApp MyConfig MyWorld MyEverything ...
3
votes
2answers
541 views

Command Line / Powershell command to pipe file names to an application

I would like to input all the filenames in the current directory after an application name, like so: root\file1.ext root\file2.ext root\file3.ext $ app.exe file1.ext file2.ext file3.ext I could ...
16
votes
5answers
3k views

Good PowerShell guide, getting started through more advanced usage

Does anyone have a really good tutorial or getting started guide for Microsoft's PowerShell? I'm a long time Linux/Unix user, and very familiar with scripting languages, command-line usage with bash, ...