Over 1 million tech questions and answers.

Windows Powershell Over Web

Q: Windows Powershell Over Web

I've been asked to investigate running some Powershell scripts over a web app, and so far have come up empty-handed. The context is user/server management, so stuff like monitoring disk quotas, resetting user profiles, changing passwords, viewing user areas.

It will be replacing a piece of proprietary software which currently does the same job, but will be custom-scripted and maintainable.

Being Linux/UNIX-centric, I've opted to try in PHP to run the scripts, however if anyone has any alternatives, I'd be more than willing to listen to them. As far as I can work out, PHP's own "exec" function will be able to call the Powershell scripts fine.

Any help appreciated.
MF

Read other answers
RELEVANCY SCORE 200
Preferred Solution: Windows Powershell Over Web

I recommend downloading and running Reimage. It's a computer repair tool that has been proven to identify and fix many Windows problems with a high level of success.

I've used it in the past to identify and fix everything from blue screens (BSOD's), ActiveX errors, corrupt files and processes, dll/exe/sys errors, recover lost memory, Windows update problems, defragging, malware removal etc.

You can download it direct from this link http://downloadreimage.com/download.php. (This link will automatically start a download of Reimage that you can save to your computer.)

RELEVANCY SCORE 56

Hello everyone. I joined the forum today and hope you can help me out. On my work desktop I am running Windows 7 and I want to upgrade PowerShell version 2.0 to 4.0 as a minimum or 5.0. I've read many articles on fixing Windows PowerShell issues but my case seems to be a little different.

To begin, I have the following prerequisites on my computer:
Windows 7 SP1
.NET 4.5
Here is the list of all .NET versions on my computer:
v2.050727 2.050727.5420 SP2
v3.0 3.0.30729.5420 SP2
v3.5 3.5.30729.5420 SP1
v4
Client 4.6.01055
Full 4.6.01055
v4.0
Client 4.0.0.0

The version of PowerShell that I have access to is 2.0. When I try to install Windows Management Framework 4.0 (x64: Windows6.1-KB2819745-x64-MultiPkg.msu) I get the following message: "Update for Windows (KB2819745) is already installed on this computer." but when I look for it in "View installed updates" or "Uninstall or change a program", it doesn't show up. I've done searches for it on my computer and came up empty. Powershell does not show up in my "All Programs" list, Program Files / Program Files (86) or its Common Files, or in the local or roaming user files. The only place I see remnants of it such as the powershell.exe file is within C:\Windows\winsxs\amd64_microsoft-windows-powershell-exe_31bf3856ad364e35_7.3.7601.933_none_3989ef6dcae7e4a9 and a few other folders like it within the winsxs directory. I don't even think the version 2.0 I am a... Read more

Read other answers
RELEVANCY SCORE 56

Not sure what happened but this was double posted. Please see the other post with this title. Thank you.

Read other answers
RELEVANCY SCORE 49.2

2017-04-20 10:35:38Successfully sent task to the Device Management Gateway 2017-04-20 10:35:44 Task has been retrieved by the Agent. 2017-04-20 10:36:18 Successfully configured BootCommand to "disable". 2017-04-20 10:36:18 Successfully configured WFType to "". 2017-04-20 10:36:18 Successfully executed ConfigWriteFilter task. 2017-04-20 10:36:18 Successfully executed common task. 2017-04-20 10:36:18 Map repository to: Master Repository 2017-04-20 10:36:18 Successfully sent task to the Device Management Gateway 2017-04-20 10:37:45 Task has been retrieved by the Agent. 2017-04-20 10:37:50 Deploy files using repository Master Repository. 2017-04-20 10:37:50 Successfully downloaded RenameTC.ps1 to C:\Windows\ from /Repository/Files/ToDeploy/Make a Change Template. 2017-04-20 10:37:50 Successfully executed DeployFiles task. 2017-04-20 10:37:50 Successfully executed common task. 2017-04-20 10:37:50 Successfully sent task to the Device Management Gateway 2017-04-20 10:37:56 Task has been retrieved by the Agent. 2017-04-20 10:38:06 Execution result (below): 2017-04-20 10:38:06 C:\Windows>powershell C:\Windows\RenameTC.ps1 2017-04-20 10:38:06 C:\Windows\RenameTC.ps1 : File C:\Windows\RenameTC.ps1 cannot be loaded 2017-04-20 10:38:06 because running scripts is disabled on this system. For more information, see 2017-04-20 10:38:06 about_Execution_Policies at http://go.microsoft.com/fwlink/?LinkID=135170. 2017-04-20 10:38:06 At line:1 char:1 2017-04-20 10:38:06 + C:\Windows\RenameTC.ps... Read more

Read other answers
RELEVANCY SCORE 43.6

brand new computer - since beginning when starting it has "windows powershell has stopped working" blah, blah, blah. it puts 2 of the boxes up, I can select either debug or close in each, it shows up each time I startup the computer - hp desktop 700-055xt.

contacted hp - they've "done their thing" by tech support chat (remote too), and it still has this situation! only had this computer for a month or two. It replaced my hp envy 750-whatever, less than a year old - hard drive problem - was sent for repair twice.

this computer also is very slow, crashes, loses internet, and other problems. guess hp is getting cheap anymore....too bad.

anyway, thanks for any help here, I'm ready to get rid of this one and forget it altogether.

Read other answers
RELEVANCY SCORE 43.6

Hi Folks, I am trying to do a vista upgrade,and it runs a compatibility report which tells me i have to uninstall windows powershell, I have looked in the programs and features and cannot find it there ,I have looked in revouninstall programs and cant find it there, could anybody tell me where this is located so i can uninstall it, any help would be appreciated, I have HP vista premium 32-bit, Thanks patch41

A:Where is windows powershell

Hi folks, I found out how to uninstall windows powershell, go to programs and features, In the left pane at the top under tasks, Then search the updates for windows powershell,and uninstall the update windows powershell

Read other 1 answers
RELEVANCY SCORE 43.6

I was just wondering if anyone might happen to know how to uninstall windows powershell. I have looked in my add/remove programs with the Update feature on and I have no listing for it there. I have also checked under my windows directory for anything related to $ntuninstall. There is a $ntuninstall folder in that directory, but their is nothing in that folder.

I'm wondering about this because I recently tried to upgrade to Windows Vista Ultimate and it said that it couldn't install because of Powershell being on my computer and that I needed to uninstall Powershell. I'm not really sure as to what Powershell does or as to how it effects the stability of the system, but I can't find it and I'm trying to do what it says so that I can upgrade without having to do a clean install of either Vista or Windows 7.

Ideally I'd upgrade to Windows 7 but it won't let me do that without a clean install and at the moment I can't do that until I'm able to buy a larger hard drive so that I can backup information that I really need to keep on my computer. I've got over 1.5 TB of data that I need to keep, but that is spaced out among several drives and at the moment I don't have a drive that is larger than that, that I can send everything to.

That's why I'm asking.
 

Read other answers
RELEVANCY SCORE 43.6

I guess, I don't have a clue what I would do with this or what it really is or what it does. Does anyone here use it?

Jimbo

A:Windows Powershell

Windows PowerShell is an extensible automation engine from Microsoft, consisting of a command-line shell and associated scripting language.

Windows PowerShell is built on top of, and is integrated with, the Microsoft .NET Framework. Additionally PowerShell enables easy access to COM and WMI to provide an environment in which administrators perform administrative tasks on both local and remote Windows systems.

Hope this helps,
Josh

Read other 5 answers
RELEVANCY SCORE 43.6

Today, I found that I have a new program on my Vista called Microsoft powershell. I've seen it before, and I know what it's all about, but why was it on my computer, when I never installed it? Could it be some kind of new update? I scanned it with my antivirus, and there were no threats found. =/ I'm a bit scared, that it could be something that it's not.

A:Windows powershell

It is fine it was a windows update that installed it I'm sure. So no need to worry to much about it, really no need to mess with it either.

Read other 3 answers
RELEVANCY SCORE 43.6

Hello,I normally have my Windows update set to "notify, but not to download or install" when there are new updates. Being on dial-up I prefer to install them 1 at a time. Yesterday, in a moment of sheer laziness after seeing the long list of the newest updates, I set it to download and install automatically.As a result, I now have new hardware installed on my XP Home with SP3 laptop. I have no clue what it is used for and I doubt even if I did know that I would ever use it. I want to uninstall it, but I cannot find it in the add/remove file. If someone could educate me I would appreciate it. A Google search only makes things more confusing. Thank you,Ziva

A:What is Windows Powershell 1.0? And do I need it?

Hi, short definition of windows powershell

"Microsoft Windows PowerShell command line shell and scripting language helps IT professionals achieve greater control and productivity"

so if you re not a IT professional[if you were you would know about Power shell all ready ] then you don't need it ,sorry i cant help you uninstall it as Im using win7-U and its part of win7-Uso no unistall .
but maybe there is a uninstall listed in start/all program and a folder with power shell name

Read other 8 answers
RELEVANCY SCORE 43.6

Hiya

The Windows PowerShell 1.0 MUI Language Pack runs only on MUI versions of Windows, in which the Windows interface can be displayed in multiple languages. It displays the Windows PowerShell 1.0 interface in Chinese Simplified, Chinese Traditional, French, German, Italian, Japanese, Korean, Portuguese, Russian, and Spanish. For detailed information, see Knowledge Base Article 926141.

The MUI Language Pack does not include the Windows PowerShell 1.0 program. If you are running a MUI version of Windows, first install an English-language version of Windows PowerShell 1.0 and then install the MUI Language Pack for Windows PowerShell 1.0. For information about the installation packages for the English-language versions of Windows PowerShell 1.0, see Knowledge Base article 926139.

Each version of Windows PowerShell 1.0 is associated with its own version-specific MUI language pack. The MUI interface works properly only when you have installed the same versions of the Windows PowerShell program and the MUI language pack. If you have any other versions of Windows PowerShell 1.0 on the computer, uninstall the MUI language pack and the other version of Windows PowerShell 1.0 before installing the new version and the new MUI language pack. For details, see Knowledge Base Article 926141.

You do not have to restart Windows after installing the MUI Language Pack for Windows PowerShell 1.0.

Supported Operating Systems: Windows XP Service Pack 2
Requires .NET Framework Version 2.0
... Read more

A:Windows PowerShell for XP

same as above, but English:

http://www.microsoft.com/downloads/...0d-8f1d-4b97-a397-47bcc8ba3806&DisplayLang=en

eddie
 

Read other 1 answers
RELEVANCY SCORE 43.2

Hiya

The Windows PowerShell 1.0 MUI Language Pack runs only on MUI versions of Windows, in which the Windows interface can be displayed in multiple languages. It displays the Windows PowerShell 1.0 interface in Chinese Simplified, Chinese Traditional, French, German, Italian, Japanese, Korean, Portuguese, Russian, and Spanish. For detailed information, see Knowledge Base Article 926141.

The MUI Language Pack does not include the Windows PowerShell 1.0 program. If you are running a MUI version of Windows, first install an English-language version of Windows PowerShell 1.0 and then install the MUI Language Pack for Windows PowerShell 1.0. For information about the installation packages for the English-language versions of Windows PowerShell 1.0, see Knowledge Base article 926139.

Each version of Windows PowerShell 1.0 is associated with its own version-specific MUI language pack. The MUI interface works properly only when you have installed the same versions of the Windows PowerShell program and the MUI language pack. If you have any other versions of Windows PowerShell 1.0 on the computer, uninstall the MUI language pack and the other version of Windows PowerShell 1.0 before installing the new version and the new MUI language pack. For details, see Knowledge Base Article 926141.

You do not have to restart Windows after installing the MUI Language Pack for Windows PowerShell 1.0.

System Requirements
Supported Operating Systems: Windows Server 2003 Service Pack 1
Requires... Read more

A:Windows PowerShell 1.0 Multilingual User Interface Package for Windows Server 2003

Same as above, but Multilingual User for Windows Server 2003 x64 Edition

http://www.microsoft.com/downloads/...2c-2d78-4485-8fdf-4b149124eac3&DisplayLang=en

eddie
 

Read other 3 answers
RELEVANCY SCORE 43.2

I was trying to make this work and I am not understanding. I get this error message while trying to start. Thanks

A:Windows Powershell Module

Thanks, got it.

Read other 1 answers
RELEVANCY SCORE 43.2

Hi!
I tried many ways to uninstall this 'powershell', and yet even as administrator I can't delete it.
Can you help me delete it? Maybe I missed something.

Read other answers
RELEVANCY SCORE 43.2

I attempted In-Place install of Vista SP2 over an exiting Vista SP2, then a message said I must uninstall Windows PowerShell.  There is its short-cut in the program folder but there is no such entry in Add/Remove list.How can I uninstall the Windows Powershell?

A:How to uninstall Windows PowerShell

Hi, Try to remove it from Installed Updates: 1. Click on ?Control Panel? in ?Start menu?2. Go to ?Uninstall a program? in ?Control Panel?3. Click on ?View installed updates? in ?Programs and Features? 4. Right click on Update which reads Powershell and uninstall it.Hope it helps. Thanks.

Read other 57 answers
RELEVANCY SCORE 43.2

I attempted In-Place install of Vista SP2 over an exiting Vista SP2, then a message said I must uninstall Windows PowerShell. There is its short-cut in the program folder but there is no such entry in Add/Remove list.
How can I uninstall the Windows Powershell?

A:How to uninstall Windows Powershell

churin:

Check this link:

Windows PowerShell 1.0 Installation Package for Windows Vista
Ardneh

Read other 2 answers
RELEVANCY SCORE 43.2

I am a simple computer user. I do not write any programs and do not have the time for it. I check my email, write letters and check out some web sites. I might watch a short vidio clip. If I already have this Windows PowerShell installed and I don't need it will I have any problems uninstalling it?
 

A:Solved: Do I need Windows PowerShell

You can uninstall it if you have the option to uninstall it. If Memory serves me correctly it is native to Windows 7. I don't recall offhand if it can be uninstalled or disabled. Either way it is not hurting your computer to have it on there.
 

Read other 2 answers
RELEVANCY SCORE 43.2

hi, I have Windows Vista Home Premium Service Pack 2 and I need to install sql server 2008 express advanced edition
http://www.microsoft.com/download/en/details.aspx?id=1842

it says windows powershell 1.0 is a prerequisite, but on this page:
http://support.microsoft.com/?kbid=928439
the system requirements say "Windows Vista (original release version only)"
Does this mean it will not work for SP2?

I could also install powershell 2.0, but i can't seem to find a download without that WinRM included..
 

Read other answers
RELEVANCY SCORE 43.2

For those who use the Windows Powershell it was released a few days ago for vista:http://blogs.msdn.com/powershell/archive/2...dows-vista.aspx

Read other answers
RELEVANCY SCORE 43.2

By updating microsoft security essentials,power shell is running in start up,and consuming some ram memory,how can i remove it?Any help will be appreciated!!

A:How can i remove windows powershell?

Just disable it from running at startup.

Strange it`s running at startup after an update, never heard of that before.

Read other 1 answers
RELEVANCY SCORE 43.2

Hello to all on TSG

I've noticed in Start - Programs, I have an entry for Windows PowerShell 1.0. Not sure how it got there and after Googling what it is, I don't think I would ever use it. Is it there for any reason, or can I delete this, please? It isn't in my Add/Remove.

Many thanks
 

Read other answers
RELEVANCY SCORE 43.2

WHEN I JUST START WINDOWS POWERSHELL IT STARTS BUT IT IS NOT OPENING IT SHOWS ITS ICON THE THE TASK BAR BUT STILL WHEN I CLICK ON IT . IT IS NOT OPENING. PLEASE HELP ME TO FIX THIS PROBLEM.

Read other answers
RELEVANCY SCORE 43.2

Hi,



i know power-shell comes integrated with windows 7 and searched everywhere if there is a way to disable this.

But i haven't found a good answer yet.

My questions are:

1. Is there a way to disable power-shell for windows 7?

2. How can i secure misuse of power-shell on my domain?



regards,

Read other answers
RELEVANCY SCORE 43.2

I am trying to see if there is faster way to get this task done.  I am trying to uninstall and old version system center client.  I am still a beginner with PowerShell.  
I've been logging into these vdi's and running this command in the cmd c:\windows\ccmsetup\ccmsetup.exe /uninstall 
That was to uninstall the client.
I found a way to take care of this through a PSSession, but I still have plenty more to go.
I tried running this:
 1. Setup a notepad with the list of computers in c:\temp\list.txt
 2. Set variable $ccm=get-content c:\temp\list.txt
 3. Invoke-Command -ComputerName $ccm -ScriptBlock {c:\windows\ccmsetup\ccmsetup.exe /uninstall} 
It is not running what is in the scriptblock.  Can someone help me with this?
Thanks.

Read other answers
RELEVANCY SCORE 43.2

Tech Support Guy System Info Utility version 1.0.0.2
OS Version: Microsoft Windows 7 Home Premium, Service Pack 1, 64 bit
Processor: Pentium(R) Dual-Core CPU T4300 @ 2.10GHz, Intel64 Family 6 Model 23 Stepping 10
Processor Count: 2
RAM: 3999 Mb
Graphics Card: Mobile Intel(R) 4 Series Express Chipset Family, 1807 Mb
Hard Drives: C: Total - 225246 MB, Free - 137754 MB; D: Total - 13026 MB, Free - 2178 MB;
Motherboard: Quanta, 3627
Antivirus: avast! Antivirus, Updated and Enabled

I get all kinds of error messages on HP laptop. Called Kaspersky for help. They told me my OS is infected with malware and I need their $299 fix. Ouch. Get popup all the time with Powershell not working. Get messages all the time Can't open the page. Got lots of blocks from AVAST popping up. I am NOT computer savvy so any help must be very detailed basic instructions - do this, then click here and do that. Thanks anyone and everyone for help.

Oh, one more oddity. If I turn on the internet on this computer my ipad won't work online. Can this be possible?
 

A:Powershell Not Working Windows 7

Read other 16 answers
RELEVANCY SCORE 43.2

hi could someone help me with this please and tell me how to use it should it be enabled?

A:windows powershell modules

I could give you a more direct answer, but you could also follow the instructions given in that error msg which will show you how to solve your problem. The instructions work as I've done it myself a couple of times.

Welcome to PowerShell.

Read other 4 answers
RELEVANCY SCORE 43.2

hello ,  how to open the windows powershell

Read other answers
RELEVANCY SCORE 42.8

So I was installing updates with Windows Update when all of a sudden my computer freezes, I had to force shutdown, restarted my computer. Then I noticed the computer froze whenever the update Windows PowerShell 2.0 and WinRm 2.0 for Windows Vista x64-based Systems was installing (KB968930).

So I tried installing it manually from here Download details: Windows PowerShell 2.0 and WinRM 2.0 for Windows Vista for x64-based Systems (KB968930)

Same thing! When the update was installing the progress bar stopped near the end and my computer completely froze!!!

What can I do?? I tried googling everywhere for this problem and I tried everything, it's driving me nuts!!

Thanks

A:Windows PowerShell 2.0 and WinRm 2.0 for Windows Vista x64-based Systems

I'm having the same problem - please help. It is a 64x I don't know if the 32x has the same problem. Very frustrating.

Read other 5 answers
RELEVANCY SCORE 42.8

Hello,
 
Yesterday my laptop was infected with ZDot. I seem to have removed the infection with Norton, but since then, COM Surrogate processes have been opening up and eating my memory to the point of my computer hanging. Closing the processes will give me memory to work with, but then they run again shortly after. Googling suggested running windows update, which I haven't done in forever, but and troubleshooting issues with that, I can't even get my computer to recognize Windows Updates has available updates. Lastly, Windows PowerShell, which I have no idea what it is, keeps crashing.
 
I'm not sure what to do, but I can't really work on this computer until its fixed. Any help would be appreciated.

A:COM Surrogate, Windows Update, and Windows PowerShell, after ZDot infection

Hello -
Is there a chance of a typo in this line >>
Yesterday my laptop was infected with ZDot.
I do believe the infection could read ZBot, but I have been wrong on other cases ..........
 
A couple of first scans .............
 
First -
Please download RKill (courtesy of BleepingComputer.com) to your desktop.
There are 2 different versions. If one of them won't run then download and try to run the other one.
You only need to get one of these to run, not both of them.
You may get warnings from your antivirus about this tool, ignore them or Temporarily Disable your Antivirus
RKill.exe: http://www.bleepingcomputer.com/download/rkill/dl/10/
iExplore.exe (renamed rKill.exe): http://www.bleepingcomputer.com/download/rkill/dl/11/
Double-click on the Rkill desktop icon to run the tool.*If using Vista or Windows 7 right-click on it and choose Run As Administrator.
A black DOS box will briefly flash and then disappear. This is normal and indicates the tool ran successfully.
If not, delete the file, then download and use the one provided in Link 2.
Do not reboot until instructed.
If the tool does not run from any of the links provided, please let me know.
If normal mode still doesn't work, run the tool from safe mode.
When the scan is done Notepad will open with rKill log.Copy and Paste it in your next reply.
NOTE. rKill.txt log will also be present on your desktop.
 
 
Next -
 
Run ESET Online Scanner.
 - For Internet Explorer Users
Hold down Contro... Read more

Read other 5 answers
RELEVANCY SCORE 42.4

Hi - sorry if this is not the right forum - please feel free to move this is need be.

So, I have this for batch renaming files in a folder:

Dir | rename-item -newname { $_.name -replace "oldname","newname" }

And it works like a charm. The thing I can not figure out how to do is add characters - w/o changing any. So let's say I have 3 files: 1.txt 2.txt and 3.txt - I want to change them to be x1.txt x2.txt and x3.txt

So I try replacing 'replace' with 'add' like this:

Dir | rename-item -newname { $_.name -add "x", }

But it doesn't work. Does anyone know if this is possible, and if so, what I am missing in my command line?

Thanks!

A:Batch rename in DOS or Windows Powershell

DOS - String Manipulation (String Concatenation)

If I had to guess, the code you need is:

Code:
Dir | rename-item -newname { %$_.name%x%% }
I modified a vbs script I wrote for someone else. This will work while respecting extensions, but it'll also rename folders

Code:
Set objFS = CreateObject("Scripting.FileSystemObject")
strFolder = "C:\path\to\folder\of\files"
Set objFolder = objFS.GetFolder(strFolder)
For Each File In objFolder.Files
strFileName = File.Name
For i=1 To Len(strFileName)
if Mid(strFileName,i,1) = "." Then
strEndOfFirst = i
End If
Next
strFirstName = Mid(strFileName,1,strEndOfFirst - 1)
strLastName = Mid(strFileName,strEndOfFirst)
strNewName = strFirstName & "x" & strLastName
File.Name=strNewName
Next
save a rename.vbs , and change "C:\path\of\folder\of\folders" to the folder where the files are located

After that, I'd recommend taking a look at ReNamer. it's pretty powerful and should do what you want easily.

Read other 1 answers
RELEVANCY SCORE 42.4

I use mostly an E6400 Dell ATG, however. ALL computers that logged onto wifi seem to have alarming memory, cpu, disk drive usage-- A cryptominner was detected using Emsisoft Malware. Did everything Chrome forum stated to do do scans with NPE (Norton Power Eraser) still finding registry "Bad" notification. Fileless attacks were detected for those who use YouTube... PowerShell and Windows Management Instrumentation (WMI), and using them for malicious activity, recommended if not using turn off (HOW?) I know enough to be dangerous. I am over 70 years old, could not find anything that resolved the issues we are still experience, TYIA
 

Read other answers
RELEVANCY SCORE 42.4

Been getting this error for about 3 weeks. Windows Powershell has stopped working. Went to the event viewer and here is what I found...

Fault bucket , type 0
Event Name: PowerShell
Response: Not available
Cab Id: 0
Problem signature:
P1: powershell.exe
P2: 6.1.7601.17514
P3: System.AccessViolationException
P4: System.AccessViolationException
P5: tem.Management.Automation.MethodInformation.Invoke
P6: t.Invoke
P7: Pipeli..ution Thread
P8:
P9:
P10:
Attached files:

Anyone able to help?

Thanks
Rstandi

A:Windows Powershell has stopped working

Welcome to Seven Forums rstandi. Try running the System File Checker

SFC /SCANNOW Command - System File Checker

If no help, next time it happens, open the Event Viewer and see if you can find an error relating to Power Shell, and copy the full error info here

Event Viewer - Open and Use in Windows 7

A Guy

Read other 7 answers
RELEVANCY SCORE 42.4

Hey Guys,
first of all I am not sure if I hit the correct category - sorry if not!
I just installed WMF 5.1 on a Windows 7 Enterprise Workstation in order to benefit from the security features and Windows Powershell 5.1 that come along with it.

Now I want to disable the "powershell -version 2" command to prevent compromising those security features.

Is there any way to do this, like "Disable-WindowsOptionalFeature MicrosoftWindowsPowerShellV2" under Windows 10 does?

Thanks in advance and greetings
Marvin

Read other answers
RELEVANCY SCORE 42.4

Using web resources and books, I've struggled with Powershell to the point where I can structure and run run simple cmdlets against the files that I copy to the current directory. 

For example.
C:\TEMP> dir
cal AB123 AUG.docx
cal CDE45 AUG.docx
cal FGHIJKL6889 AUG.docx
C:\TEMP> Get-ChildItem | Rename-Item -NewName {$_.name -replace "cal", "calendar" }
C:\TEMP> Get-ChildItem | Rename-Item -NewName {$_.name -replace "Aug","August" }
C:\TEMP> dir
calendar AB123 August.docx
calendar CDE45 August.docx
calendar FGHIJKL6889 August.docx
All well and good to that point.
Going forward, my quest is a single cmdlet that will simultaneously change specified strings (cal to calendar; AUG to August) within the filenames in the current directory while still preserving the remainder of filenames as is.  (AB123 stays AB123;
CDE stays CDE45; FGHIJKL6889 stays FGHIJKL6889).
I tried adding a wildcard but that did not work.
C:\TEMP> Get-ChildItem | Rename-Item -NewName {$_.name -replace "cal*Aug.docx", "calendar*August.docx" }
Any guidance will be gratefully received.

Read other answers
RELEVANCY SCORE 42.4

Hi All

What is the main difference between Powershell and Command Prompt? I use cmd quite a lot, and I know that
certain functions in Powershell, such as diskpart, gets referred to command prompt, then what is the use for powershell?
Why should one use it and what is the main benefit of using it?

thank You
 

A:Windows Powershell vs Command Prompt

In a nutshell, there are a lot more commands available to a powershell user than to a cmd user. In most cases the names of the old CMD commands have been set up as Aliases (redirect commands) to the new powershell command that does the same thing.

The relative simplicity of CMD makes it easier to learn and use.
The age of CMD means batch scripts are likely to work on earlier versions of Windows, whereas powershell scripts may not.

On the other hand there will be things that you can do with power shell that you cannot do (or cannot easily do) with CMD.
 

Read other 3 answers
RELEVANCY SCORE 42.4

Windows 10 calendar app stopped displaying events on the calendar even though the reminder function could show them. Also, it will not allow new events to be added. Can Powershell be used to investigate the problem?

Read other answers
RELEVANCY SCORE 42.4

Hiya

Windows PowerShell includes:

• More than one hundred and thirty command-line tools (called "cmdlets") for performing common system administration tasks, such as managing services, processes, event logs, certificates, the registry, and using Windows Management Instrumentation (WMI).

• Command-line tools are easy to learn and easy to use with standard naming conventions and common parameters, and simple tools for sorting, filtering, and formatting data and objects.

• Support for existing scripting languages and existing command-line tools, and multiple versions of Windows, including Windows XP, Windows Server 2003, Windows Vista and Windows Server code-named “Longhorn".

• Feature that allows users to navigate data stores, like the registry and certificate stores, as if they were a file system.

• Standard utilities for managing Windows data in different stores and formats, including Active Directory (ADSI), Windows Management Instrumentation (WMI), Component Object Model (COM) objects, Active X Data Objects (ADO), HTML and XML.

• Sophisticated expression parsing and .NET object manipulation at the command line, including pipelining of objects, make IT professionals more efficient and productive.

• Extensible interface that allows independent software vendors and enterprise developers to build custom cmdlets to meet their unique application and system administration requirements.

System Requirements
Supported Operating Systems: Longhor... Read more

A:Windows PowerShell 1.0 for Vista RC1 and Longhorn IDS

Windows PowerShell includes:

• More than one hundred and thirty command-line tools (called "cmdlets") for performing common system administration tasks, such as managing services, processes, event logs, certificates, the registry, and using Windows Management Instrumentation (WMI).

• Command-line tools are easy to learn and easy to use with standard naming conventions and common parameters, and simple tools for sorting, filtering, and formatting data and objects.

• Support for existing scripting languages and existing command-line tools, and multiple versions of Windows, including Windows XP, Windows Server 2003, Windows Vista and Windows Server code-named “Longhorn".

• Feature that allows users to navigate data stores, like the registry and certificate stores, as if they were a file system.

• Standard utilities for managing Windows data in different stores and formats, including Active Directory (ADSI), Windows Management Instrumentation (WMI), Component Object Model (COM) objects, Active X Data Objects (ADO), HTML and XML.

• Sophisticated expression parsing and .NET object manipulation at the command line, including pipelining of objects, make IT professionals more efficient and productive.

• Extensible interface that allows independent software vendors and enterprise developers to build custom cmdlets to meet their unique application and system administration requirements.
System Requirements
Supported Operating Systems: Longhorn (Wi... Read more

Read other 1 answers
RELEVANCY SCORE 42.4

windows powershell stops responding radomly. I am running 64 bit windows 8

A:Windows powershell stops responding

You may be infected with Poweliks which typically affects the ability to browse or download files using Internet Explorer and causes PowerShell error alerts. Task Manager typically shows numerous occurrences of (COM Surrogate) dllhost.exe or dllhst3g.exe. If using a 64-bit version of Windows, then these entries will be listed as dllhost.exe *32 or dllhst3g.exe *32. These processes are known to spawn and consume a large amount of system resources as described here.If you are having trouble downloading files with Internet Explorer, follow these instructions to re-enable downloads/reset all Security zones to default.Please download ESETPoweliksCleaner and save it to your Desktop Double-click on ESETPoweliksCleaner.exe to start the tool.Read the terms of the End-user license agreement and click Agree if you agree to them.The tool will run automatically. If the cleaner finds a Poweliks infection, press the Y key on your keyboard to remove it...If Poweliks was detected "Win32/Poweliks was successfully removed from your system" will be displayed.Press any key to exit the tool and reboot your computer...The tool will produce a log in the same directory the tool was run from.Copy and paste the contents of that log in your next reply.Note: If the log is too long...you may need to split it and use multiple replies in order to post all the information.

Read other 1 answers
RELEVANCY SCORE 42.4

I see that, in 8.1 Preview, the <> + <X> menu now contains Powershell instead of a Command Prompt.

Is Powershell easy to learn/ worth the effort?
Is there anything which won't work any more that did work in a Command Prompt?

A:Windows 8.1 - time to learn Powershell?

Hello David,

PowerShell will take a bit of effort and studying to learn more than just the basics. Here's some reading on it if you like.

Scripting with Windows PowerShell

Windows PowerShell Scripting

Read other 6 answers
RELEVANCY SCORE 42.4

Hello,

I've been trying to enable PowerShell  logging in Windows 7, without success.
I got a computer that has the following features:

.NET 4.6WMF 5.0PowerShell 5.0
I came to the realisation that I needed PowerShell logging after reading this article by FireEye:
https://www.fireeye.com/blog/threat-research/2016/02/greater_visibilityt.html

The article guided me through the step of enabling PowerShell logging:

uninstall WMF 5.0install WMF 4.0install WMF 5.0
After installing WMF 4.0, a Windows PowerShell option added at my GPO setting, as mentioned in the article, but only contained "Turn on Module Logging", "Turn on Script Execution"
and "Set the default source path for Update-Help".
I thought that the other settings ("Turn on PowerShell Script Block Logging" and "Turn on PowerShell Transcription") , which interested me the most, will be added after i'll install WMF 5.0 again.
After installing WMF 5.0 - the option in the GPO disappeared! 
Not only that the wanted options has not been added - the whole container disappeared - including the first 3 options.
Although the Module logging option, which I enabled after the WMF 4.0 installation,  disappeared, there was still Module Logging events created in the event viewer. meaning, the feature is still enabled, but i can't see or change it.

I tried the same on a different, virtual machine, but ended up have to deal with ... Read more

Read other answers
RELEVANCY SCORE 42.4

Hey everyone, I just recently got Windows Server 2008 R2 and for some reason I can't install PowerShell 2.0.

PS 1.0 is already installed, and I'm wanting to get 2.0. I've downloaded the x64 installer from microsoft but when I run it, all it says is "This update is not applicable to your computer."

Any ideas on how to get it installed?
 

A:Solved: Can't install Windows PowerShell 2.0

Figured it out. The feature has to be installed, even though 1.0 is automatically installed.

Go to Server Manager -> Features -> Add Features -> Scroll down to the bottom -> Check off Windows PowerShell Integrated Scripting Enviornment (ISE) -> Install

Clisen-
 

Read other 2 answers
RELEVANCY SCORE 42.4

hello everyone,
 
Over the past two or three days my laptop has started to act up. (just in time for my new semester... yay!)
 
I run Windows 8 x64 on a HP pavilion g7. It was used when I bought it, and I've had it almost two years now with no problem at all. Recently I've been getting errors of "Windows Powershell has stopped responding." Sometimes numerous errors will come up. I've ran malware and virus scans, I've tried installing updates. Nothing has seemed to work.
 
Along with that,  my fans in my laptop begin to get loud and my battery decreases. Now, this does not always happen when the error occurs, but I'm assuming it goes with it, considering it has happened around the same time. Usually I have a three and a half battery, but now it bounces between one and two hours.
 
I've searched the internet several days in a row now and most seem to believe it's a virus, but seeing as I have run scans through three different antivirus/malware I do not think this is the case.
 
I apologize if this is a repeat post. Thank you in advance. If you need any other information please let me know and I will get back asap.

A:Windows Powershell has stopped working

to Bleeping Computer.You are most likely infected with Poweliks which typically affects the ability to browse or download files using Internet Explorer and causes PowerShell error alerts. Task Manager typically shows numerous occurrences of (COM Surrogate) dllhost.exe or dllhst3g.exe. If using a 64-bit version of Windows, then these entries will be listed as dllhost.exe *32 or dllhst3g.exe *32. These processes are known to spawn and consume a large amount of system resources as described here.If you are having trouble downloading files with Internet Explorer, follow these instructions to re-enable downloads/reset all Security zones to default.Please download ESETPoweliksCleaner and save it to your Desktop Double-click on ESETPoweliksCleaner.exe to start the tool.Read the terms of the End-user license agreement and click Agree if you agree to them.The tool will run automatically. If the cleaner finds a Poweliks infection, press the Y key on your keyboard to remove it...If Poweliks was detected "Win32/Poweliks was successfully removed from your system" will be displayed.If Poweliks was not detected "Win32/Poweliks not found" will be displayed.Press any key to exit the tool and reboot your computer...The tool will produce a log in the same directory the tool was run from.Copy and paste the contents of that log in your next reply.Note: If the log is too long...you may need to split it and use multiple replies in order to post all the information.

Read other 5 answers
RELEVANCY SCORE 42.4

I have often wondered why PowerShell has never been part of a regular Windows Patch or update.  Why isn't it?

Read other answers
RELEVANCY SCORE 42.4

What does this mean for my new install of windows 7 on a new SSD.

Should I "dbug" and send info to Microshaft or is there a better way to resolve this?

Read other answers