Quantcast
Channel: PowerShell
Browsing all 15370 articles
Browse latest View live

Find network computer name from serial number

I'm trying to pull a computer name from a remote computer using the serial number on an AD domain. Through PowerShell I can target a particular OU using, Get-ADComputer, but I need to filter by serial...

View Article


Disconnect from Connect-MSOLService

I am updating my scripts to O365 in preparation for this migration. However, I do have a question. I am connecting using the following bit of scriptPowershell#Connect to O365 and licenses the...

View Article


PowerShell script - Converting PDFs to TIFs using Ghostscript

What am I missing here?I'm getting this error when running the attached script.  ERROR converting File E:\DocuTA\TIFs\06fef98e-e1c5-405e-93ea-c684ee7a856d.tif  Invoke-Expression : You must provide a...

View Article

[Powershell] Add Printer Woes on windows 7

Morning experts.I'm trying to addapt a bit of code to add a printer on a remote windows 7 workstation but for some reason ( read "Unsupported ") it fails.If i execute this bit of code on the...

View Article

Inconsistent comparison results PowerShell

I am comparing 2 Hash values in PowerShell, but I am getting inconsistent results.Powershell#Compare hashif($hashRun-eq$hashStart){Write-Host"Hash Match"-ForegroundColorgreen}else{Write-Host"Hash...

View Article


How to list files from SFTP server using power shell

Hello,,I am very much new to power shell infact this is very first time. I need a power shell script which will help in list files in a sftp server directory. 

View Article

How do you run this?

The concept of this script looks intriguing but I am at a loss as to how to execute it.I have PowerShell open. I have the PowerCLI module loaded. I have saved your script as Find-VM.PS1.I have a list...

View Article

Powershell CSV import. change "lastname, firstame" into "lastname","firstname"

I have a csv file given to us, but one of the columns has the data as "lastname, firstname"and I need to change that to have last name in one column and then first name in another column, so I can then...

View Article


Rename PC's via script

Hello,My company has changed their legal name, and all computer infrastructure is named with an acronym of the old name.I've been tasked with renaming all devices to reflect the new name of the...

View Article


Powershell copy commands - Why doesn't this work?

PowershellAdd-Member-MemberTypeNoteProperty-NameComputer-Value$computer1-InputObject$thisobjAdd-Member-MemberTypeNoteProperty-NameManufacturer-Value"a"-InputObject$thisobjAdd-Member-MemberTypeNotePrope...

View Article

PowerShell Export to CSv Blank

Hello,I am trying to export some information out of Active Directory. When I execute the script, all of the information that I need flashes across the screen, and it creates a blank CSV file.Here is my...

View Article

Powershell Script for Office 365 - Add License

So currently all of my users have ENTERPRISEPACK to their account. Well we are now needing to add a different license to them all...

View Article

Test-Connection and Foreach

Hello,I am working on some report logging and I want to do a ping test to see if a computer is on or otherwise reachable before I run the rest of the script. My logic looks correct according to the...

View Article


Conditional Code using Hashtables

Another cool use for hashtables!  http://powershell.com/cs/blogs/tips/archive/2015/09/18/using-hash-table-as-conditional-code-reposito...

View Article

Edit CSV via PowerShell

I have a CSV export from our student/staff database that contains their name, ID number, and email address. I need to do two things with this; I need to take the ID number and apply it to the AD user's...

View Article


PowerShell help

Good morning and TGIF! (posting this on Ben's behalf while we help get his Community account working).I can’t seem to find the answers to two questions I have:1. How to get a PS script to run *after* a...

View Article

Powershell Find computer in AD by description

If all computers in ad have description that contains first.last is it possible to search for a computer using a filter where the computer description contains first.lastsomething like getadcomputer...

View Article


compile powershell to exe

Hi allwhat are the possibilities of compiling a powershell script into an executable so a user can start it without having to go via powershell or powershell ISE and at no point see the console.I'm...

View Article

Turning on HTTPS PowerShell Remoting with ADCA

I need help understanding how I can enable HTTPS PowerShell remoting, or justifying why it's not needed as WinRM is secure and without HTTPS only the headers are exposed. I've setup a lab PKI that is...

View Article

Creating PDF files from Powershell

Hi,i'm reading up on creating PDF files from Adobe and i saw you can use the itextsharp free libraries but i was wondering if it's also possible with the standard adobe writer files or so.Because we...

View Article
Browsing all 15370 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>