Windows PowerShell is a command line shell and scripting language for Windows that supersedes the CMD.exe shell and batch language. PowerShell is also an automation engine for Windows that provides functionality similar to Windows Script Host and VBScript.

learn more… | top users | synonyms

0
votes
0answers
11 views

Microsoft Exchange 2007 Management Console shows as installed but is not

When I mount the ISO for Exchange 2007 SP1, it shows the steps 1, 2 and 3 greyed out. They display the following information: Step 1: Install .NET Framework version 2.0 - Installed Step 2: ...
0
votes
0answers
12 views

How do version differences affect PowerShell commands on remote computers?

Newer PowerShell versions obviously will come with new features and new cmdlets. This is something which is important to take into consideration when writing scripts, or PowerShell walkthroughs, which ...
1
vote
1answer
36 views

Powershell script to list scheduled tasks on remote systems

I want to write a PowerShell script that lists all Scheduled Tasks on remote systems, and includes the user account which will be used to run each task. The local system is running Windows 7, with ...
0
votes
1answer
28 views

One-way sync on a schedule, check another folder for existing files

I have a folder on a Windows network share containing automatically generated text files. I need to copy (not move!) those files to a local folder, multiple times a day, preferably using Windows ...
0
votes
1answer
8 views

Error on “-e” parameter when running makecert command in powershell

I am trying to run the following command in Powershell on a machine running Server 2012: makecert -r -pe -n CN="*.$domainVariable" -b 01/01/2000 -e 01/01/2036 -eku 1.3.6.1.5.5.7.3.1 -ss my -sr ...
0
votes
4answers
44 views

FTP: Cannot connect using FileZilla on Windows.

I installed FTP Server Services on my IIS 8.5/Windows 7 workstation, and tried to FTP using FileZilla from my laptop (client - Windows 8). I tried to configure the Network Settings using Network ...
0
votes
1answer
16 views

custom object powershell multiple items

I have this code wich work great for only one item if I add a new item it just delete the older one I've tried many way but I can't find how to do this can you help me? Import-Module ...
0
votes
1answer
24 views

What am I doing wrong in my powershell script

Ok here is the thing. I tried to make a PowerShell script to create some folders and to change a couple of strings in a .txt file. But as you can guess it is not working. See my configuration below: ...
0
votes
0answers
23 views

Why does Windows PowerShell font size not reflect reality?

On Windows 7 if I set my PowerShell window to Consolas 14, it looks very different to Microsoft Word 2010 Consolas 14. See picture. Which is right, and why do they look different?
1
vote
1answer
36 views

Using make from Windows PowerShell

Under Linux, sources of projects commonly come with Makefile's. Makefiles contain directives to build these projects using the command make. I am currently forced to use Windows, and so as to be able ...
2
votes
1answer
28 views

batch script to “scan for hardware” in Windows 8.1

There is this issue with Wifi on the Surface Pro 3 that can be easily fixed with a script that does the equivalent of running "Scan for hardware changes" in the Device Manager. This script will be ...
0
votes
1answer
19 views

How to search based on custom attribute?

I have a custom attribute in AD similar to an employee ID. I can use get-aduser and pull the information from this field by filter, but I cannot search a user based on that attribute. The search ...
0
votes
4answers
39 views

How can I get an overview of all users with a specific user right in Windows?

I need to check that only the administrators group (sid: S-1-5-32-544) has the privilege to take ownership of files or folders (SeTakeOwnershipPrivilege). How can I get an overview of all ...
0
votes
0answers
31 views

Scheduled task doesnt work Windows 8

I have this batch that makes a scheduled task calling to a powershell script and i cant make it run in windows 8. It works perfectly on windows 7 but when i use it in windows 8 it keep stuck. My ...
1
vote
3answers
23 views

Accessing files across a network using the SYSTEM account

I'm not sure if I am asking this in the right spot or not, sorry if I am wrong. I would like to know please, SCCM is currently operational in our school, and we use it to install software across our ...
-1
votes
1answer
42 views

What is the differences between MS DOS & Powershell in Windows? [closed]

What makes them differ from each other? I was just experimenting with MS DOS, and then found Powershell. Can't figure out why Microsoft gave them.
0
votes
1answer
51 views

Powershell Script to SFTP New files

I have a script here that SFTP's files from one location to another, the script works fine however I'd like to change the script so that it only copies files that are not already present. Bit of a ...
0
votes
1answer
19 views

How can I mount ActiveDirectory in powershell with X500 format?

when I try to mount Active Directory in powershell, it raises the below error: """The object name has bad syntax new-psprovider""". It can only bypassed if you provide the option -format canon. But ...
2
votes
1answer
38 views

“Help Tree” returns help for Copy-Item

In doing some research on another question, I wanted to check to be sure that tree was not an actual native PowerShell command or alias. Of course, the proper way to do this is with Get-Command. ...
0
votes
1answer
41 views

How to rename all files which end with “.BAK”

I have a windows file system where Hiccup in our Backup Software renamed hundreds of files. The change looks like this: "ABC.PDF" -> "ABC.PDF.BAK" This happened to some, but not all files in a ...
0
votes
1answer
19 views

specify the regex dot `.` and `..` in powershell to find files/directories?

I find powershell in some ways, can do regexes to a limited extent. No doubt it can do more but I can't see why it isn't here. I'm trying to use a regex to specify files/directories. For example, ...
-1
votes
2answers
34 views

Find folders called SS, return size of folder

I am able to find all folders called "SS" (superseded) in a hierarchy and list out the location of each one. I have been using this code to pipe out the list. DIR /AD /B "SS" /S > SS_Folder_List.txt ...
2
votes
2answers
34 views

Best way to search for a string (text) in >10 large CSV files (250mb each)

I am wondering what's the best way or tool to search for a specific text or string in more than 10 large .csv files. Each file is 250mb in size. My idea was to write a powershell script, since I ...
0
votes
3answers
49 views

Getting External IP via PowerShell

I would just like to Get External IP via Powershell Just IP address no header or anything. I try many things such as (Invoke-WebRequest ifconfig.me/ip).Content but it has this extra second line ...
2
votes
2answers
45 views

Powershell Get-Process and Task Manager discrepancy

I'm making a PowerShell script to get the top 10 process that are consuming memory, based on the Get-Process's value Working Set (WS). I'm running the following line and getting the results, looks ...
0
votes
0answers
30 views

How can I explicitly set Microsoft Hosted Network Virtual Adapter to be used to share Internet while creating Hosted Network?

When manually creating a hotspot in Windows: you have to select the Internet providing network adapter, and in sharing tab, select Microsoft Hosted Network Virtual Adapter from Home Networking ...
1
vote
0answers
16 views

“Autoscroll” Pdfs one by one from a “play-list”/directory

Is there a way to achieve this: open multiple .pdf from a "playlist"/given directory one by one in the same window, with auto-scrolling enabled? (Explanation: 1st pdf opens- autoscrolls to the end- ...
1
vote
1answer
18 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
6 views

How do I create a mailbox in powershell and determine which mailstore it creates it in? [migrated]

I need to edit a powershell script that creates new users and add a section that creates them a mailbox, problem I am having is that I need it to check the first letter of the username to determine ...
0
votes
1answer
30 views

definitively determine the primary physical LAN port (device0)

Is the device with the lowest DeviceID a reliable way to find the first LAN port on a machine with 2 ports? I have been searching for a way to deterministically get the first LAN port across our ...
0
votes
0answers
24 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 ...
10
votes
1answer
277 views

What does “C:2\” in a windows path string mean?

I got this pop-up from the Windows firewall. What is "C:2\" in the path? The real path is D:\Steam\SteamApps\common\... I tried cd /d C:2\ in cmd and got "The system cannot find the path ...
0
votes
0answers
51 views

Batch file needed to query a specific location

I am not a coder and would appreciate any assistance. I need a batch file which will query a NAS location and produce an output of the upper level directories (and maybe the second level down). The ...
1
vote
1answer
62 views

running batch file within powershell

I'm running a batch file within PowerShell. It calls up another program to do a bunch of maps which it outputs to a subfolder called "GRD" I then want to rename the files in the GRD folder by adding ...
0
votes
0answers
18 views

Powershell Network Copy Script very slow

We have a main files server for a local office, I placed a ESXI host in one of our data centres, I used the recursive copy function to create a small powershell script, and scheduled this for 9pm. For ...
0
votes
0answers
52 views

How to make my loop omit empty Excel cells while converting to .csv - Powershell

I have some empty cells in my Excel worksheets.How to make a proper statement to make my loop omit them? I tried to do a if(){}else{} loop but it doesnt work properly.I have a powershell v2 so I ...
2
votes
0answers
41 views

What is the powershell equivalent for `pwd -P`?

I have made a symlink using cmd /c mklink /D "MyDir" C:\MyDir in my home directory C:\Users\myusername. When I type cd toDir from my homedir and type pwd it returns Path ---- C:\Users\myusername\My ...
1
vote
0answers
13 views

How can I get Emacs to run correctly in a Windows console with codepage 65001 (UTF-8)?

When my codepage is set to 65001 (UTF-8) in a Powershell terminal, emacs -nw displays garbage. When the codepage is set to 437, emacs -nw works. I would like to be able to run emacs -nw (much quicker ...
0
votes
0answers
8 views

Set CMTrace Font

Might be a bit of a long shot but I was wondering if anyone knew of, or could speculate on a way to change the default font of CMTrace. It seems to use some Sans-Serif font. I'd like to change it to ...
0
votes
1answer
87 views

Download indivual PST from Office365 Exchange?

I am migrating my company’s email from Office365 to GoogleApps. While GoogleApps has an online migration service for email, it doesn’t for Calendar and Contacts. I know that I can go to each ...
0
votes
0answers
25 views

How can I get all urls of pattern x from a paged list of search results?

I'm using Windows 7 SP1, and I'm willing to use powershell or wget or whatever will work. I downloaded powershell today (ps 4) and I've got some scripts working, but I'm having trouble with this one. ...
0
votes
2answers
26 views

Viewing all accessible drives in PowerShell

I noticed that cd \ navigates to the root of my drive. But there are other drives that I can access on my computer. Is there a command in PowerShell that lists all of the drives that I can connect ...
0
votes
2answers
38 views

Powershell script to list folders in all shares

Stupid question but not sure if this is possible. I have a file server hosting 8 separate shares. I was looking for a script to pull a list of the folder names (No subfolders) for all of the shares. ...
0
votes
1answer
48 views

Can't run start-process command

I'm trying to run a command found in this answer. The command is start /w %SystemRoot%\system32\pkgmgr.exe /ip /m:Windows6.1-KB2506143-x86.cab Trouble is, it doesn't work for me. Indeed, it ...
0
votes
1answer
21 views

Why does this script prompt me for an InputObject?

I have a script that is supposed to list all the installed programs on a machine. I want it to export it to a file for me. I keep getting the error: Supply Values for the following parameters: ...
2
votes
0answers
98 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 ...
1
vote
1answer
51 views

Windows Power Plan automation

I like to keep my Asus ROG G750JZ(laptop) on all the time and I have already automated sleeping at 01:00 in the morning, auto wake-up on opening the lid. However since I am not using the laptop all ...
1
vote
1answer
45 views

Can't install PowerShell 4.0

I'm trying to install PowerShell 4.0 on a Windows 2008R2 server Installed Windows6.1-KB2819745-x64-MultiPkg.msu with no errors or warning But when I run up PowerShell and check the $host.version, ...
0
votes
1answer
65 views

Using PowerShell to Close Firewall Port

I'm doing some end to end testing of an application and I need to be able to close then open a port in Windows Firewall using PowerShell commands. I've found a script that adds a firewall rule to open ...
0
votes
1answer
40 views

How to install a mmc certificate on Windows?

I am not familiar with Windows very much, and I have trouble installing a MMC certificate. I am following this description to use MMC to create a certificate, but I cannot complete the step labeled ' ...