1
vote
2answers
2k views

Adminstrator receives PermissionDenied when issuing get-childitem in PowerShell

I am trying to backup a drive from a laptop that is defunct. This drive was pulled from the machine and mounted in an external enclosure and connected to a desktop via USB. Laptop that the drive was ...
2
votes
1answer
1k views

Automatically run a powershell script elevated

Is there a way to run a powershell script automatically in Elevated mode? I am trying to automate some post-image tasks without user intervention, but am getting caught with the UAC. Is there a way ...
11
votes
2answers
7k views

In a PowerShell script, how can I check if I'm running with administrator privlieges?

In a PowerShell script, how can I check if I'm running with administrator privlieges?
11
votes
4answers
22k views

Gaining administrator privileges in PowerShell

I only have one account on my Windows Vista machine, and that user has administrative privileges. However, when I try to execute a command within PowerShell to kill a certain process, I'm greeted with ...