The File Transfer Protocol (FTP) is a common service used to transfer files between clients and servers. It’s often useful to automate these file transfers, and PowerShell scripts can come in handy to speed up this process. How To Use FTP in PowerShell There are a few different ways to make FTP transfers in PowerShell. The simplest is to use WebClient.UploadFile. … [Read more...] about How to Upload Files Over FTP With PowerShell
PowerShell
How to find Windows Update Size using PowerShell
If you want to find Windows Update size using PowerShell, here is how you can do that. Although Windows Settings could do it easily, you can use PowerShell to do the same within moments. For that, you need to install a script as there is no in-built PowerShell command to find the same. If you have a limited data connection, but you want to download and install a few … [Read more...] about How to find Windows Update Size using PowerShell
PowerShell has stopped working and will not open
Windows PowerShell is a command-line and scripting tool in Windows operating systems. It is developed by Microsoft and users can use it for running batch commands, script automation, etc. To launch Windows PowerShell, simply type PowerShell in Windows Search and select PowerShell to open it. Some users are experiencing problems with PowerShell. According to them, when they … [Read more...] about PowerShell has stopped working and will not open
How to Create a Self-Signed Certificate with PowerShell
Self-signed certificates are an easy way to perform testing and other less important tasks. Self-signed certificates do not have a trusted chain of certificates backing them up and are signed by the user who created it. If you trust the entity that signed the certificate then you can use it just as you would a properly validated one. If you need to create a self-signed … [Read more...] about How to Create a Self-Signed Certificate with PowerShell
Microsoft urges PowerShell users to upgrade to protect against critical vulnerability
Microsoft has issued a warning to users of PowerShell 7.0 and 7.1 to update their software to protect against a .NET Core remote code execution vulnerability. Tracked as CVE-2021-26701, the vulnerability is described as critical and could affect Windows, macOS and Linux. The security issue has been known about for a little while, but Microsoft is only now urging users to … [Read more...] about Microsoft urges PowerShell users to upgrade to protect against critical vulnerability
Fix Unable to Run Yarn in Windows Terminal – PowerShell
If you run into an error with your brand new machine when trying to run any custom scripts like npm, yarn or any node modules you might run into an error similar to below. yarn : File C:Program Filesnodejsyarn.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at … [Read more...] about Fix Unable to Run Yarn in Windows Terminal – PowerShell
You can now update PowerShell 7 via Windows Update
Microsoft today announces that they are taking the first steps to making PowerShell 7 easier to update on Windows 10 and Server. In the past, Windows users were notified in their console that a new version of PowerShell 7 is available, but they still had to hop over to the GitHub release page to download and install it, or rely on a separate package management tool like the … [Read more...] about You can now update PowerShell 7 via Windows Update
How to Enable PowerShell Remoting in Windows 10
Unlike Windows Server, PowerShell Remoting isn’t enabled by default in Windows 10. PowerShell Remoting is a secure management protocol (WSMan) for connecting to and managing remote devices. In its default configuration, PowerShell Remoting secures traffic over HTTP. It’s primarily designed to be used in an Active Directory (AD) environment, which protects the … [Read more...] about How to Enable PowerShell Remoting in Windows 10
How to Use PowerShell Splatting to Make Code More Readable
There are a couple of ways you can make your PowerShell code more readable. In this article, I’m going to show you how to use splatting with the New-ADUser cmdlet to do just that, make your code more digestible. For yourself and for others to read. Splatting can be used with any PowerShell cmdlet that accepts parameters. But in this example, we’ll stick to … [Read more...] about How to Use PowerShell Splatting to Make Code More Readable
How to Use PowerShell Calculated Properties
PowerShell is an object-oriented programming (OOP) shell and scripting language. That means every PowerShell cmdlet you run produces an object containing the cmdlet’s output in a structured format. Objects can be passed among cmdlets and the data retrieved by calling properties. OOP is much easier than parsing strings of text to extract the information you … [Read more...] about How to Use PowerShell Calculated Properties