1
vote
1answer
17 views

Can I query AD from a client computer in the domain using Powershell?

I have a DC (windows server 2008 r2) that I want to run some Powershell queries against AD. Powershell ISE is not installed on any of the DCs. Is it possible to install Powershell ISE locally on my ...
0
votes
0answers
22 views

Uninstalling programs MSIEXEC always takes the same time to run

I've created a script that removes all of the SQL bits and pieces left over when you do an appwiz.cpl removal of SQL. Initially some components failed because of 'there is another installation in ...
2
votes
0answers
84 views

Troubles running Azure powershell

I'm trying to install Azure Powershell, following the instructions on this page. The installation seems to run fine and proceeds without errors. However, once it's finished, I can't manage to find ...
4
votes
2answers
109 views

How can I delete over 2,000,000 files in a single directory efficiently?

I have over 2,000,000 (that's right, over 2 million) files in 'Temporary Internet Files'. This predicament is the result of a scheduled task that runs a script. After installing Visual Studio, it has ...
0
votes
2answers
54 views

List of MAC addresses for 10 machines

I need to list of MAC addresses for a 10 computers having Windows 7 installed on them. These are named in a series like training1 - training10. There IP addresses are on DHCP mode and update every ...
0
votes
0answers
45 views

App Path incorrectly set as REG_SZ

I have Windows 7 Ultimate Service Pack 1 with PowerShell 4.0. Under this key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\PowerShell.exe I found these values (Default) ...
1
vote
1answer
84 views

Given a list of KB numbers for Windows Updates, how can I find out what's in the updates?

I have this issue with a program I work on, where the program behaves differently on my development machine v. the QA environment. I suspect the difference between the environments lies in which ...
2
votes
1answer
265 views

Set (Many) Programs' Window Size/Position

I'm looking for a solution similar to this, but for Windows 7 (64-bit), and not just for the terminal. This is also definitely not a duplicate of this question. The Problem Some programs remember ...
0
votes
1answer
85 views

How do I rotate an image clockwise using the Windows command line?

Is there a way to rotate images stored in folders clockwise so they can be changed from Landscape to Portrait using CMD or Powershell? If there isn't a way to do it then please let me know. It might ...
0
votes
1answer
67 views

Send an email whenever file is deleted from shared folder in windows 7

I am running a software on several computers at my workplace and the software can run different audio and video files stored on a shared folder in a central computer. The software runs on windows 7 ...
0
votes
1answer
236 views

Is it impossible to run powershell scripts that I wrote locally without admin privileges even if the scripts themselves dont require admin rights?

Im a standard user without admin privileges on my windows 7 box. I wrote a powershell script that doesn't require admin privileges (it downloads data from yahoo finance and saves it as a CSV file): ...
0
votes
1answer
135 views

Audit Windows Server/Desktop Product Key usage

The company I work for has a fairly big domain of Windows Desktops and Servers. We also have standalone servers that are remote to our site but we have direct access to. We need to audit our license ...
1
vote
1answer
79 views

Why dont the chocolatey install instructions work?

So I am trying really hard to follow the instructions given for chocolatey install, but they don't work. From their site, they say "Its so easy to install!", and to "just open a power shell" and ...
-1
votes
2answers
60 views

PowerShell - working with multiple decimal points (i.e driver versions)

I'm trying to make a script to update machines that are using old drivers. I can get the devices I want to target like this:Get-WmiObject win32_pnpsigneddriver |where {$_.DeviceID -match ...
0
votes
1answer
187 views

How to Launch an App in an Existing Session

When a scheduled task runs I would like to open a Powershell window on my desktop to tail the log file and watch the progress. Specifically I would like the task to open the window on my desktop and ...
1
vote
1answer
41 views

Copy a list of folder to another folder?

Is there anyway so I can copy a list of folders within a text file to another folder in Windows? I have a text like this: 87312 87313 87314 87315 ... I assume it's possible via Powershell.
1
vote
2answers
152 views

PowerShell create VHD

I would like to create a VHD (virtual disk). I know this can be done with diskpart create vdisk file C:\w7.vhd maximum 10 However I am trying to do it with PowerShell. I found the New-VHD Cmdlet, ...
0
votes
1answer
62 views

How do you export Windows 7 AQS search to file? [duplicate]

My question is identical to this question that has already been asked back in 2011, but that does not have any answers: Export Windows 7 Advanced Search Results to Text File I'm hoping that someone ...
1
vote
1answer
486 views

How to set location to a mapped network drive in PowerShell?

I'm trying to set location to mapped network drive Z in PowerShell and it's not working. I have the following drive letters: C, D, E, Z. Where the first three are just local disks, and the Z is of ...
0
votes
1answer
62 views

Run script from powershell in the same window

I have installed PHP and PHPUnit in my PC. Both of these files are in same directory and I have added to enviroment variable path. I have also associate .phar extension to run with php.exe ...
0
votes
1answer
279 views

Enable local administrator account for clients from server 2008

I ran into a problem with one of my client , its local administrator account is disable, also I can't log in this machine with its domain user (because of this problem), now I wanna change its ...
1
vote
1answer
69 views

I want to read a value from a text file and compare it with a number

I am using windows powershell. I want to retrieve a number which is stored in a text file and compare it with some other number using a shell script. If I use $x=$(cat value.txt) it says "command not ...
0
votes
1answer
80 views

Is there a way to find out if a Windows 7 workstation has updates turned off in the control panel?

I have a domain with a group policy to run updates every night at 3AM. If the computer is turned off, the next time a user logs into the computer, the updates are downloaded. When the users shuts ...
1
vote
2answers
42 views

Pipe at the command line

In the blog http://blogs.msdn.com/b/zainnab/archive/2007/07/09/grep-and-sed-with-powershell.aspx I found a replacement for sed implemented as PowerShell script. I don't want to depend on the ...
0
votes
1answer
65 views

(Windows Powershell) How to open a globally defined file with a certain application?

I've added the C:\Windows\System32\Drivers\etc\ directory, which contains the windows hosts-file, to my PATH environment. So if I start the shell at some arbitrary location (C:\ for example) and ...
1
vote
1answer
39 views

Launch Script for Windows7

Hey guys hopefully I can thoroughly explain what I'm trying to do here! LOL I have a dual display Windows 7 PC and what I am trying to do is launch 2 different programs on boot, and I want one to ...
0
votes
1answer
181 views

How can I programmatically copy an incoming VPN connection profile to a Windows 7 computer?

In Windows 7, I can create an incoming VPN connection, essentially turning Windows 7 into a VPN server. Is there any way that I can copy this setup from one Windows 7 PC to another? For instance, if ...
1
vote
2answers
232 views

why cant we maximize the command prompt but whereas we can run the powershell maximised

According to this answer windows command prompt cant be maximized, but what makes the windows to view maximizing through powershell, what does the difference while maximizing in windows powershell and ...
3
votes
2answers
514 views

Windows Task scheduler Winlogon events - logout not enough(?)

I created a powershell script that I want to run on every logout / restart / shut down. For trigger I set a custom event: Log: System, Source: Winlogon, Event ID: 7002. I found the above event id ...
1
vote
3answers
213 views

My hard drive is just randomly vanishing?

My second drive is just randomly vanishing. It's a SSD. I can be in console on the drive and all of sudden I get: Set-Location : Cannot find drive. A drive with the name 'F' does not exist. At ...
0
votes
2answers
1k views

netstat with process name?

Using netstat -a -o -n I can get the list of ports and PID then I need to go to task manager and add the PID and see who is it. (pretty frustrating) I was wonder if there is a CMD command which ...
1
vote
1answer
123 views

Adding Powershell command to right click menu both on and in a folder

There are some solution online but most of them just add the command when you right click on the folder. I've find a solution (which work both) for Run As Administrator here. But it works just for ...
0
votes
1answer
244 views

Cannot create a folder because such folder already exists?

Running under Windows 7 Enterprise SP1 x64. When I try to create a folder with a certain name (for reference, let's assume it's X:\MyFolder, I'm getting this: The name I am using does not show as ...
0
votes
2answers
92 views

Concrete cases for CMD/BATCH use [closed]

Please excuse my inexpertise. I don't have much experience with the command line. From my searches, the main reason for CMD use(*) is automation. I haven't, though, found concrete cases. Most ...
0
votes
1answer
71 views

How do I Refresh my shortcut file in Windows 8.1

OK so I was trying to change the color of the tiles in Win 8.1 and came across this link Customising Start Menu However I didn't understood the Step 7 and have no idea what do do that. I created the ...
1
vote
1answer
1k views

Powershell/CMD command to open IE10 in compatibility mode

I am looking for a powershell command to open Internet Explorer 10 in compatibility mode like C:\Program files(x86)\Internet Explorer\iexplore.exe www.abc.com opens www.abc.com in IE10. I want to ...
0
votes
0answers
49 views

How to print a document and set it to use colors using a script?

I have tried something like this on Powershell: $excelApp = New-Object -comobject Excel.Application if ($args.Length -lt 1) { Write-Host "Please provide full path and filename (ie: ...
5
votes
4answers
454 views

Color empty files in Windows

I face a need to show empty (0 bytes size) files in color in Windows Explorer. (I get them over sftp and need to know whether they're empty to prevent data loss - an application creates empty files ...
0
votes
2answers
94 views

Why does running Powershell script line by line work, but the same thru executing script file - does not?

In Windows 7 Prof, executing in Windows Powershell_ISE (as administrator) the Powershell (ver. 3) commands produces expected result (of adding a domain user to local/machine Administrators group) but ...
0
votes
1answer
254 views

%HOMEPATH% Posh-Git error in Powershell, in ConEmu on Windows 7 64-bit

I am always getting the following error in Posh-Git in Powershell, in ConEmu on Windows 7 64-bit: Resolve-Path : Cannot find path 'C:\wamp\www\MobileApps\Backbone\%HOMEPATH%' because it does not ...
3
votes
1answer
203 views

Powershell systemroot in $env:path different when AC elevated

I have a strange behavior with the environment variables at my Windows XP SP3. When I logon as Administrator, the %SystemRoot% strings in PATH are substituted to C:\WINDOWS, the value of the variable ...
1
vote
0answers
263 views

copy|move sparse files on NTFS with Windows

How can I copy or move a sparse file from one NTFS volume to another NTFS volume while maintaining the sparseness using the native tools included with Windows? If there is no way to do this with the ...
2
votes
2answers
682 views

How to install WinRM service on Windows 7 if removed from installation image?

I have a freshly installed trimmed-down version of Windows 7 Ultimate SP1 and I'm trying to get back my CredSSP functionality for PowerShell remoting. I cannot remote to another server from this ...
3
votes
1answer
762 views

What version of PowerShell comes with Windows 7?

I am attempting to create a solution to launch remote processes in an environment which is very stable, and I know the user base will have Windows 7 - most will have no updates to it though. ...
1
vote
2answers
1k views

Starting vim from Windows PowerShell

This isn't necessarily a problem, I'm more curious why this behavior occurs. When attempting to launch vim from powershell, I'm greeted with the Open with window: PS C:\> vim If I specify: ...
1
vote
0answers
552 views

Set Windows Commandline (or PowerShell) to connect to internet via Proxy

I work behind a very strict firewall but I am able to browse (most) of the internet just fine with FireFox and I.E., however there are specific proxy settings to have. Namely, an autoconfig *.pac link ...
3
votes
3answers
2k views

How to determine mac address of a modem on Windows 7?

For a validation process I need to know the MAC address of a cable modem. (I do not need to know the MAC address of the network adapter.) The cable modem though is placed somewhere hardly accessible, ...
0
votes
0answers
160 views

Troubleshooting a script to add a firewall rule

I'm adding a rule on port 1627 like below on a remote machine, using PsExec (remote command line): netsh advfirewall firewall add rule name="Open Port 1627" dir=in action=allow protocol=TCP ...
0
votes
2answers
126 views

PATH, resolve location of exe

Consider the following PATH c:\App1\;c:\App2\ App1 directory contains the application Foo.exe App2 directory contains the application Bar.exe Now when I'm in a CMD window I can type either Foo.exe ...
-2
votes
1answer
219 views

Any alternatives to cmd.exe or JP Software's Take Command? [closed]

I know of PowerShell and something similar to it, but specifically I want JP Software's Take Command program, however it costs $100 for the full version. Is there any way to obtain Take Command either ...