Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Browsing all 8583 articles
Browse latest View live

Parsing Binary File Formats with PowerShell

I'm giving a presentation on "Parsing Binary File Formats with PowerShell" for MiSec on Tuesday, March 26. For those who will not be attending, the slides and code are available for download.Read More

View Article


Help with a Script for Remote updates

Ok. So I know what I *Want* this thing to do, it just doesn't seem to want to listen to me.We have a Server infrastructure of about 20+ that are updated via SCCM and rebooted each week.What I would...

View Article


How to eject a USB mass storage by powershell script?

If we indicated driver number, or volume label, how to eject a USB mass storage by powershell script?

View Article

How to See All Available Windows PowerShell Modules

Q: How can I see all available Windows PowerShell modules?A: You can see all the available Windows PowerShell modules by using a PowerShell cmdlet and a switch. Simply add the -listavailable switch to...

View Article

Cloud Spelunking, Managing Azure form your Desktop via PowerShell (the Setup)

These next few posts are going to deviate from the normal SQL, but in time I  will get back to that.   Read More

View Article


Unleash the Automation Force with Windows PowerShell

Businesses everywhere are looking to save money, and technology can help spend resources wisely. By automating the configuration, management and monitoring of Windows Servers, companies can decrease...

View Article

Geek School: Working with Collections in PowerShell

Since PowerShell is based on the .Net Framework and incorporates various other technologies like WMI and CIM, there is always more than one way to accomplish the same thing. Come join us for this short...

View Article

Geek School: Learning Formatting, Filtering and Comparing in PowerShell

In this edition of Geek School, we look at formatting, filtering and comparing objects in the Pipeline.Read More

View Article


Learning PS - this is what I want to do and below that is what I have- any...

 List the last 50 entries in the System log using Get-WinEventOutput 2 blank linesList the last 50 entries in the Application log using Get-EventLog, sorting by IndexOutput 2 blank linesUsing pipes,...

View Article


How can I transfer a file via POST and Powershell?

HelloI have to upload a file via POST (HTTP) to a webserver and download it via Powershell.The Download with the command "System.Net.WebClient" works great, but I don't know how I can implement the...

View Article

Can I change the value of an object property within powershell pipe?

Hello     I would like to know if you can alter an object property while stream the data through the pipe i.e: Import-Csv file.csv | Select-Object id,col | ForEach-Object { $_.col = "Test" } ? 

View Article

Getting errors, though I fixed but stuck

So I have one more assignment before my final and I checked all my text but I'm still getting errors I was hoping someone could take a look and see what I'm missing....

View Article

Introduction to PowerShell 3.0

Today, I’m going to give you a brief introduction to PowerShell 3.0, the newest version of the PowerShell family that comes built in with Windows Server 2012.Read More

View Article


Geek School: Using PowerShell to Get Computer Information

WMI and its newer brother CIM can both be used to manage the Windows machines in your environment. But do you know the difference between them? Join us as we take a look.Read More

View Article

Using PowerShell on the Cloud

PowerShell is a scripting environment developed by Microsoft for Windows. It has been commercially available for various versions of Windows since 2006, either as an optional or integrated feature....

View Article


Practical Persistence with PowerShell

Read More

View Article

PowerShell script to find inactive computers in Active Directory

Inactive computer objects can bloat your Active Directory over time. In this post, I will explain how to use PowerShell to find inactive computers in Active Directory and move them to a designated...

View Article


Overview of the Microsoft PowerShell Integrated Scripting Enviroment

One of the courses I teach is the Microsoft Windows 2012 Installing and Configuring course, the Microsoft designation is the 20410B.In the presentation, I cover an Overview of the Windows 2012 Windows...

View Article

Net Assemblies: Add-Type vs [System.Reflection.Assembly]::LoadFile() vs...

Hello,I'd like to ask you which of the options would you use to add NET assemblies to PowerShell? I know Add-Type and how it works, but according to Measure-Command, it takes a few more seconds...

View Article

Image may be NSFW.
Clik here to view.

$null as string instead of verbal from csv

Import-module ActiveDirectory  Import-CSV "C:\info2.csv" | % { $User = $_.dname $OfficePhone = $_.OfficePhone$MobilePhone = $_.MobilePhone$departmen = $_.departmen$Fax = $_.FaxSet-ADUser $User...

View Article
Browsing all 8583 articles
Browse latest View live