Over 1 million tech questions and answers.

Unable to upgrade Windows PowerShell 2.0 to PowerShell 4.0 or 5.0

Q: Unable to upgrade Windows PowerShell 2.0 to PowerShell 4.0 or 5.0

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 able to run is fully functional. I am new to powershell so I can't say for sure.
So as you can see, I am unable to even uninstall PowerShell b/c it doesn't show up in either "View installed updates" or "Uninstall or change a program" and I don't want start deleting files manually b/c I'm not sure which files belong to Powershell in most cases. Same goes for deleting Powershell entries with the registry.
I really don't know where to go from this point and would GREATLY appreciate any help any of you could provide.

Thank you!!

Read other answers
RELEVANCY SCORE 200
Preferred Solution: Unable to upgrade Windows PowerShell 2.0 to PowerShell 4.0 or 5.0

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 135.2

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

Read other answers
RELEVANCY SCORE 98.4

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 90.8

When attempting to upgrade from PowerShell 4.0.0 to 5.0 or 5.1, I get "the update is not applicable to your computer".

I have Windows 7 SP 1 64 bit. I have .NET 4.6 installed. My current version of PowerShell is 4.0.0.

I looked at this link https://support.microsoft.com/en-sg/help/3057448/the-update-is-not-applicable-to-your-computer-error-when-you-install-w

but have not found the solution or the issue. I need PowerShell 5+ for Azure work.
Trying Win7AndW2K8R2-KB3191566-x64.msu

Read other answers
RELEVANCY SCORE 85.6

Runs through the installation window then says failed to install.  Windows log shows 





+


System













-


Provider









[
Name]


Microsoft-Windows-WUSA









[
Guid]


{09608C12-C1DA-4104-A6FE-B959CF57560A}

















EventID


3

















Version


0

















Level


2

















Task


0

















Opcode


0

















Keywords


0x8000000000000000

















-


TimeCreated









[
SystemTime]


2019-05-22T12:17:59.290692700Z

















EventRecordID


1034

















Correlation

















-


Execution









[
ProcessID]


3540









[
ThreadID]


4972

















Channel


Setup

















Computer


Computername

















-


Security









[
UserID]


S-1-5-21-3291047665-253718539-1242167180-303202








-


EventData









UpdateTitle


"Update for Windows (KB3191566)"









ErrorCode


2148204800









ErrorString


No signature was present in the subject.









Command... Read more

Read other answers
RELEVANCY SCORE 84.4

Hi Everyone,
I've been attempting to capture traffic by invoking this tool via PowerShell but for whatever reason it is not generating .matu output file. Can someone please let me know what am I doing wrong?
$TraceSessionA = New-PefTraceSession -Mode Linear

#Establish Triggers
$Trigger01 = New-PefTimeSpanTrigger -TimeSpan (New-TimeSpan -Seconds 60)
$Trigger02 = New-PefDateTimeTrigger -DateTime "1/12/2018 9:35 AM"
$Trigger03 = New-PefDateTimeTrigger -DateTime "1/12/2018 9:40 AM"

<#Windows 2012 or earlier
Add-PefMessageSource -PEFSession $TraceSessionA -Source "Microsoft-PEF-NDIS-PacketCapture"
Add-PefMessageSource -PEFSession $TraceSessionA -Source "Microsoft-Windows-L2NACP"
Add-PefMessageSource -PEFSession $TraceSessionA -Source "Microsoft-Windows-Wired-AutoConfig"
Add-PefMessageSource -PEFSession $TraceSessionA -Source "Microsoft-Windows-EapHost"
Add-PefMessageSource -PEFSession $TraceSessionA -Source "Microsoft-Windows-OneX"
Add-PefMessageSource -PEFSession $TraceSessionA -Source "Microsoft-Windows-NDIS"
Add-PefMessageSource -PEFSession $TraceSessionA -Source "Microsoft-Windows-SMBClient"
#>

#Windows 2012 R2 or later
Add-PefMessageSource -PEFSession $TraceSessionA -Source "Microsoft-Windows-NDIS-PacketCapture"
Add-PefMessageSource -PEFSession $TraceSessionA -Source "Microsoft-Windows-L2NACP"
Add-PefMessageSource -PEFSession $TraceSessi... Read more

Read other answers
RELEVANCY SCORE 83.6

I have a PowerShell script that is kicked off via Task Scheduler in the middle of the night when I'm not using the computer. One of the tasks in the script is to check if a remote network share is available and display a pop-up message if it is not. This is so I can see a visual reminder that the share was unavailable when I log on in the morning. When the PowerShell script is run from Task Scheduler it doesn't pop-up irregardless of whether I'm logged in or not. That kind of makes sense I guess since Task Scheduler is not expecting user interaction.

How can I accomplish this remote share check and display a pop-up that is also scheduled via Task Scheduler? Or how can I get my PowerShell script to display this pop-up when run via Task Scheduler?

Thanks,
Gary

A:Unable to Display pop-up from PowerShell - started by Task Scheduler.

Maybe send yourself an E-mail instead?

Read other 3 answers
RELEVANCY SCORE 77.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 77.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 77.6

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 77.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 77.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 77.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 77.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 77.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 76.8

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 76.8

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 76.8

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 76.8

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 76.8

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 76.8

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 76.8

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 76.8

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 76.8

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 76.8

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 76.8

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 76.8

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 76.8

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 76.8

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 76.8

hello ,  how to open the windows powershell

Read other answers
RELEVANCY SCORE 76

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 76

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 76

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 76

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 76

Hi,
I need powershell 2.0 to be installed on my windows XP SP2 machine, Can any one help me with that ?
I couldn't find the correct link to download powershell 2.0 .
I have downloaded one msu file "windows6.1-kb2506143-x64" .But this msu file is not recognizing in machine? I didn't find wusa.exe in windows XP x64 machines..

Can anyone help me with these answer please ?

Read other answers
RELEVANCY SCORE 76

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 76

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 76

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 76

Hi,
I have a question about using Bitstransfer on powershell in order to download data via https. The following code works well on powershell 5.5 of windows 10 while it does not work on powershell 2.2 of windows 7. In particular, the problem seems to
be the use of https since the download by using the http works well even on windows 7.


Code:
Import-Module Bitstransfer

Start-BitsTransfer -source "https://en.wikipedia.org/wiki/File:Example.jpg"
According to this Start-BitsTransfer it should work since powershell 2.0
Can you explain to me why?

Thank you

P.S.

Code:

Start-BitsTransfer : Unable to setup a connection to the server
At C:\Users\user\Desktop\update_windows.ps1:92 char:20
+ Start-BitsTransfer <<<< -source "https://megatools.megous.com/builds/megatools-$MegaToolsVersion-$WindowsVersion
.zip"
+ CategoryInfo : InvalidOperation: (:) [Start-BitsTransfer], Exception
+ FullyQualifiedErrorId : StartBitsTransferCOMException,Microsoft.BackgroundIntelligentTransfer.Management.NewBits
TransferCommand

Read other answers
RELEVANCY SCORE 76

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 76

Hi Folks, I have an old dell inspiron 1100, I was doing a upgrade i get so far and it tells me to remove powershell and will not go any further, my question is how do i remove powershell from windows XP, thank you.

A:[SOLVED] HOW TO REMOVE POWERSHELL FROM WINDOWS XP

What kind of an upgrade are you doing? Power Shell is a task framework associated with Net Frameworks Aps and without knowing specifically what you doing its hard to say why you are getting such notice.

Read other 5 answers
RELEVANCY SCORE 76

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 76

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
RELEVANCY SCORE 76

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